/* =========================================================
   KRANICHE WEBSITE - Farbpalette
   ========================================================= */

/* Japanisch inspirierte Farbpalette mit Barrierefreiheit */
:root {
  color-scheme: light;

  /* Primärfarben */
  --sumi: #293B42;
  /* Tuscheschwarz - Navigation, Headlines, Footer */
  --matsu: #829A8C;
  /* Kieferngrün - Sekundärflächen, Naturakzente */
  --washi: #F5F0E6;
  /* Reispapier - Hintergrund, große Flächen */
  --suna: #C8B8A0;
  /* Sandbeige - Karten, Inhaltsbereiche (dunkler für Kontrast) */
  --beni: #B94A43;
  /* Kranichrot - Buttons, Highlights, Details */
  --ai: #647C91;
  /* Indigoblau - Akzente, Links, interaktive Elemente */
  --usuki: #e3e3b3;
  /* Blassgelbgrün - rgb(227, 227, 176) - Akzentfläche, Highlights */

  /* Abgeleitete Farben für Konsistenz & Barrierefreiheit */
  --color-bg: var(--usuki);
  --color-surface: var(--suna);
  --color-text: var(--sumi);
  /* Standard-Text auf hellen Hintergründen */
  --color-text-on-dark: var(--washi);
  /* Text auf dunklen Hintergründen (Sumi, Beni) */
  --color-muted: var(--matsu);
  --color-primary: var(--beni);
  --color-primary-dark: #9A3A33;
  /* Dunkleres Beni für Hover-Effekte */
  --color-border: var(--matsu);
  --color-soft: #D4C4AC;
  /* Hellere Variante von Suna für Hover (Kontrast: ~4.3:1) */

  /* Layout */
  --container-width: 900px;
  --page-gutter: 24px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(41, 59, 66, 0.07);
}

/* =========================================================
   LOKALE SCHRIFTARTEN
   ========================================================= */
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/notoserif-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/notoserif-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/notoserif-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/notosans-jp-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/notosans-jp-500.ttf') format('truetype');
}

/* =========================================================
   2. RESET & BASIS
========================================================= */




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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-height, 81px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Noto Serif', serif;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--sumi);
}

h2 blockquote {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.2;
  font-weight: 300;

  color: var(--sumi);
}

.large {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

button,
nav {
  font-family: 'Montserrat', sans-serif;
}

.red {
  color: var(--color-primary-dark);
}

img {
  display: block;
  max-width: 100%;
}
figcaption {
  margin-top: 0.75rem;
 font-family: 1rem;
 line-height: 120%;
}


/* Responsive Abstände für Content-Trenner, z. B. <span class="space-m"></span>. */
.space-xs,
.space-s,
.space-m,
.space-l,
.space-xl {
  display: block;
  inline-size: 100%;
  flex: 0 0 auto;
}

.space-xs {
  block-size: clamp(1rem, 2vw, 1.5rem);
}

.space-s {
  block-size: clamp(2rem, 3.5vw, 3rem);
}

.space-m {
  block-size: clamp(3rem, 5vw, 4rem);
}

.space-l {
  block-size: clamp(4rem, 7vw, 5.5rem);
}

.space-xl {
  block-size: clamp(5rem, 9vw, 7rem);
}

a {
  color: var(--beni);
  text-decoration: none;
}

/* Externe Links mit Tabler External-Link-Icon */
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 1.6em;
  margin-left: 0.35em;
  vertical-align: -0.35em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/external-link.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/external-link.svg') center / contain no-repeat;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sumi);
  outline-offset: 3px;
}

/* Fokus auf dunklen Flächen */
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.hero a:focus-visible,
.heroimage a:focus-visible,
.heroimage button:focus-visible {
  outline-color: var(--usuki);
}

/* Links im Hauptbereich: unterstrichen (nicht nur farblich erkennbar) */
main a:not(.button):not(.nav-link) {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main .card a,
main .text-link {
  color: var(--sumi);
}

/* Nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--container-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--sumi);
  color: var(--color-text-on-dark);
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   3. HEADER & RESPONSIVE NAVIGATION
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: rgba(245, 240, 230, 0.7);
  backdrop-filter: blur(12px);
}

.reading-progress {
  height: 4px;
  background: rgba(41, 59, 66, 0.12);
}

.reading-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ai);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sumi);
  font-family: 'Noto Serif', serif;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--sumi);
  font-size: 0.94rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.current-page {
  /* background: var(--color-soft); */
  color: var(--beni);
}

