/* ferienregion.info – zentrales Stylesheet */
:root {
  --gruen: #2e6e4e;
  --gruen-dunkel: #1f4d36;
  --sand: #f7f4ee;
  --text: #2b2b2b;
  --grau: #6b6b6b;
  --rand: #e3ded4;
  --akzent: #2e6e4e;
  --akzent-hell: #4a9970;
  --hero-a: #1f4d36;
  --hero-b: #3a8a60;
}

/* Regions-Farbwelten */
.theme-ostsee      { --akzent:#1d6fa3; --akzent-hell:#4fa3d1; --hero-a:#134d73; --hero-b:#3d95c4; }
.theme-allgaeu     { --akzent:#2e6e4e; --akzent-hell:#4a9970; --hero-a:#1f4d36; --hero-b:#4a9970; }
.theme-schwarzwald { --akzent:#1e4a38; --akzent-hell:#3c7a5c; --hero-a:#12312a; --hero-b:#2e6350; }
.theme-suedtirol   { --akzent:#8a4a5e; --akzent-hell:#b47084; --hero-a:#5e3242; --hero-b:#a35c72; }
.theme-nordsee     { --akzent:#0f5e63; --akzent-hell:#3d9299; --hero-a:#0c464d; --hero-b:#37858c; }
.theme-bodensee    { --akzent:#3b5ea8; --akzent-hell:#6c8ccb; --hero-a:#2a4478; --hero-b:#5f80c2; }
.theme-harz        { --akzent:#4d5b6e; --akzent-hell:#7488a0; --hero-a:#333f4d; --hero-b:#66798f; }
.theme-seenplatte  { --akzent:#177a6b; --akzent-hell:#43a897; --hero-a:#0f574c; --hero-b:#3d9c8b; }
.theme-eifel       { --akzent:#566e2f; --akzent-hell:#86a35c; --hero-a:#44591f; --hero-b:#7d9c4e; }
.theme-bayerwald   { --akzent:#2c5e57; --akzent-hell:#4f8a80; --hero-a:#1e443f; --hero-b:#47837a; }
.theme-heide       { --akzent:#8f5290; --akzent-hell:#b47cb5; --hero-a:#66386a; --hero-b:#a86baa; }
.theme-elbsandstein{ --akzent:#96622e; --akzent-hell:#bf8c55; --hero-a:#6e4620; --hero-b:#b28149; }
.theme-mosel       { --akzent:#46656e; --akzent-hell:#6f8f99; --hero-a:#324a52; --hero-b:#5f828c; }
.theme-berneroberland { --akzent:#146d5f; --akzent-hell:#3d9a8a; --hero-a:#0f5348; --hero-b:#35897b; }
.theme-wallis      { --akzent:#7d3c46; --akzent-hell:#a5636d; --hero-a:#5c2b33; --hero-b:#95535e; }
.theme-graubuenden { --akzent:#4f5d75; --akzent-hell:#7c8aa5; --hero-a:#39445a; --hero-b:#6f7f9e; }
.theme-tessin      { --akzent:#a3541f; --akzent-hell:#c77f4a; --hero-a:#7a3e15; --hero-b:#b8712f; }
.theme-luzern      { --akzent:#23689b; --akzent-hell:#5b93c1; --hero-a:#194e77; --hero-b:#4c87b6; }
.theme-tirol       { --akzent:#2d6a3f; --akzent-hell:#569a68; --hero-a:#1f4d2d; --hero-b:#4c8f5e; }
.theme-salzburgerland { --akzent:#46688c; --akzent-hell:#7392b5; --hero-a:#324c69; --hero-b:#6488ad; }
.theme-salzkammergut  { --akzent:#22808f; --akzent-hell:#54abb9; --hero-a:#175e6a; --hero-b:#4ba0af; }
.theme-kaernten    { --akzent:#a4462e; --akzent-hell:#c97a5e; --hero-a:#7c3423; --hero-b:#bd6a4b; }
.theme-vorarlberg  { --akzent:#7a5c3e; --akzent-hell:#a5865e; --hero-a:#594328; --hero-b:#977953; }

* { box-sizing: border-box; margin: 0; padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Skip-Link: nur bei Tastaturfokus sichtbar */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--gruen-dunkel);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 0;
  text-decoration: underline;
}
.skip:focus { left: 0; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
}

/* ---------- Header ---------- */
header.site {
  background: rgba(20, 40, 32, 0.92);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
header.site a { color: #fff; text-decoration: none; }
header.site .logo { font-size: 1.3rem; font-weight: bold; letter-spacing: 0.02em; }
header.site nav { margin-top: 0.4rem; font-size: 0.95rem; }
header.site nav a {
  margin-right: 1rem; opacity: 0.85;
  border-bottom: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
header.site nav a:hover,
header.site nav a:focus-visible { opacity: 1; border-color: #fff; }

/* ---------- Hero mit SVG-Szene ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color: #fff;
  padding: 4rem 1.5rem 0;
  text-align: center;
  overflow: hidden;
}
.hero h1, .hero p { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  animation: fadeUp .8s ease both;
}
.hero p {
  max-width: 640px; margin: 0 auto;
  opacity: 0.95;
  animation: fadeUp .8s .15s ease both;
}
.hero .szene { display: block; width: 100%; height: auto; margin-top: 2.5rem; position: relative; z-index: 1; }

/* Sonne & Wolken in der Hero-Szene */
.hero .sonne { animation: pulsieren 6s ease-in-out infinite; transform-origin: center; }
.hero .wolke1 { animation: treiben 38s linear infinite; }
.hero .wolke2 { animation: treiben 55s linear infinite reverse; }
.hero .welle  { animation: wogen 7s ease-in-out infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes treiben { from { transform: translateX(-15%); } to { transform: translateX(115%); } }
@keyframes pulsieren { 0%,100% { opacity: .9; } 50% { opacity: 1; } }
@keyframes wogen { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Inhalt ---------- */
main { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }

main h1, h2 {
  color: var(--akzent);
  margin: 2rem 0 0.8rem;
  padding-bottom: .3rem;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--akzent) 0 60px, var(--rand) 60px) 1;
}
h3 { color: var(--akzent); margin: 1.4rem 0 0.5rem; }
p + p { margin-top: 0.8rem; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .sonne, .hero .wolke1, .hero .wolke2, .hero .welle { animation: none; }
}

/* ---------- Regionskarten ---------- */
.karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
}
.karte {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.karte:hover,
.karte:focus-visible { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0,0,0,0.14); }
.karte .bild { display: block; width: 100%; height: auto; }
.karte .bild svg { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.karte:hover .bild svg { transform: scale(1.05); }
.karte .inhalt { padding: 1.1rem 1.3rem 1.3rem; }
.karte h3 { margin-top: 0; }
.karte .tag {
  display: inline-block;
  background: var(--sand);
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
  color: var(--grau);
  margin: 0.35rem 0.2rem 0 0;
}

/* ---------- Länder-Sektionen (aufklappbar) ---------- */
details.land {
  margin: 1.6rem 0;
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.land summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.4rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, var(--gruen-dunkel) 0%, var(--gruen) 100%);
  transition: filter .2s ease;
}
details.land summary:hover,
details.land summary:focus-visible { filter: brightness(1.12); }
details.land summary::-webkit-details-marker { display: none; }
details.land summary::after {
  content: "";
  margin-left: auto;
  width: 0.65em; height: 0.65em;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}
details.land[open] summary::after { transform: rotate(225deg); translate: 0 3px; }
details.land summary .anzahl {
  font-size: 0.85rem;
  font-weight: normal;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  white-space: nowrap;
}
details.land .karten { padding: 1.3rem; margin-top: 0; }

/* ---------- Sprachumschalter ---------- */
header.site { position: sticky; }
.sprachen {
  float: right;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin: 0.2rem 0 0 1rem;
}
.sprachen a, .sprachen span { margin-left: 0.55rem; opacity: 0.75; }
.sprachen a:hover, .sprachen a:focus-visible { opacity: 1; text-decoration: underline; }
.sprachen span[aria-current] {
  opacity: 1;
  font-weight: bold;
  border-bottom: 2px solid #fff;
}

/* ---------- Boxen, Buttons, Tabellen ---------- */
.infobox {
  background: #fff;
  border: 1px solid var(--rand);
  border-left: 5px solid var(--akzent);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.affiliate-hinweis { font-size: 0.85rem; color: var(--grau); margin-top: 1.5rem; }

a.cta {
  display: inline-block;
  background: var(--akzent); /* einfarbig: Kontrast ≥ 4,5:1 in allen Themes (WCAG 1.4.3) */
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.65rem 1.3rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.cta:hover,
a.cta:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.22); filter: brightness(0.9); }

table {
  border-collapse: collapse; width: 100%; margin: 1rem 0;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
th, td { border: 1px solid var(--rand); padding: 0.55rem 0.8rem; text-align: left; }
th { background: var(--akzent); color: #fff; border-color: var(--akzent); }
tr:nth-child(even) td { background: #fbfaf7; }
tr:hover td { background: #f1eee6; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--rand);
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--grau);
}
footer.site a { color: var(--grau); margin: 0 0.5rem; }

/* ---------- Logo mit Schild-Icon ---------- */
.logo a { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo img { display: block; border-radius: 6px; }
