/* ===== Design tokens ===== */
:root {
  --bg: #fafaf8;
  --bg-elev: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e6e4df;
  --accent: #c2643a;
  --accent-soft: #f5e6dd;
  --shadow: 0 10px 30px rgba(0, 0, 0, .07);
  --radius: 14px;
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #111213;
  --bg-elev: #1b1c1e;
  --text: #ecebe8;
  --muted: #9a9a9a;
  --border: #2c2d30;
  --accent: #e08a5f;
  --accent-soft: #2e221c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background .3s, color .3s;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); font-weight: 600; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: .05em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .95rem; color: var(--muted); font-weight: 500; }
.nav-links a.active, .nav-links a:hover { color: var(--text); }
.nav-tools { display: flex; gap: .5rem; align-items: center; }
.icon-btn {
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  height: 38px; min-width: 38px; padding: 0 .7rem; border-radius: 999px;
  cursor: pointer; font: 600 .82rem var(--font); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { border-color: var(--accent); }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 1rem 1.25rem; }
}

/* ===== Hero ===== */
.hero { padding: 6rem 0 2.5rem; }
.hero + .section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.hero + .section + .section { padding-top: 1.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; width: 100%; max-width: 380px; justify-self: center; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 3rem; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head a { color: var(--accent); font-weight: 600; }

/* ===== Filters ===== */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font: 500 .88rem var(--font);
}
.chip.active, .chip:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ===== Gallery ===== */
/* Reiseziele als Bildkacheln (Fotografie-Seite) */
.places-wrap { position: relative; }
.places-arrow {
  position: absolute; top: calc(50% - .3rem); transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.places-arrow:hover { border-color: var(--accent); transform: translateY(-50%) scale(1.08); }
.places-arrow.prev { left: -14px; }
.places-arrow.next { right: -14px; }
[data-device="phone"] .places-arrow { display: none; }
.places {
  display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 2rem -.4rem 2.5rem; padding: .4rem .4rem 1rem; scrollbar-width: thin;
}
.place {
  position: relative; flex: 0 0 170px; aspect-ratio: 3/4; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--bg-elev);
  text-align: left; color: #fff; font-family: var(--font);
  outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .25s, transform .25s;
}
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; filter: saturate(.85) brightness(.85); }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%); }
.place:hover img { transform: scale(1.07); filter: none; }
.place:hover { transform: translateY(-3px); }
.place.active { outline-color: var(--accent); }
.place.active img { filter: none; }
.place-name, .place-count { position: absolute; left: .9rem; z-index: 1; }
.place-name { bottom: 2rem; font-weight: 700; font-size: 1.05rem; }
.place-count { bottom: .85rem; font-size: .78rem; opacity: .8; }
.place-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.place-head h2 { margin: 0; }
[data-device="phone"] .places { margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; }
[data-device="phone"] .place { flex-basis: 128px; }

.gallery { columns: 3 280px; column-gap: 1.1rem; }
.photo {
  break-inside: avoid; margin: 0 0 1.1rem; position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; background: var(--bg-elev);
}
.photo img { width: 100%; transition: transform .5s; }
.photo:hover img { transform: scale(1.04); }
.photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.2rem 1rem .9rem; color: #fff; font-size: .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s;
}
.photo:hover figcaption, .photo:focus-visible figcaption { opacity: 1; }