.menu-toggle {
  display: grid;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--suna);
  color: var(--sumi);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-icon {
  position: relative;
  justify-self: center;
  align-self: center;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.topic-navigation {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(24px, 5vw, 72px);
  overflow-y: auto;
  border: 0;
  background: var(--washi);
  color: var(--sumi);
}

.topic-navigation::backdrop {
  background: rgba(41, 59, 66, 0.78);
}

.topic-navigation-inner {
  display: flex;
  flex-direction: column;
  width: min(100%, 1200px);
  min-height: 100%;
  margin-inline: auto;
}

.topic-navigation nav {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.topic-navigation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 6vh, 64px);
}

.topic-navigation-eyebrow {
  margin: 0 0 8px;
  color: var(--beni);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-navigation-header h2 {
  margin: 0;
  color: var(--sumi);
  font-size: clamp(2rem, 5vw, 4rem);
}

.topic-navigation-close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--sumi);
  cursor: pointer;
}

.topic-navigation-close span {
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/x.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/x.svg') center / contain no-repeat;
}

.topic-navigation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-navigation-list a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--sumi);
  font-family: 'Noto Serif', serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.35;
  text-decoration: none;
}

.topic-navigation-list a:hover,
.topic-navigation-list a:focus-visible,
.topic-navigation-list a[aria-current="page"],
.topic-navigation-list a.current-page {
  color: var(--beni);
}

.topic-navigation .meta-navigation {
  margin: auto 0 0;
  padding-top: 28px;
  color: var(--sumi);
}

.topic-navigation .meta-navigation a {
  color: var(--sumi);
}

.topic-navigation .meta-navigation li:not(:last-child)::after {
  color: rgba(41, 59, 66, 0.55);
}

/* =========================================================
   4. HERO
========================================================= */
.hero {
  position: relative;
  height: calc(100vh - var(--site-header-height, 81px));
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 85% 15%, rgba(185, 74, 67, 0.24), transparent 28%),
    linear-gradient(135deg, var(--sumi), var(--beni));
}

.hero>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
  position: absolute;
  top: 0;
  left: 0;
}

@media (min-width: 601px) {
  .hero>img {

    object-position: center center;

  }
}


.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 3rem;
}


.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--color-primary-dark);
  color: var(--color-text-on-dark);
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--sumi);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: rgba(245, 240, 230, 0.38);
  background: transparent;
  color: var(--color-text-on-dark);
}

.button-secondary:hover {
  background: rgba(245, 240, 230, 0.1);
}





/* HERO IMAGE */

.heroimage {
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--site-header-height, 81px));
  height: calc(100svh - var(--site-header-height, 81px));
}


.heroimage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-img-position, center center);
}

/* Bildausschnitt / Positionierung des Hero-Bildes
   Verwendung: <section class="heroimage img-left"> ... </section>
   Kombinierbar: img-top img-left, img-bottom img-right, ...
   Eigene Werte: style="--hero-img-position: 30% 70%" */
.heroimage.img-center {
  --hero-img-position: center center;
}

.heroimage.img-left {
  --hero-img-position: left center;
}

.heroimage.img-right {
  --hero-img-position: right center;
}

.heroimage.img-top {
  --hero-img-position: center top;
}

.heroimage.img-bottom {
  --hero-img-position: center bottom;
}

.heroimage.img-top.img-left {
  --hero-img-position: left top;
}

.heroimage.img-top.img-right {
  --hero-img-position: right top;
}

.heroimage.img-bottom.img-left {
  --hero-img-position: left bottom;
}

.heroimage.img-bottom.img-right {
  --hero-img-position: right bottom;
}

.heroimage .hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  /* Default: unten */
  justify-content: center;
  padding: 4rem 0;
  pointer-events: none;
  z-index: 2;
}

.heroimage.text-full-width .hero-content {
  width: 100%;
}

.heroimage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 59, 66, 0.5);
  z-index: 1;
}


.heroimage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ai);
  background: url('../crane-bg.svg') left/cover no-repeat;
  opacity: 0.1;
  z-index: -1;

}

.heroimage .hero-content .text {
  width: 100%;
  color: #fff;
  pointer-events: auto;
}

.heroimage .hero-content h2,
.heroimage .hero-content p {
  color: var(--usuki);
}

/* Text oben */
.heroimage.text-top .hero-content {
  align-items: flex-start;
}

/* Text mittig */
.heroimage.text-middle .hero-content {
  align-items: center;
}

.heroimage header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* Steuert den Abstand zwischen Eyebrow und H1 sauber */
}

.heroimage .eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--usuki);
}

.heroimage header h2 {
  margin: 0;
  /* Entfernt Standard-Margins für exakte Abstände */
}





