/* easystrasse.de – retro roadtrip theme · base: fonts, tokens, layout, header, footer, cookie banner */

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Shrikhand'; src: url('../fonts/shrikhand.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dmsans.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --cream: #FBF0DC;
  --cream-2: #FFF8EA;
  --paper: #F3DFBC;
  --sun: #F7D58C;
  --mustard: #E8A72C;
  --orange: #E2672A;
  --coral: #F29A5C;
  --rust: #B5441C;
  --brown: #4A2A17;
  --ink: #2E1A0F;
  --muted: #6A4632;
  --teal: #1D8C88;
  --teal-d: #0F5F5C;
  --teal-l: #9ED3CC;
  --plum: #4E2135;
  --plum-d: #2B1520;
  --footer: #3A2214;

  --f-display: 'Fraunces', 'Cooper Black', Georgia, serif;
  --f-script: 'Shrikhand', 'Fraunces', Georgia, serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 22px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--f-body);
  overflow-x: hidden;
  /* subtle paper grain, drawn with gradients */
  background-image:
    radial-gradient(rgba(74, 42, 23, .045) 1px, transparent 1.2px),
    radial-gradient(rgba(74, 42, 23, .03) 1px, transparent 1.2px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}
main { display: block; overflow-x: clip; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.012em; text-wrap: balance; }
h3 { font-size: 1.35rem; line-height: 1.18; }
p { margin: 0 0 1em; }
a { color: var(--rust); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--orange); }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.section--teal :focus-visible, .site-footer :focus-visible, .finale :focus-visible { outline-color: var(--mustard); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--cream); }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.wrap--narrow { max-width: 900px; }

.ico { width: 1.25em; height: 1.25em; flex: none; max-width: none; vertical-align: -.22em; }
.script { font-family: var(--f-script); font-weight: 400; font-variation-settings: normal; letter-spacing: 0; }
.price { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- buttons */
.btn {
  --bg: var(--cream-2); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 12px 24px;
  border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1.15 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s;
}
.btn:hover { color: var(--fg); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { --bg: var(--rust); --fg: var(--cream-2); }
.btn--primary:hover { --bg: #9E3814; }
.btn--teal { --bg: var(--teal-d); --fg: var(--cream-2); }
.btn--ghost { --bg: var(--cream-2); }
.btn--cream { --bg: var(--cream); }
.btn--text { border-color: transparent; box-shadow: none; background: transparent; text-decoration: underline; padding-inline: 10px; }
.btn--text:hover { box-shadow: none; transform: none; color: var(--rust); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .94rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- eyebrow + section titles */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 14px; font: 700 .8rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rust);
}
.eyebrow::before { content: ''; width: 34px; height: 10px; flex: none; border-radius: 3px;
  background: linear-gradient(180deg, var(--mustard) 0 30%, transparent 30% 35%, var(--orange) 35% 65%, transparent 65% 70%, var(--rust) 70%); }
.eyebrow--light { color: var(--sun); }
.eyebrow--chip { background: var(--cream-2); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px 7px 10px; color: var(--ink); box-shadow: var(--shadow-sm); }
.eyebrow--chip::before { display: none; }
.eyebrow--chip .ico { color: var(--orange); }

.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section--teal { background: var(--teal-d); color: var(--cream); }
.section--teal a:not(.btn) { color: var(--sun); }
.section--paper { background: var(--paper); }
.section--sun { background: var(--sun); }
.section__head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 850; }
.section__intro { font-size: 1.15rem; max-width: 62ch; color: var(--muted); }
.section--teal .section__intro { color: #D9ECE6; }
.hl { background: linear-gradient(transparent 62%, rgba(232, 167, 44, .55) 62% 88%, transparent 88%); padding: 0 .06em 0 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section--teal .hl { background: linear-gradient(transparent 62%, rgba(226, 103, 42, .7) 62% 88%, transparent 88%); }

.demo-tag { display: inline-block; font: 700 .68rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; font-style: normal;
  padding: 5px 8px; border: 1.5px dashed currentColor; border-radius: 6px; color: var(--rust); background: rgba(255, 248, 234, .7); }

/* ---------- reveal (content is in the HTML; JS only adds motion) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- wave dividers (ambient drift) */
.wave { position: relative; height: clamp(44px, 6vw, 92px); background: var(--wave-bg); line-height: 0; overflow: hidden; margin: -1px 0; box-shadow: inset 0 -3px 0 var(--wave-fg); }
.wave svg { position: absolute; left: 0; top: 0; display: block; width: 200%; max-width: none; height: 100%; will-change: transform; }
.wave path { fill: var(--wave-fg); }
/* whole SVG layers move (composited); the path repeats every 25 % of the SVG width */
.wave__back { opacity: .45; animation: wave-drift 22s linear infinite; }
.wave__front { animation: wave-drift 34s linear infinite reverse; }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* pause ambient loops off-screen / in background tabs */
.is-paused, .is-paused *, .is-hidden-tab * { animation-play-state: paused !important; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 240, 220, .93); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); }
.site-header__bar { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.site-header__stripes { display: grid; grid-template-rows: repeat(3, 3px); gap: 2px; padding-bottom: 2px; }
.site-header__stripes span:nth-child(1) { background: var(--mustard); }
.site-header__stripes span:nth-child(2) { background: var(--orange); }
.site-header__stripes span:nth-child(3) { background: var(--rust); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); flex: none; }
.logo:hover { color: var(--brown); }
.logo__mark { width: 42px; height: 42px; transition: transform .6s var(--bounce); }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.06); }
.logo__word { font: 400 1.5rem/1 var(--f-script); letter-spacing: .005em; }
.logo__tld { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-block; padding: 8px 11px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .97rem; transition: background-color .2s, color .2s; }
.nav a:hover { background: rgba(232, 167, 44, .28); color: var(--ink); }
.nav__pages a[aria-current='page'] { background: var(--ink); color: var(--cream); }
.nav__anchors { padding-left: 10px; margin-left: 6px; border-left: 2px dotted rgba(46, 26, 15, .35); }
.nav__anchors a { font-weight: 500; font-size: .92rem; color: var(--muted); padding: 8px 9px; }
.nav__label { display: none; }
.nav__cta { margin-left: 10px; }
.nav .nav__cta.btn { display: inline-flex; color: var(--cream-2); padding: 8px 16px; }

.burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--sun); box-shadow: var(--shadow-sm); cursor: pointer; padding: 0; }
.burger__box { display: grid; gap: 5px; width: 22px; margin: auto; }
.burger__box span { display: block; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded='true'] .burger__box span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__box span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1179px) {
  .burger { display: grid; place-items: center; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 99;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px clamp(16px, 4vw, 40px) 28px;
    background: var(--cream); border-bottom: 3px solid var(--ink);
    box-shadow: 0 18px 30px rgba(46, 26, 15, .18);
    visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease), visibility 0s; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__pages a { display: block; font: 800 1.55rem/1.2 var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; padding: 10px 14px; border-radius: 14px; }
  .nav__label { display: block; margin: 18px 0 6px 14px; font: 700 .76rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); }
  .nav__anchors { padding: 0; margin: 0; border: 0; display: grid !important; grid-template-columns: 1fr 1fr; }
  .nav__anchors a { display: block; font-size: 1rem; padding: 10px 14px; color: var(--ink); }
  .nav__cta { margin: 18px 0 0; align-self: flex-start; }
}
@media (max-width: 520px) { .logo__word { font-size: 1.3rem; } .logo__mark { width: 38px; height: 38px; } .site-header__bar { min-height: 62px; gap: 12px; } }

