/* =====================================================================
   Porscheclub METT 911 — mett911.de
   Plain HTML + CSS (no framework, no build step)
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Jost";
  src: url("../../Jost/static/Jost-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../../Jost/static/Jost-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../../Jost/static/Jost-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../../Jost/static/Jost-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../../Jost/static/Jost-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --color-bg:        #ffffff;
  --color-alt:       #f6f7f9;
  --color-text:      #1d1d1d;
  --color-muted:     #5a5a5a;
  --color-heading:   #0a0a0a;
  --color-primary:   #6592e6;
  --color-primary-d: #3f6fc9;
  --color-border:    #e6e6e8;
  --color-shadow:    0 4px 18px rgba(0, 0, 0, 0.06);
  --color-shadow-h:  0 10px 28px rgba(0, 0, 0, 0.10);

  --radius:          6px;
  --radius-lg:       10px;

  --space-1:         0.5rem;
  --space-2:         1rem;
  --space-3:         1.5rem;
  --space-4:         2rem;
  --space-5:         3rem;
  --space-6:         4rem;
  --space-7:         6rem;

  --container-max:   1200px;
  --container-narrow:880px;

  --font-body:       "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--color-primary-d); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem); }
h3 { font-size: clamp(1.15rem, 1vw + .8rem, 1.5rem); }
p  { margin: 0 0 var(--space-2); }

ul { padding-left: 1.25rem; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-3) 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container.narrow { max-width: var(--container-narrow); }

.section {
  padding: var(--space-7) 0;
}
.section:nth-of-type(even) { background: var(--color-alt); }
/* keep hero background clean */
.hero { background: transparent; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  z-index: 100;
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  background: rgba(255, 255, 255, 0.98);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--color-heading);
  font-weight: 700;
}
.brand:hover { text-decoration: none; color: var(--color-heading); }
.brand-logo {
  height: 48px; width: auto;
  border-radius: 4px;
}
.brand-name { font-size: 1.1rem; letter-spacing: .04em; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--color-heading);
  font-weight: 500;
  font-size: 1rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom-color: var(--color-primary);
}
.nav-social {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin: 0; padding: 0;
}
.nav-social a {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--color-heading);
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.nav-social a:hover {
  background: var(--color-alt);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--color-heading);
  transition: transform .2s ease, opacity .2s ease;
  transform-origin: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url("../images/2f32705d-5f07-4a90-9f4c-b2444ce812ba-1-1600x1200.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px var(--space-3) var(--space-6);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.70);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-tagline {
  font-size: clamp(1.1rem, 1vw + .9rem, 1.5rem);
  color: var(--color-muted);
  margin-top: var(--space-2);
}

/* ---------- Generic section-head ---------- */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-5);
}
.section-head h2 { margin-bottom: var(--space-2); }
.subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ---------- About ---------- */
.about h2 { text-align: center; }
.about .lead {
  font-size: 1.15rem;
  text-align: center;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
  color: var(--color-heading);
}
.about p { text-align: center; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-grid img:hover {
  transform: translateY(-3px);
  box-shadow: var(--color-shadow-h);
}

/* ---------- Quote ---------- */
.quote-section blockquote {
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
}
.quote-section cite {
  display: block;
  margin-top: var(--space-1);
  font-style: normal;
  color: var(--color-muted);
}

/* ---------- Team ---------- */
.team h2 { text-align: center; margin-bottom: var(--space-5); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: var(--color-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--color-shadow-h);
}
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.team-card h3 {
  padding: var(--space-3) var(--space-3) 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.team-card .motto {
  padding: 0 var(--space-3);
  font-style: italic;
  color: var(--color-muted);
}
.team-card .car {
  padding: 0 var(--space-3) var(--space-3);
  margin-top: auto;
  font-size: .95rem;
}

/* ---------- Split (image + text, alternating) ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.split.split-reverse .split-grid {
  grid-template-columns: 1fr 1fr;
}
.split.split-reverse .split-image { order: 2; }
.split-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow);
}
.split-text h2 { margin-bottom: var(--space-3); }

/* ---------- Merch ---------- */
.merch-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-4);
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  box-shadow: var(--color-shadow);
}
.merch-card:last-child { margin-bottom: 0; }
.merch-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.merch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.merch-head h3 { margin: 0; }
.merch-head .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* ---------- Timeline ---------- */
.timeline h2 { text-align: center; margin-bottom: var(--space-6); }
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  align-items: start;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item .timeline-card { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-card { grid-column: 1; grid-row: 1; }
.timeline-year {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .95rem;
  letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(101, 146, 230, 0.35);
}
.timeline-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--color-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--color-shadow-h);
}
.timeline-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.timeline-media-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-border);
}
.timeline-media-dual img {
  aspect-ratio: 1 / 1;
}
.timeline-body {
  padding: var(--space-3);
}
.timeline-body h3 { margin-bottom: var(--space-2); }

/* ---------- Geschichten ---------- */
.geschichten {
  background: var(--color-bg-alt, #f7f7f8);
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.story-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--color-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--color-shadow-h);
}
.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.story-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.story-year {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  padding: 2px 10px;
  border-radius: 999px;
}
.story-body h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.story-body p {
  margin: 0;
  color: var(--color-text-muted, #555);
}

/* ---------- Sustainability ---------- */
.sustain-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-4);
  align-items: start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  box-shadow: var(--color-shadow);
}
.sustain-card:last-child { margin-bottom: 0; }
.sustain-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.sustain-card h3 { margin-bottom: var(--space-2); }
.sources { margin-top: var(--space-2); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f0f11;
  color: #cfd1d6;
  padding: var(--space-5) 0;
}
.site-footer a { color: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}
.footer-inner p { margin: 0; }
.footer-social {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0; padding: 0;
}
.footer-social a {
  color: #fff;
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: var(--space-6) 0; }

  /* Nav */
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: 0 14px 24px rgba(0,0,0,0.08);
  }
  .nav-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    gap: var(--space-1);
  }
  .nav-links a {
    display: block;
    padding: .6rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-social { justify-content: flex-start; padding-top: var(--space-1); }

  /* Hero */
  .hero { background-attachment: scroll; min-height: 85vh; }

  /* Grids */
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .split.split-reverse .split-image { order: 0; }

  .merch-card { grid-template-columns: 1fr; }
  .sustain-card { grid-template-columns: 1fr; }

  /* Timeline collapses to single column */
  .timeline-list::before { left: 20px; }
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 50px;
    gap: var(--space-3);
  }
  .timeline-item .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 1;
    grid-row: auto;
  }
  .timeline-year {
    left: 20px;
    transform: translate(-50%, 0);
    top: 0;
  }
}

@media (max-width: 580px) {
  .team-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.25rem; }
  .container { padding: 0 var(--space-2); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