/* =========================================================
   5. 12-SPALTEN-GRID
   .row bildet ein 12-Spalten-Raster.
   Die col-Klassen legen fest, wie viele Spalten ein Element belegt.
========================================================= */
.row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}

.col-1 {
  grid-column: span 1;
}

.col-2 {
  grid-column: span 2;
}

.col-3 {
  grid-column: span 3;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

.col-9 {
  grid-column: span 9;
}

.col-10 {
  grid-column: span 10;
}

.col-11 {
  grid-column: span 11;
}

.col-12 {
  grid-column: span 12;
}

/* =========================================================
   6. HAUPTBEREICH: SIDEBAR + CONTENT
========================================================= */
.main-section {
  padding-block: var(--space-5);
}

.section-heading {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--sumi);
}

.section-intro {
  margin: 0 0 var(--space-4);
  color: var(--sumi);
}

#massnahmen-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 var(--space-5);
  padding: 0;
  list-style: none;
}

#massnahmen-liste li {
  --measure-accent: var(--matsu);
  position: relative;
  isolation: isolate;
  min-height: 150px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(41, 59, 66, 0.1);
  border-top: 4px solid var(--measure-accent);
  background: var(--washi);
  transition: transform 180ms ease;
}

#massnahmen-liste li[data-accent="ai"] {
  --measure-accent: var(--ai);
}

#massnahmen-liste li[data-accent="matsu"] {
  --measure-accent: var(--matsu);
}

#massnahmen-liste li[data-accent="beni"] {
  --measure-accent: var(--beni);
}

#massnahmen-liste li[data-accent="sumi"] {
  --measure-accent: var(--sumi);
}

#massnahmen-liste li:hover {
  transform: translateY(-3px);
}

#massnahmen-liste strong {
  display: block;
  margin-bottom: 10px;
  color: var(--beni);
  font-family: 'Noto Serif', serif;
  font-size: 1.12rem;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  #massnahmen-liste li {
    transition: none;
  }

  #massnahmen-liste li:hover {
    transform: none;
  }
}

@media (max-width: 600px) {
  #massnahmen-liste {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #massnahmen-liste li {
    min-height: 0;
    padding: 20px;
  }
}





/* =========================================================
   7. KARTEN-GRID
   auto-fit + minmax passt die Anzahl der Karten automatisch an.
========================================================= */
.cards-section {
  padding-block: 0 var(--space-5);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-3);
}

/* .card {
  overflow: hidden;
  border: 3px solid var(--color-border);
     clip-path: polygon(
        10px 0,
        calc(100% - 10px) 0,
        100% 10px,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        10px 100%,
        0 calc(100% - 10px),
        0 10px
    );

  background: var(--color-surface);
  box-shadow: var(--shadow);
  filter: drop-shadow(0 4px 6px var(--shadow));
  color: var(--sumi); 
}
*/


.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-border);
  color: var(--sumi);

  /* clip-path: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 14px),
    0 14px
  ); */

  clip-path: polygon(100% 0,
      100% 0,
      100% calc(100% - 14px),
      0 100%,
      0 14px);
}







.card-visual {
  display: grid;
  min-height: 132px;
  place-items: center;
  background: linear-gradient(135deg, var(--suna), var(--washi));
  color: var(--beni);
  font-size: 2.2rem;
  font-weight: 800;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--sumi);
}

.card-body p {
  margin: 0;
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  margin-top: 15px;
  color: var(--sumi);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.text-link:hover {
  color: var(--sumi);
  text-decoration: underline;
}

/* =========================================================
   8. FOOTER
========================================================= */
.site-footer {
  padding-block: 42px 22px;
  background: var(--sumi);
  color: var(--color-text-on-dark);
}

.site-footer h2 {
  font-size: 2rem;
  color: var(--color-text-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
}

.footer-column h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--color-text-on-dark);
}

.footer-column p,
.footer-column a {
  color: var(--suna);
  font-size: 0.93rem;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a:hover {
  color: var(--usuki);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: var(--space-4);
  padding-top: 18px;
  border-top: 1px solid rgba(200, 184, 160, 0.14);
  color: var(--suna);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--suna);
  text-decoration: underline;
}

.meta-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--suna);
  font-size: 0.85rem;
}

.meta-navigation li {
  display: inline-flex;
  align-items: center;
}

.meta-navigation li:not(:last-child)::after {
  content: "|";
  margin: 0 12px;
  color: rgba(200, 184, 160, 0.65);
}

.meta-navigation a {
  color: var(--suna);
  text-decoration: none;
}

.meta-navigation a:hover,
.meta-navigation a:focus-visible {
  color: var(--usuki);
  text-decoration: underline;
}

