/*
 * Header and Footer styles for the rebuilt Oli Baustoffe theme.
 *
 * These styles implement a clean, grid-based layout for the site header
 * and footer. They rely on design tokens defined in base.css and theme.json.
 */

/* Header wrapper */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--surface, #fff);
  border-bottom: 1px solid var(--line, #e5e5e5);
  backdrop-filter: blur(8px);
}

/* Inner container for header elements */
.site-header__inner {
  width: min(calc(100% - 2rem), var(--container, 1160px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  gap: var(--space-4);
}

/* Branding section */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

/* Actions (phone, CTA button) */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header__actions a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Navigation styling inherits from core/navigation */
.site-header__nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-2);
}

.site-header__nav a:hover,
.site-header__nav a:focus {
  color: var(--accent);
}

/* Footer wrapper */
.site-footer {
  background-color: var(--text);
  color: var(--neutral-100);
  padding-top: var(--custom--spacing--section);
  padding-bottom: var(--custom--spacing--section);
}

.site-footer__inner {
  width: min(calc(100% - 2rem), var(--container, 1160px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-5);
}

.site-footer__inner h3 {
  margin-top: 0;
  margin-bottom: var(--space-3);
  font-family: var(--wp--preset--font-family--syne);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-100);
}

.site-footer a {
  color: var(--neutral-100);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent);
}