/* ============================================================
   layout.css – Header, Footer, Navigation, Container
   Schnepper GmbH – Bauunternehmung
   ============================================================ */

/* ── Container ───────────────────────────────────────────────── */
.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
}

/* ── Skip Link (Accessibility) ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-yellow);
  color: var(--color-black);
  padding: var(--space-2) var(--space-6);
  font-weight: 700;
  z-index: 999;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── Site Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-black);
  height: var(--header-height);
  border-bottom: 3px solid var(--color-yellow);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-8);
}

/* ── Logo ───────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: var(--color-white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-text span {
  font-size: var(--fs-xs);
  color: var(--color-yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Main Navigation ─────────────────────────────────────────── */
.main-nav {
  display: none;
}

.main-nav.is-open {
  display: block;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-black);
  z-index: 99;
  overflow-y: auto;
  padding: var(--space-8) var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-link {
  display: block;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-4) var(--space-2);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-yellow);
  border-bottom-color: var(--color-yellow);
}

/* ── Hamburger Button ────────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Site Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

.footer-col h4 {
  color: var(--color-yellow);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(245, 194, 0, 0.3);
}

.footer-col p {
  color: var(--color-gray-300);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.footer-col address {
  color: var(--color-gray-300);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.footer-col address a {
  color: var(--color-gray-300);
  transition: color var(--transition);
}

.footer-col address a:hover {
  color: var(--color-yellow);
}

.footer-col .footer-logo {
  margin-bottom: var(--space-4);
}

.footer-col .footer-logo img {
  height: 48px;
  width: auto;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-list a {
  color: var(--color-gray-300);
  font-size: var(--fs-sm);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--color-yellow);
  padding-left: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-gray-500);
  font-size: var(--fs-xs);
}

/* ── Page Hero (sub-pages) ──────────────────────────────────── */
.page-hero {
  background: var(--color-black);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(245,194,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-yellow);
}

.page-hero h1 {
  color: var(--color-white);
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
}

.page-hero p {
  color: var(--color-gray-300);
  font-size: var(--fs-lg);
  max-width: 55ch;
}

.page-hero__list {
  display: grid;
  gap: var(--space-2) var(--space-10);
  max-width: 900px;
  margin-top: var(--space-3);
  color: var(--color-gray-300);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
}

.page-hero__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.page-hero__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--color-yellow);
  margin-top: 0.55em;
  flex-shrink: 0;
}

.page-hero__list-note {
  color: var(--color-gray-500);
  font-size: var(--fs-sm);
  font-style: italic;
  margin-top: var(--space-4);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
  font-size: var(--fs-sm);
  color: var(--color-gray-300);
}

.breadcrumb a:hover {
  color: var(--color-yellow);
}

.breadcrumb-sep {
  color: var(--color-gray-500);
}

.breadcrumb-current {
  color: var(--color-yellow) !important;
}

/* ── Section Wrapper ─────────────────────────────────────────── */
.section {
  padding: var(--space-20) 0;
}

.section--gray {
  background: var(--color-gray-50);
}

#ueber-uns {
  scroll-margin-top: calc(var(--header-height) + var(--space-3));
}

.section--dark {
  background: var(--color-black);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

/* Use when a .section directly follows a .page-hero: the hero's own
   bottom padding already contributes to the gap, so the default top
   padding would double it up. A small amount is kept rather than 0 –
   the dark-to-light color change visually "eats" part of the gap, so
   equal pixel values on both sides don't look equal above vs. below. */
.section--flush-top {
  padding-top: var(--space-8);
}