/* =========================================================
   9. BREAKPOINTS
   Tablet: Raster bleibt 12-spaltig, Spalten werden angepasst.
   Smartphone: Navigation klappt auf, Layout wird einspaltig.
========================================================= */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .topic-navigation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row {
    gap: 18px;
  }

  .col-md-12 {
    grid-column: span 12;
  }

  .col-md-8 {
    grid-column: span 8;
  }

  .col-md-6 {
    grid-column: span 6;
  }

  .col-md-4 {
    grid-column: span 4;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-column:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 18px;
    --space-3: 18px;
  }

  .header-inner {
    min-height: 68px;
  }

  .topic-navigation-list {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .row>[class*="col-"] {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-column:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================================
   MAP SECTION STYLES
========================================================= */
#crane-radar {
  background: var(--matsu);
  color: var(--sumi);
  /* Suna + Sumi = ~6.0:1 Kontrast ✅ */
}

#map {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(41, 59, 66, 0.1);
  --crane-default-color: var(--beni);
}

.crane {
  color: var(--beni);
}

.period-control {
  margin: 16px 0;
}

.period-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  color: var(--sumi);
  font-size: 14px;
}

.period-loading[hidden] {
  display: none;
}

.period-loading::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: '';
  animation: period-loading-spin 0.8s linear infinite;
}

@keyframes period-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .period-loading::before {
    animation-duration: 2s;
  }
}

.period-control button {
  padding: 8px 14px;
  border: 1px solid var(--matsu);
  background: var(--suna);
  color: var(--sumi);
  /* Suna + Sumi = ~6.0:1 ✅ */
  cursor: pointer;
  border-radius: 6px;
}

.period-control button:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-on-dark);
}

.period-control button[aria-pressed="true"] {
  color: var(--color-text-on-dark);
  background: var(--color-primary-dark);
}

.period-control select {
  padding: 8px;
  margin-left: 6px;
  border: 1px solid var(--matsu);
  border-radius: 6px;
  background: var(--suna);
  color: var(--sumi);
  /* Suna + Sumi = ~6.0:1 ✅ */
}

.location-search {
  margin: 16px 0;
}

.location-search input {
  max-width: 360px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--matsu);
  border-radius: 6px;
  background: var(--suna);
  color: var(--sumi);
  /* Suna + Sumi = ~6.0:1 ✅ */
}

.location-search .location-preset-select {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  padding: 9px;
  border: 1px solid var(--matsu);
  border-radius: 6px;
  background: var(--suna);
  color: var(--sumi);
  font: inherit;
}

.location-search input::placeholder {
  color: var(--sumi);
  opacity: 1;
}

.location-search button {
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid var(--color-primary-dark);
  background: var(--color-primary-dark);
  color: var(--color-text-on-dark);
  border-radius: 6px;
}

.location-search button:hover {
  background: var(--sumi);
}

#location-status {
  min-height: 1.2em;
  color: var(--sumi);
  /* Matsu Hintergrund in crane-radar */
}

.ebird-info {
  margin: 12px 0;
  color: var(--sumi);
  /* Matsu Hintergrund in crane-radar */
}

#map .leaflet-popup-pane {
  z-index: 1000;
}

#map .place-map-label {
  background: var(--washi);
  border: 1px solid var(--sumi);
  border-radius: 0;
  box-shadow: none;
  color: var(--sumi);
  font: 600 12px Helvetica, Arial, sans-serif;
  padding: 4px 7px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 24px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--sumi);
  /* Matsu Hintergrund in crane-radar */
}

.legend-item input {
  margin: 0;
  accent-color: var(--beni);
}

.legend-dot {
  width: 13px;
  height: 13px;
  border: 1px solid var(--sumi);
  display: inline-block;
}

/* Legend dots colors */
.legend-dot--ai {
  background-color: var(--ai);
}

.legend-dot--matsu {
  background-color: var(--matsu);
}

.legend-dot--sumi {
  background-color: var(--sumi);

}

.crane-icon {
  background: transparent;
  border: 0;
}

.crane-icon svg {
  display: block;
}



.period-control,
.location-search,
.ebird-info,
.map-legend {
  font-size: 16px;
}

.period-control,
.location-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.period-control button,
.period-control select,
.location-search .location-preset-select,
.location-search input,
.location-search button {
  box-sizing: border-box;
  min-height: 44px;
  font-size: 16px;
}

.location-search button {
  flex: 1 1 auto;
}

.leaflet-control-zoom a {
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  font-size: 24px !important;
  background: var(--suna) !important;
  color: var(--sumi) !important;
  /* Suna + Sumi = ~6.0:1 ✅ */
}

