/* ==========================================================================
   layout.css — Container, Header/Navigation, Sektionen, Footer, Responsive
   ========================================================================== */

.container { width: var(--max); margin: 0 auto; }

/* --- Header / Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  transition: background-color .3s ease, border-color .3s ease;
}
.navbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: var(--max); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 18px; }
.logo img { height: 54px; width: auto; max-width: 330px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 14px; color: var(--text-soft); opacity: .82; }
.nav a:hover { opacity: 1; color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { font-weight: 800; color: var(--gold); font-size: 14px; }

/* --- Sektionen --- */
.section { padding: 88px 0; }
.section.white { background: var(--surface); }
.section.dark  { background: linear-gradient(135deg, var(--forest-2), #14251e); color: #fff; }
.section.dark p { color: rgba(255,255,255,.78); }
.section-head { display: grid; grid-template-columns: 1fr .82fr; gap: 40px; align-items: end; margin-bottom: 34px; }
.section-head p { font-size: 1.06rem; }
.divider { width: 62px; height: 2px; background: var(--forest); margin: 6px 0 20px; }
.dark .divider { background: var(--gold); }

/* --- Hero-Layout --- */
.hero { position: relative; min-height: calc(100vh - 82px); display: grid; align-items: center; padding: 48px 0 68px; overflow: hidden; }
.hero:before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, var(--hero-overlay-a) 0%, var(--hero-overlay-b) 42%, var(--hero-overlay-c) 74%, var(--hero-overlay-d) 100%),
    var(--hero-img, url('../img/hero-alpine-values.jpg')) center/cover no-repeat;
}
.hero:after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(180deg, transparent, var(--hero-fade)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; max-width: 760px; }

/* --- Zwei-Spalten-Layouts --- */
.problem-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: stretch; }
.split { display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: center; }
.revenue { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.reference-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }

/* --- Footer --- */
.footer { background: #0b1420; color: #e9edf2; padding: 54px 0 22px; }
.footer p, .footer a, .footer span { color: #cfd6de; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 34px; }
.footer-logo { width: 300px; filter: brightness(0) invert(1) grayscale(1); margin-bottom: 18px; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer h3 { color: #fff; font-family: Inter, ui-sans-serif; font-size: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; font-size: 14px; }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .hero-grid, .section-head, .problem-grid, .split, .revenue, .cta, .contact-grid, .footer-grid, .reference-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; } .hero-panel { margin-left: 0; }
  .hero-proof, .cards-4, .cards-3, .cards-2, .product-grid, .process, .credentials { grid-template-columns: 1fr 1fr; }
  .nav { position: fixed; right: 18px; top: 86px; display: none; flex-direction: column; align-items: flex-start; background: var(--surface); padding: 20px; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); width: min(340px, calc(100vw - 36px)); }
  .nav.open { display: flex; } .menu-btn { display: inline-flex; }
}
@media (max-width: 720px) {
  :root { --max: calc(100vw - 28px); }
  .navbar { height: auto; min-height: 76px; } .logo img { height: 42px; max-width: 230px; }
  .nav-actions .btn-navy { display: none; }
  h1 { font-size: 3rem; } .hero { padding-top: 30px; }
  .hero-proof, .cards-4, .cards-3, .cards-2, .product-grid, .process, .credentials { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .footer-bottom { display: block; }
}
