/* ==========================================================
   istrandkorb.de – Stylesheet
   Barrierefrei (WCAG 2.1 AA), mobile-first
   ========================================================== */

:root {
  --sand: #f6efe3;
  --sand-2: #ece2d0;
  --paper: #fffdf9;
  --ink: #14212b;
  --ink-soft: #3d4b56;
  --navy: #0f3550;
  --ostsee: #1f6f8b;      /* Ostsee: weiches Petrol */
  --ostsee-tint: #e3f1f5;
  --nordsee: #8a3b2e;     /* Nordsee: kräftiges Rostrot */
  --nordsee-tint: #f7e6e1;
  --accent: #e0a526;
  --focus: #ffbf47;
  --line: #d8ccb6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,33,43,.06), 0 8px 24px rgba(20,33,43,.08);
  --max: 1160px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--navy); color: #fff;
  padding: .75rem 1rem; border-radius: 8px;
  z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Streifen-Motiv (Strandkorbstoff) ---------- */
.stripes {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 22px, var(--paper) 22px 44px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,253,249,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  color: var(--navy); text-decoration: none;
}
.logo svg { width: 34px; height: 34px; }
.logo-text span { color: var(--ostsee); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  color: var(--navy); background: transparent;
  border: 2px solid var(--navy); border-radius: 999px;
  padding: .45rem .9rem; min-height: 44px; cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

.main-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.main-nav.is-open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}
.main-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.main-nav a {
  display: block; padding: .8rem .25rem; min-height: 44px;
  text-decoration: none; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--sand-2);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ostsee); }
.no-js .main-nav { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: none; border: 0; box-shadow: none; transition: none;
  }
  .main-nav ul { display: flex; gap: .25rem; padding: 0; }
  .main-nav a { white-space: nowrap; border: 0; padding: .6rem .75rem; border-radius: 8px; font-size: 1rem; }
  .main-nav a:hover { background: var(--sand); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 80% 110%, rgba(224,165,38,.35), transparent 60%),
    linear-gradient(160deg, #0f3550 0%, #1f6f8b 60%, #6aa9b8 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,30,45,.9) 0%, rgba(10,30,45,.78) 60%, rgba(10,30,45,.35) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3.5rem, 9vw, 6.5rem);
  max-width: 760px;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: #eef4f7; max-width: 60ch; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--accent);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Unterseiten-Hero & Breadcrumb */
.hero-sub .hero-inner { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem); }
.breadcrumb ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .95rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: #cfdde5; }
.breadcrumb a { color: #fff; }
.breadcrumb [aria-current] { color: #e3edf3; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  font: inherit; font-weight: 700; font-size: 1.02rem;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #f0b73a; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #164769; }
.btn-amazon { background: var(--ink); color: #fff; width: 100%; }
.btn-amazon:hover { background: #24384a; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
.kicker {
  font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ostsee); margin-bottom: .5rem; display: block;
}

.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Intro / Geschichte ---------- */
.intro { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; } }
.intro-side { display: grid; gap: 1.25rem; }
.intro-photo { margin: 0; }
.fact-box {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.75rem;
  border-top: 6px solid var(--accent);
}
.fact-box dl { margin: 0; display: grid; gap: 1rem; }
.fact-box dt { font-weight: 700; color: var(--navy); }
.fact-box dd { margin: 0; color: var(--ink-soft); }

/* ---------- Formen-Karten ---------- */
.form-card {
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.form-card .figure {
  margin: 0; padding: 1.75rem 1.5rem 1rem;
  display: grid; place-items: center;
}
.form-card.ostsee .figure { background: var(--ostsee-tint); }
.form-card.nordsee .figure { background: var(--nordsee-tint); }
.form-card .figure svg { width: min(260px, 80%); }
.form-card .figure figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: .75rem; text-align: center; }
.form-card .body { padding: 1.5rem 1.6rem 1.8rem; flex: 1; }
.form-card h3 { display: flex; align-items: center; gap: .6rem; }
.tag {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 6px; color: #fff;
}
.ostsee .tag { background: var(--ostsee); }
.nordsee .tag { background: var(--nordsee); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { padding-left: 1.7rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .9rem; height: .9rem; border-radius: 50%;
  background: currentColor; opacity: .9;
}
.ostsee .check-list li::before { background: var(--ostsee); }
.nordsee .check-list li::before { background: var(--nordsee); }

/* Foto-Slot (eigene Bilder) */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--sand-2) 0 14px, var(--sand) 14px 28px);
  aspect-ratio: 4 / 3;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-row { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 760px) { .photo-row { grid-template-columns: 1fr 1fr; } }
.photo-row figure { margin: 0; }
.photo-row figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: .5rem; }