/* ===== Article cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card-body h3 { font-size: 1.25rem; margin: .5rem 0; }
.meta { font-size: .82rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.tag { background: var(--accent-soft); color: var(--accent); padding: .15rem .6rem; border-radius: 999px; font-weight: 600; font-size: .75rem; }

/* ===== Article view ===== */
.article { max-width: 720px; margin-inline: auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 2rem 0; aspect-ratio: 16/9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-family: var(--serif); font-size: 1.15rem; }
.prose h2 { font-family: var(--font); font-size: 1.5rem; margin-top: 2rem; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.5rem 0; padding-left: 1.2rem; color: var(--muted); font-style: italic; }
.prose h3 { font-family: var(--font); font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .4rem 0; }
.prose figure { margin: 2rem 0; }
.prose figure a { display: block; background: #fff; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.prose figure img { width: 100%; height: auto; display: block; }
.prose figcaption { font-family: var(--font); font-size: .82rem; color: var(--muted); margin-top: .6rem; line-height: 1.45; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: .9rem; margin: 1.5rem 0; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line, rgba(127,127,127,.25)); vertical-align: top; }
.prose th { color: var(--accent); font-weight: 600; }
.author { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 1.5rem; font-size: .92rem; font-weight: 500; }
.author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.toc { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 2rem 0; }
.toc-title { margin: 0 0 .5rem; font-weight: 600; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: .3rem 0; font-size: .92rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }
.prose h2 { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }
.prose ul.refs { list-style: none; padding-left: 0; font-size: .88rem; }
.prose ul.refs li { padding-left: 2em; text-indent: -2em; margin: .6rem 0; overflow-wrap: anywhere; }
.article-group { margin-bottom: 3.5rem; }
.article-group h2 { margin: 0 0 1rem; }
.filters.sub { margin-bottom: 1.4rem; }
.filters.sub .chip { font-size: .85rem; padding: .3rem .8rem; }
h1 + .page-lead { margin-top: -.6rem; }
.load-more { display: flex; justify-content: center; margin-top: 2rem; }
.share-btn { font-size: .85rem; padding: .35rem .9rem; display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; }
.share-btn svg { flex-shrink: 0; }
.lb-cap-row { display: flex; align-items: center; gap: .8rem; justify-content: center; }
.lb-cap-row p { margin: 0; }
.lb-share { background: none; border: 0; color: #fff; padding: .3rem; cursor: pointer; line-height: 0; opacity: .7; transition: opacity .2s; }
.lb-share:hover { opacity: 1; }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--muted); font-size: .92rem; }

/* ===== About / text pages ===== */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: start; }
.about-grid img { border-radius: var(--radius); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.text-page { max-width: 760px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 8px; }
.lightbox p { color: #ddd; margin-top: 1rem; text-align: center; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; }
.lb-next { right: 1.2rem; top: 50%; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 1.2rem; }

.empty { color: var(--muted); padding: 2rem 0; }

/* ===== Social links ===== */
.socials { display: flex; align-items: center; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; font-size: .9rem; }
.social {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .75rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev);
  font-weight: 600; font-size: .88rem; transition: border-color .2s, color .2s, transform .2s;
}
.social svg { width: 20px; height: 20px; }
.social:hover { border-color: var(--accent); transform: translateY(-2px); }
[data-touch="true"] .social { padding-block: .65rem; }
[data-device="phone"] .socials { justify-content: center; }

/* ===== Reels ===== */
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.reel { margin: 0; }
.reel figcaption { margin-top: .6rem; font-weight: 600; font-size: .95rem; }
.reel-media {
  aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--border);
}
.reel-media.loaded { aspect-ratio: auto; height: 640px; background: #fff; }
.reel-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.reel-consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 1.5rem; text-align: center; font-size: .88rem; color: var(--muted);
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-elev));
}
.reel-consent a { color: var(--accent); font-weight: 600; }
.reel-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); font-size: 1.4rem;
}
[data-device="tablet"] .reels { grid-template-columns: repeat(2, 1fr); }
[data-device="tablet"][data-orientation="landscape"] .reels { grid-template-columns: repeat(3, 1fr); }
[data-device="phone"] .reels { grid-template-columns: 1fr; }
[data-device="phone"] .reel-media { max-width: 420px; margin-inline: auto; }
[data-device="phone"] .reel-media.loaded { height: 600px; }

/* =====================================================================
   Geräte-Anpassungen
   main.js setzt <html data-device="phone|tablet|desktop" data-touch="...">.
   Die Media Queries oben dienen als Fallback, falls JS nicht läuft.
   ===================================================================== */
body { -webkit-text-size-adjust: 100%; }
.site-header { padding-top: env(safe-area-inset-top); }
.site-footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }

/* ----- Touch-Geräte (Phone + Tablet) ----- */
[data-touch="true"] .photo figcaption { opacity: 1; font-size: .82rem; }
[data-touch="true"] .photo:hover img,
[data-touch="true"] .card:hover { transform: none; box-shadow: none; }
[data-touch="true"] .icon-btn { height: 44px; min-width: 44px; }   /* Apple/Google Mindestgröße für Tap-Ziele */
[data-touch="true"] .chip { padding: .6rem 1.1rem; }
[data-touch="true"] a, [data-touch="true"] button { -webkit-tap-highlight-color: transparent; }

/* ----- Tablet ----- */
[data-device="tablet"] .container { width: min(100% - 3rem, var(--max)); }
[data-device="tablet"] .hero { padding: 4rem 0 3rem; }
[data-device="tablet"] .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
[data-device="tablet"] .gallery { columns: 2; }
[data-device="tablet"] .cards { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
[data-device="tablet"] .about-grid { grid-template-columns: 260px 1fr; gap: 2rem; }
[data-device="tablet"][data-orientation="portrait"] .hero-grid { grid-template-columns: 1fr; }
[data-device="tablet"][data-orientation="portrait"] .hero-img { aspect-ratio: 16/10; }
[data-device="tablet"][data-orientation="landscape"] .gallery { columns: 3; }
[data-device="tablet"][data-orientation="landscape"] .cards { grid-template-columns: repeat(3, 1fr); }

/* ----- Phone ----- */
[data-device="phone"] .container { width: calc(100% - 2rem); }
[data-device="phone"] .section { padding: 2.8rem 0; }
[data-device="phone"] h1 { font-size: 2.1rem; }
[data-device="phone"] h2 { font-size: 1.5rem; }
[data-device="phone"] .nav { height: 60px; }
[data-device="phone"] .menu-btn { display: inline-flex; }
[data-device="phone"] .nav-links {
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 0; background: var(--bg); display: none; overflow-y: auto;
  max-height: calc(100vh - 60px); z-index: 999; border-bottom: 1px solid var(--border);
}
[data-device="phone"] .nav-links.open { display: flex; }
[data-device="phone"] .nav-links a { display: block; padding: .9rem 1.25rem; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border); color: var(--muted); }
[data-device="phone"] .hero { padding: 2rem 0 1rem; }
[data-device="phone"] .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
[data-device="phone"] .hero-img { order: -1; aspect-ratio: 4/3; }
[data-device="phone"] .hero p.lead { font-size: 1.05rem; }
[data-device="phone"] .btns .btn { flex: 1; text-align: center; padding: .85rem .8rem; font-size: .9rem; white-space: nowrap; }
[data-device="phone"] .gallery { columns: 2; column-gap: .6rem; }
[data-device="phone"] .photo { margin-bottom: .6rem; border-radius: 10px; }
[data-device="phone"] .photo figcaption { display: none; }
[data-device="phone"] .cards { grid-template-columns: 1fr; gap: 1.1rem; }
[data-device="phone"] .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem .4rem; scrollbar-width: none; }
[data-device="phone"] .filters::-webkit-scrollbar { display: none; }
[data-device="phone"] .chip { flex-shrink: 0; }
[data-device="phone"] .prose { font-size: 1.05rem; }
[data-device="phone"] .article-cover { margin: 1.2rem -1rem; border-radius: 0; }
[data-device="phone"] .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
[data-device="phone"] .about-grid img { max-width: 220px; }
[data-device="phone"] .footer-inner { flex-direction: column; text-align: center; align-items: center; }
[data-device="phone"] .lightbox { padding: 0; }
[data-device="phone"] .lightbox img { max-width: 100vw; max-height: 75vh; border-radius: 0; }
[data-device="phone"] .lb-prev, [data-device="phone"] .lb-next { display: none; } /* Wischen statt Pfeile */
[data-device="phone"][data-orientation="landscape"] .gallery { columns: 3; }