.leaflet-control-attribution {
  font-size: 12px;
  color: var(--sumi) !important;
  background: var(--washi) !important;
}

.leaflet-popup-content {
  font-size: 16px;
  line-height: 1.4;
  color: var(--sumi);
}

#map .place-map-label {
  font-size: 14px;
}

@media (min-width: 601px) {
  #map {
    aspect-ratio: 16 / 9;
    max-height: 550px;
  }

  .period-control,
  .location-search {
    display: block;
    gap: normal;
  }

  .location-search input {
    width: 65%;
  }

  .period-control button,
  .period-control select,
  .location-search input,
  .location-search button {
    min-height: 0;
    font-size: inherit;
  }

  .location-search button {
    flex: initial;
  }

  .leaflet-control-zoom a {
    width: 26px !important;
    height: 26px !important;
    line-height: 26px !important;
    font-size: 22px !important;
    background: #fff !important;
    border-color: var(--beni) !important;
    color: var(--beni) !important;
    /* Suna + Sumi = ~6.0:1 ✅ */
  }

  .leaflet-control-attribution {
    font-size: 11px;
    color: var(--sumi) !important;
    background: var(--washi) !important;
  }

  .leaflet-popup-content {
    font-size: 12px;
    line-height: 1.4;
    color: var(--sumi);
  }

  #map .place-map-label {
    font-size: 12px;
  }
}

@media (min-width: 1280px) {
  #map {
    max-height: 700px;
  }
}


/* =========================================================
   ACCORDION STYLES
========================================================= */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: var(--space-4) 0;
  border-top: 2px solid var(--color-border);
}

.accordion-item {
  border-bottom: 2px solid var(--color-border);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 14px 0;
  text-align: left;
  font-family: 'Noto Serif', serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--sumi);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 160ms ease;
}

footer .accordion-trigger {
  color: var(--color-text-on-dark);
}

.accordion-trigger:hover,
.accordion-trigger:focus {
  color: var(--color-primary-dark);
  /* Rot auf hellem Grund: ~5,4:1 auf Usuki */
}

footer .accordion-trigger:hover,
footer .accordion-trigger:focus {
  color: #F29B94;
  /* Helles Rot auf Sumi: ~5,5:1 */
}

.accordion-trigger::after {
  content: "";
  display: inline-block;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/chevron-down.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/chevron-down.svg') center / contain no-repeat;
  transition: transform 160ms ease;
  speak: none;
}

.accordion-locations .accordion-trigger::before {
  content: "";
  flex: 0 0 1.4rem;
  width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.65rem;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/map-pin.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/map-pin.svg') center / contain no-repeat;
}

.accordion-locations .accordion-trigger {
  justify-content: flex-start;
  text-align: left;
}

.accordion-locations .accordion-trigger::after {
  margin-left: auto;
}

.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.accordion-content {
  position: relative;
  /* Bezugsrahmen für .visually-hidden, sonst vergrößert versteckter Text die Seite */
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: max-height 900ms ease;
}

.accordion-item.is-open .accordion-content {
  max-height: 12000px;
}

/* =========================================================
   SCROLL ANIMATION STYLES (Kraniche Website)
========================================================= */

/* Scene Copy Hintergrundfarben - ersetzen inline styles */
.scene-copy--suna {
  background: var(--suna);
  color: var(--sumi);
}

.scene-copy--ai {
  background: var(--ai);
  color: var(--washi);
}

.scene-copy--matsu {
  background: var(--matsu);
  color: var(--sumi);
}

.scene-copy--sumi {
  background: var(--sumi);
  color: var(--washi);
}

/* Teaser opacity */
.homepage-teaser--hidden {
  opacity: 0;
}



/* Eyebrow color */
.eyebrow--beni {
  color: var(--color-primary-dark);
}

.header {
  height: 500px;
}

.homepage-teasers {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--site-header-height, 81px));
  height: calc(100svh - var(--site-header-height, 81px));
  overflow: hidden;
  background: var(--usuki);
}

.story-pin {
  position: relative;
  width: 100%;
  height: 100%;
}

.homepage-teaser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Mobil (Basis): Fläche oben, unten 25 % der Story-Höhe frei; Bild rechts unten */
.scene-copy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 0 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.scene-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../crane-bg.svg') left/cover no-repeat;
  opacity: 0.1;
  z-index: -1;

}

/* Ab dem 2. Teaser startet die Fläche unsichtbar (Höhe 0) an der Unterkante der 1. Fläche */
.homepage-teaser:not(:first-child) .scene-copy {
  top: 75%;
  height: 0;
}

