/* Sommer InKontakt — Design System */

:root {
  /* Brand colors */
  --petrol: #0c3c46;
  --petrol-soft: #144851;
  --petrol-deep: #082e36;
  --gruen: #014c1b;
  --gruen-soft: #1a5c33;
  --beere: #8f1e45;
  --beere-soft: #a43558;
  --beere-deep: #6e1635;

  /* Neutrals — warm, earthy */
  --creme: #f5ede0;
  --creme-soft: #ebe0cd;
  --creme-deep: #ddcfb6;
  --sand: #c9b791;
  --ink: #1a2428;

  /* Semantic */
  --bg: var(--creme);
  --text: var(--petrol);
  --text-muted: #4a5a5f;
  --accent: var(--beere);
  --surface: #fbf6ec;

  /* Type */
  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Alata', 'Manrope', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Kalam', cursive;

  /* Spacing rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --max-width: 1280px;
  --content-width: 68ch;

  --shadow-sm: 0 2px 8px rgba(12, 60, 70, 0.06);
  --shadow: 0 8px 28px rgba(12, 60, 70, 0.10);
  --shadow-lg: 0 20px 60px rgba(12, 60, 70, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1rem; max-width: var(--content-width); }

.hand {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.4em;
  line-height: 0.9;
  color: var(--beere);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  display: inline-block;
}

a { color: var(--beere); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Layout */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.section { padding: clamp(4rem, 10vw, 8rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--petrol { background: var(--petrol); color: var(--creme); }
.section--petrol .eyebrow, .section--petrol p { color: rgba(245, 237, 224, 0.82); }
.section--beere { background: var(--beere); color: var(--creme); }
.section--gruen { background: var(--gruen); color: var(--creme); }
.section--petrol .eyebrow, .section--beere .eyebrow, .section--gruen .eyebrow { color: rgba(245, 237, 224, 0.7); }
.section--petrol .hand { color: var(--creme-deep); }
.section--beere .hand, .section--gruen .hand { color: var(--creme-deep); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(245, 237, 224, 0.78);
  border-bottom: 1px solid rgba(12, 60, 70, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--petrol);
  text-decoration: none;
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--petrol);
  box-shadow: 0 2px 8px rgba(12,60,70,0.15);
}
.brand em { font-style: italic; color: var(--beere); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.94rem;
}
.nav__links a {
  color: var(--petrol);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--beere); }
.nav__links a.active {
  color: var(--beere);
}
.nav__links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--beere);
  border-radius: 2px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--beere);
  color: var(--creme);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.nav__cta:hover { background: var(--beere-deep); text-decoration: none; transform: translateY(-1px); }

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--petrol);
  margin: 5px 0;
  transition: transform 0.2s;
}

@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav--open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--creme);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow);
  }
  .nav--open .nav__cta {
    display: inline-flex;
    margin: 0.5rem 2rem 1.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--beere);
  color: var(--creme);
}
.btn--primary:hover { background: var(--beere-deep); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent;
  color: var(--petrol);
  border: 1.5px solid var(--petrol);
}
.btn--ghost:hover { background: var(--petrol); color: var(--creme); text-decoration: none; }
.section--petrol .btn--ghost, .section--beere .btn--ghost, .section--gruen .btn--ghost {
  color: var(--creme);
  border-color: var(--creme);
}
.section--petrol .btn--ghost:hover { background: var(--creme); color: var(--petrol); }

/* Footer */
.footer {
  background: var(--petrol-deep);
  color: var(--creme);
  padding: 5rem 0 2rem;
}
.footer a { color: var(--creme); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 237, 224, 0.6);
  margin-bottom: 1.2rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer__col a { text-decoration: none; opacity: 0.9; }
.footer__col a:hover { opacity: 1; color: var(--creme); }
.footer__brand p { font-size: 0.95rem; opacity: 0.75; max-width: 30ch; }
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 237, 224, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 780px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Shared bits */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDAuMDUsIDAgMCAwIDAgMC4yMywgMCAwIDAgMCAwLjI3LCAwIDAgMCAxIDAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCglMjNuKScvPjwvc3ZnPg==");
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(143, 30, 69, 0.1);
  color: var(--beere);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.section--petrol .pill-tag { background: rgba(245, 237, 224, 0.14); color: var(--creme); }

/* Page header for subpages */
.pageheader {
  padding: 7rem 0 3.5rem;
  background: var(--petrol);
  color: var(--creme);
  position: relative;
  overflow: hidden;
}
.pageheader h1 { color: var(--creme); margin-bottom: 0.8rem; }
.pageheader p { color: rgba(245, 237, 224, 0.8); font-size: 1.1rem; max-width: 55ch; }
.pageheader .eyebrow { color: rgba(245, 237, 224, 0.55); }

/* Photo strip (full-bleed photo break between sections) */
.photo-strip {
  width: 100%;
  height: 56vh;
  min-height: 360px;
  max-height: 560px;
  overflow: hidden;
  position: relative;
}
.photo-strip--tall { height: 64vh; max-height: 640px; }
.photo-strip__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1.6s ease-out;
}
.photo-strip.is-visible .photo-strip__img { transform: scale(1); }
.photo-strip__caption {
  position: absolute;
  inset: auto 0 2.4rem 0;
  text-align: center;
  z-index: 2;
}
.photo-strip__caption .eyebrow {
  background: rgba(20,40,40,0.4);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  color: var(--creme);
}

/* Utility */
.center { text-align: center; }
.muted { color: var(--text-muted); }