/* ---------- Vergleichstabelle ---------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--paper);
}
.table-wrap:focus-visible { outline-offset: 0; }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare caption {
  text-align: left; padding: 1.1rem 1.25rem; font-weight: 700;
  color: var(--navy); border-bottom: 1px solid var(--line);
}
.compare th, .compare td {
  padding: 1rem 1.25rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--sand-2);
}
.compare thead th { background: var(--sand); font-family: var(--font-head); font-size: 1.1rem; }
.compare thead th.col-ostsee { color: var(--ostsee); }
.compare thead th.col-nordsee { color: var(--nordsee); }
.compare tbody th { color: var(--navy); width: 26%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.table-note { font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Ausstattung ---------- */
.feature {
  background: var(--paper); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.feature svg { width: 40px; height: 40px; margin-bottom: .8rem; color: var(--ostsee); }
.feature h3 { font-size: 1.2rem; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ---------- Kaufberatung / Produkte ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.4rem 4.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1.2rem; top: 1.25rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700;
  background: var(--navy); color: #fff;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }

.product {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.product .photo { border-radius: 0; aspect-ratio: 1 / 1; }
.product .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.product h3 { font-size: 1.2rem; margin: 0; }
.product p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.product .btn { margin-top: auto; }
.badge {
  align-self: flex-start;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 6px;
  background: var(--sand); color: var(--navy); border: 1px solid var(--line);
}
.ad-note {
  font-size: .9rem; color: var(--ink-soft);
  border-left: 4px solid var(--accent); padding: .6rem .9rem;
  background: var(--paper); border-radius: 0 8px 8px 0; margin-top: 1.5rem;
}

/* ---------- Pflege ---------- */
.care { display: grid; gap: 2rem; }
@media (min-width: 900px) { .care { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.care h3 { margin-top: .3em; }
.care ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.care li { margin-bottom: .45rem; }

/* ---------- Rügen / Binz CTA ---------- */
.cta-band {
  background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 22px, var(--navy) 22px 44px);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr .7fr; } }
.cta-band > :not(.cta-bg) { position: relative; z-index: 1; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; z-index: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3edf3; }
.cta-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.cta-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 52px; padding: .8rem 1.1rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600;
}
.cta-links a:hover { background: rgba(255,255,255,.16); }
.cta-links a span[aria-hidden] { color: var(--accent); font-size: 1.2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details {
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow);
  margin-bottom: .8rem;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 3.2rem 1.1rem 1.3rem; position: relative;
  font-weight: 700; color: var(--navy); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--ostsee);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d5dde3; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}

/* ---------- Rechtstexte ---------- */
.legal { background: var(--paper); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-top: .3em; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; font-family: var(--font-body); font-weight: 700; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2rem; }

/* ---------- Scroll-Reveal (nur mit JS + ohne reduzierte Bewegung) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .main-nav, .nav-toggle .bars * { transition: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .hero-actions, .cta-links, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .hero { background: #fff; color: #000; }
  .hero h1, .hero .lead { color: #000; }
  .hero-media { display: none; }
}