/* Einheitlicher Textblock, damit Überschrift, Text und Button zusammen animieren. */
.scene-copy-inner {
  width: calc(100vw - 40px);
  margin: 0 0 24vh;
  margin-bottom: 24svh;
  margin-bottom: 24dvh;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

.scene-copy h2 {
  margin: 0 0 16px;
  font-size: 7vw;
  color: inherit;
}

.scene-copy p {
  max-width: 38rem;
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
}

.scene-art {
  position: absolute;
  top: 55%;
  right: 0;
  width: 65%;
  height: 45%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

/* Teaser-Buttons - Farbe und Hintergrund vom Eltern-Element erben */
.scene-copy button[type="button"] {
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 0;
  padding: 12px 20px;
  font: inherit;
  cursor: pointer;
  font-weight: 700;
}

.scene-copy button[type="button"]:hover {
  background: currentColor;
  color: var(--washi);
}

/* Desktop */
@media (min-width: 996px) {
  .scene-copy {
    top: 100px;
    width: 80%;
    height: calc(100% - 100px);
    padding: 0 0 0 40px;
  }

  .homepage-teaser:not(:first-child) .scene-copy {
    top: 100%;
  }

  .scene-copy-inner {
    width: 55vw;
    margin-bottom: 80px;
  }

  .scene-copy h2 {
    font-size: clamp(32px, 4vw, 64px);
    color: inherit;
  }

  .scene-art {
    top: 0;
    width: 40%;
    height: 90%;
  }
}

.scene-art video,
.scene-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cover {
  background-repeat: no-repeat;
  background-size: cover;
}

.footer {
  position: relative;
  width: 100%;
  height: 500px;
  background: var(--sumi);
}

/* Kranich-spezifische Button-Stile */
button[type="button"] {
  padding: 12px 20px;
  border: 2px solid var(--beni);
  background: transparent;
  color: var(--beni);
  font: inherit;
  cursor: pointer;
  border-radius: 0px;
  margin-bottom: 10px;
  font-weight: 600;
  transition: all 160ms ease;
}

button[type="button"]:hover {
  background: var(--beni);
  color: var(--color-text-on-dark);
}

button.menu-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  place-items: center;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--sumi);
}

button.menu-toggle:hover {
  background: var(--suna);
  color: var(--sumi);
}

button.topic-navigation-close {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  place-items: center;
  border: none;
  /* border: 1px solid var(--color-border); */
  background: transparent;
  color: var(--beni);
}

button.topic-navigation-close:hover {
  background: transparent;
  color: var(--beni);
}

button[type="button"].primary {
  background: var(--beni);
  color: #fff;
}

.duotone video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter:
    grayscale(1) contrast(200%);
}

.duotone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--beni);
  mix-blend-mode: darken;
  z-index: 1;
}

.duotone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: midnightblue;
  mix-blend-mode: lighten;
  z-index: 1;
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sumi);
}

.video-placeholder {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: clamp(16px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--washi);
  text-align: center;
}

.video-placeholder p {
  max-width: 620px;
  margin: 0;
}

.video-load-button {
  padding: 10px 16px;
  border: 1px solid var(--washi);
  border-radius: 6px;
  background: var(--beni);
  color: var(--washi);
  font: inherit;
  cursor: pointer;
}

.video-load-button:hover {
  background: var(--color-primary-dark);
}

.video-load-button:focus-visible {
  outline: 3px solid var(--washi);
  outline-offset: 3px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
   EINWILLIGUNGSBANNER UND EXTERNE KARTENDIENSTE
========================================================= */
#site-consent-banner {
  position: fixed;
  z-index: 20000;
  inset: auto 0 0;
  padding: 22px max(20px, calc((100vw - 900px) / 2));
  background: #293b42;
  color: #f5f0e6;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  font: 14px system-ui, sans-serif;
  line-height: 1.2;
}

#site-consent-banner[hidden] {
  display: none;
}

#site-consent-banner h2 {
  margin: 0 0 8px;
  padding-right: 48px;
  color: inherit;
  font: 600 1.25rem/1.3 system-ui, sans-serif;
}

#site-consent-banner .consent-close-button {
  position: absolute;
  top: 12px;
  right: max(12px, calc((100vw - 900px) / 2));
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 2px solid var(--beni);
  border-radius: 50%;
  background: transparent;
  color: #f5f0e6;
}

#site-consent-banner .consent-close-icon {
  display: block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/x.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/x.svg') center / contain no-repeat;
}

#site-consent-banner .consent-close-button[hidden] {
  display: none;
}

#site-consent-banner .consent-close-button:hover {
  background: #40535a;
}

#site-consent-banner p {
  max-width: 900px;
  margin: 0 0 14px;
}