/* ---------- footer */
.site-footer { position: relative; color: var(--cream); }
.site-footer__waves { height: clamp(50px, 7vw, 110px); line-height: 0; margin-bottom: -1px; }
.site-footer__waves svg { display: block; width: 100%; height: 100%; }
.fw--1 { fill: var(--mustard); } .fw--2 { fill: var(--orange); } .fw--3 { fill: var(--footer); }
.page-start .site-footer__waves { background: #4E2135; }
.site-footer__inner { background: var(--footer); padding: 36px 0 24px; }
.site-footer__grid { display: grid; gap: 36px 40px; grid-template-columns: 1.35fr 2.5fr 1fr; grid-template-areas: 'brand map legal' 'contact map legal'; }
.site-footer__brand { grid-area: brand; }
.site-footer__map { grid-area: map; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer__legal { grid-area: legal; }
.site-footer__contact { grid-area: contact; font-style: normal; }
.logo.f { color: var(--cream); }
.logo.f:hover { color: var(--cream); }
.logo.f .logo__tld { color: var(--mustard); }
.site-footer__claim { margin: 16px 0 18px; color: #E9D7BD; max-width: 40ch; }
.site-footer__indie { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 2px dashed rgba(247, 213, 140, .6); border-radius: 16px; color: var(--cream); font-size: .95rem; line-height: 1.5; background: rgba(0, 0, 0, .12); }
.site-footer__indie .ico { color: var(--mustard); margin-top: 2px; width: 1.4em; height: 1.4em; }
.site-footer__indie strong { color: var(--sun); }
.site-footer__head { margin: 0 0 12px; font: 800 1.15rem/1.2 var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: var(--sun); }
.site-footer__head a { color: inherit; text-decoration: none; }
.site-footer__head a:hover { color: var(--mustard); }
.site-footer ul li { margin: 0 0 7px; }
.site-footer a, .site-footer .linklike { color: #F1E2CB; text-decoration-color: rgba(241, 226, 203, .35); }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--mustard); }
.site-footer__map a { text-decoration: none; }
.site-footer__map a:hover { text-decoration: underline; }
.is-inert { color: #B9A28A; cursor: default; }
.site-footer__note { font-size: .86rem; color: #B9A28A; margin-top: 10px; }
.site-footer__contact ul li { display: flex; gap: 10px; align-items: center; }
.site-footer__contact .ico { color: var(--mustard); }
.site-footer__contact a { font-weight: 700; color: var(--cream); overflow-wrap: anywhere; }
.site-footer__resp { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(241, 226, 203, .2); font-size: .92rem; color: #E9D7BD; line-height: 1.55; }
.site-footer__resp-label { display: block; font-weight: 700; color: var(--sun); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-top: 20px; position: relative; font-size: .88rem; color: #CDB79C; }
.site-footer__bottom::before { content: ''; position: absolute; top: 0; left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); height: 2px; background: rgba(232, 167, 44, .35); }
.site-footer__bottom p { margin: 0; }
.site-footer__made .ico { color: var(--mustard); }

@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'brand brand' 'map map' 'contact legal'; }
}
@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; grid-template-areas: 'brand' 'map' 'contact' 'legal'; }
  .site-footer__map { grid-template-columns: 1fr 1fr; }
  .site-footer__map .site-footer__col:last-child { grid-column: 1 / -1; }
}

/* ---------- cookie banner */
.cookie { position: fixed; z-index: 150; left: 18px; bottom: 18px; width: min(460px, calc(100vw - 20px));
  transform: translateY(calc(100% + 40px)) rotate(2deg); opacity: 0; transition: transform .55s var(--bounce), opacity .3s; }
.cookie.is-open { transform: none; opacity: 1; }
.cookie__card { position: relative; max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px 22px 20px; background: var(--cream-2); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 7px 7px 0 var(--ink);
  background-image: linear-gradient(90deg, var(--mustard) 0 33%, var(--orange) 33% 66%, var(--rust) 66%); background-size: 100% 8px; background-repeat: no-repeat; }
.cookie__stamp { position: absolute; right: 16px; top: 16px; width: 58px; height: 58px; color: var(--teal); transform: rotate(14deg); opacity: .85; }
.cookie__title { margin: 4px 70px 8px 0; font: 800 1.4rem/1.15 var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.cookie__text { font-size: .95rem; color: var(--muted); margin-right: 6px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__settings { display: grid; gap: 10px; margin: 4px 0 16px; padding: 14px; border: 2px dashed rgba(46, 26, 15, .3); border-radius: 16px; }
.switch { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; cursor: pointer; font-size: .9rem; line-height: 1.35; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #D9C4A3; border: 2px solid var(--ink); transition: background-color .25s; }
.switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream-2); border: 2px solid var(--ink); transition: transform .3s var(--bounce); }
.switch input:checked + .switch__track { background: var(--teal); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:disabled + .switch__track { background: var(--mustard); opacity: .85; }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--teal); outline-offset: 2px; }
.switch__text strong { display: block; font-size: .95rem; }
@media (max-width: 520px) {
  .cookie { left: 10px; bottom: 10px; }
  .cookie__card { padding: 20px 16px 16px; max-height: 78vh; }
  .cookie__title { font-size: 1.2rem; }
  .cookie__stamp { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