#site-consent-banner .consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#site-consent-banner button {

  color: #f5f0e6;

}

#site-consent-banner button:hover {
  background: #40535a;
}

#site-consent-banner button:focus-visible,
#site-consent-banner input:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

#site-consent-banner .consent-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

#site-consent-banner .consent-options[hidden] {
  display: none;
}

#site-consent-banner label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#site-consent-banner input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #b94a43;
}

#site-consent-banner .consent-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

#site-consent-banner a,
#site-consent-banner [data-open-privacy] {
  color: #f5f0e6;
  text-decoration: underline;
}

#site-consent-banner [data-open-privacy] {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.privacy-settings-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

#map {
  position: relative;
}

.map-consent-placeholder {
  position: absolute;
  z-index: 1000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 24px;
  border-radius: inherit;
  background: #293b42;
  color: #f5f0e6;
  text-align: center;
  font: 16px/1.5 system-ui, sans-serif;
}

.map-consent-placeholder p {
  max-width: 560px;
  margin: 0;
}

.map-consent-placeholder button {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #f5f0e6;
  border-radius: 6px;
  background: #b94a43;
  color: #f5f0e6;
  font: inherit;
  cursor: pointer;
}

.map-controls-consent-blocked {
  opacity: 0.55;
}

@media (max-width: 600px) {
  #site-consent-banner {
    padding: 18px 16px;
  }

  #site-consent-banner .consent-close-button {
    top: 8px;
    right: 8px;
  }

  #site-consent-banner .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #site-consent-banner button {
    width: 100%;
  }
}

#kontakt {
  background: var(--matsu);
}

.blended-image {
  display: block;
  filter: grayscale(100%);
  /* Entfernt die Originalfarben */
  mix-blend-mode: multiply;
  /* Übernimmt die Hintergrundfarbe */
  clip-path: polygon(100% 0,
      100% 0,
      100% calc(100% - 14px),
      0 100%,
      0 14px);

}

.thumbnail {
  display: block;
  width: min(100%, 180px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-inline: auto;
}

.trash-heading {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.trash-heading::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/trash.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/trash.svg') center / contain no-repeat;
}

.practical-heading {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.practical-heading::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/backpack.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/backpack.svg') center / contain no-repeat;
}

.clothing-heading {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.clothing-heading::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/shoe.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/shoe.svg') center / contain no-repeat;
}

.observation-heading {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.observation-heading::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/binoculars.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/binoculars.svg') center / contain no-repeat;
}

.dog-heading {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.dog-heading::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/dog.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/dog.svg') center / contain no-repeat;
}

.car-heading {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.car-heading::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/car.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/car.svg') center / contain no-repeat;
}

.no-drone-heading {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.no-drone-heading::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/drone-off.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/drone-off.svg') center / contain no-repeat;
}

.distance-heading {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.distance-heading::before {
  content: "";
  flex: 0 0 1.2em;
  width: 1.2em;
  height: 1.2em;
  background-color: currentColor;
  -webkit-mask: url('../fonts/tabler-icons-main/icons/outline/hand-stop.svg') center / contain no-repeat;
  mask: url('../fonts/tabler-icons-main/icons/outline/hand-stop.svg') center / contain no-repeat;
}

.image-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  gap: 24px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.image-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: center;
}

.image-list .thumbnail {
  width: min(100%, 180px);
}

@media (max-width: 700px) {
  .image-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Tabs / Accordion (js/tabs.js)
   Desktop: Tabs, Mobile (<= 600px): Accordion
   ========================================================================== */
/* Reset gegen globale button[type="button"]-Stile */
.tabs button.tabs-tab,
.slider button.slider-arrow,
.slider button.slider-toggle,
.slider button.slider-dot {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
  color: var(--sumi);
}

.tabs button.tabs-tab {
  padding: 14px 18px;
}

.tabs button.tabs-tab:hover {
  background: transparent;
  color: var(--sumi);
}

.slider button.slider-arrow:hover,
.slider button.slider-toggle:hover,
.slider button.slider-dot:hover {
  background: transparent;
}

.slider button.slider-arrow,
.slider button.slider-toggle,
.slider button.slider-dot {
  padding: 0;
}

.tabs {
  margin: var(--space-3) 0;
}

.tabs-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  color: var(--sumi);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.tabs-tab:focus-visible {
  outline: 3px solid var(--ai);
  outline-offset: -3px;
}

.tabs-icon,
.tabs-chevron {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabs-icon {
  width: 26px;
  height: 26px;
}

.tabs-chevron {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.tabs-panel {
  padding: 18px 20px;
  background: var(--washi);
}

.tabs-panel[hidden] {
  display: none;
}



/* Desktop: Tabs */
.tabs.is-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tabs.is-tabs .tabs-item {
  display: contents;
}

.tabs.is-tabs .tabs-tab {
  grid-row: 1;
  justify-content: center;
  border-bottom: 3px solid var(--suna);
}

.tabs.is-tabs .tabs-item:nth-child(1) .tabs-tab { grid-column: 1; }
.tabs.is-tabs .tabs-item:nth-child(2) .tabs-tab { grid-column: 2; }
.tabs.is-tabs .tabs-item:nth-child(3) .tabs-tab { grid-column: 3; }

.tabs.is-tabs .tabs-tab:hover {
  background: var(--color-soft);
}

.tabs.is-tabs .tabs-tab[aria-selected="true"] {
  background: var(--washi);
  border-bottom-color: var(--beni);
  color: var(--beni);
}

.tabs.is-tabs .tabs-panel {
  grid-row: 2;
  grid-column: 1 / -1;
}

/* Mobile: Accordion */
.tabs.is-accordion .tabs-item {
  margin-bottom: 8px;
  background: var(--washi);
  border-left: 4px solid var(--beni);
}

.tabs.is-accordion .tabs-chevron {
  display: block;
}

.tabs.is-accordion .tabs-tab[aria-expanded="true"] .tabs-chevron {
  transform: rotate(180deg);
}

.tabs.is-accordion .tabs-panel {
  padding-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .tabs-chevron {
    transition: none;
  }
}

/* ==========================================================================
   Slider (js/slider.js)
   ========================================================================== */
.slider {
  margin: var(--space-3) 0;
}

/* Ohne JS: horizontal scrollbar mit Snap */
.slider:not(.is-ready) {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.slider:not(.is-ready) .slider-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.slider-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

/* Spalten gleich breit; Höhe passt sich der höchsten Slide an */
.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: start;
  transition: transform 0.4s ease;
}

.slider-slide {
  min-width: 0;
}

.slider-figure {
  margin: 0;
}

.slider-slide img {
  display: block;
  width: 100%;
  height: auto;
}


.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.slider-arrow,
.slider-toggle,
.slider-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--sumi);
  cursor: pointer;
}

.slider-arrow,
.slider-toggle {
  width: 44px;
  height: 44px;
}

.slider-arrow svg,
.slider-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-arrow:hover:not(:disabled),
.slider-toggle:hover {
  color: var(--beni);
}

.slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.slider-dots {
  display: flex;
  align-items: center;
}

/* Klickfläche 44px hoch, sichtbarer Punkt per ::before */
.slider-dot {
  width: 28px;
  height: 44px;
  padding: 0;
}

.slider-dot::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--sumi);
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.slider-dot:hover::before {
  border-color: var(--beni);
}

/* Aktiv: ausgefüllter Punkt (nicht nur Farbe, auch Füllung) */
.slider-dot[aria-current="true"]::before {
  background: var(--beni);
  border-color: var(--beni);
}

.slider-arrow:focus-visible,
.slider-toggle:focus-visible,
.slider-dot:focus-visible {
  outline: 3px solid var(--ai);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {

  .slider-track,
  .slider-dot::before {
    transition: none;
  }
}

/* ==========================================================================
   Sonnenzeiten (js/sun-times.js)
   ========================================================================== */
.sun-times {
  margin: var(--space-4) 0 var(--space-3);
  padding: 20px;
  background: var(--washi);
  border-left: 4px solid var(--beni);
}

.sun-times h4 {
  margin-top: 0;
}

.sun-times-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.sun-times-controls>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sun-times-controls label {
  font-weight: 700;
}

.sun-times select,
.sun-times input[type="date"] {
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px;
  border: 1px solid var(--matsu);
  border-radius: 6px;
  background: var(--suna);
  color: var(--sumi);
  font: inherit;
}

.sun-times select {
  max-width: 100%;
}

.sun-times-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}

.sun-times-list>div {
  padding: 12px 14px;
  background: var(--color-bg);
}

.sun-times-list dt {
  font-size: 0.9em;
}

.sun-times-list dd {
  margin: 4px 0 0;
  font-size: 1.25em;
  font-weight: 700;
}

.sun-times-list .sun-times-highlight {
  background: var(--sumi);
  color: var(--color-text-on-dark);
}

/* Desktop: vier Zeiten in einer Reihe, die zwei Empfehlungen je halbe Breite */
@media (min-width: 601px) {
  .sun-times-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .sun-times-list .sun-times-highlight {
    grid-column: span 2;
  }
}

.sun-times-note {
  margin: 12px 0 0;
  font-size: 0.85em;
}

