/* =========================================================
   ILA DESIGNWELT 2026
   Drei umschaltbare Farbschemata + lebendiger Hintergrund
   ========================================================= */

:root,
:root[data-theme="light"]{
  color-scheme:light;
  --ink:#20211e;
  --muted:#686760;
  --cream:#f8f6f1;
  --cream2:#f0ece3;
  --paper:#fffefb;
  --gold:#b89858;
  --gold2:#d9bc7e;
  --line:#e4ded3;
  --deep:#222824;
  --shadow:0 22px 70px rgba(30,29,24,.10);

  --theme-page:#f8f5ee;
  --theme-page-alt:#eef4eb;
  --theme-surface:rgba(255,254,251,.90);
  --theme-surface-alt:rgba(248,245,238,.91);
  --theme-card:rgba(255,254,251,.94);
  --theme-card-soft:rgba(250,247,240,.92);
  --theme-text:#20211e;
  --theme-muted:#686760;
  --theme-accent:#b89858;
  --theme-accent-2:#d9bc7e;
  --theme-accent-ink:#182018;
  --theme-line:#e4ded3;
  --theme-header:rgba(255,254,251,.88);
  --theme-topline:#242823;
  --theme-topline-text:#e9e4da;
  --theme-button:#242823;
  --theme-button-hover:#41483d;
  --theme-button-text:#fff;
  --theme-deep:#232a25;
  --theme-deep-2:#363b31;
  --theme-deep-text:#fff;
  --theme-shadow:0 22px 70px rgba(30,29,24,.11);
  --theme-hero:linear-gradient(128deg,#fffdf8 0%,#f7efe3 43%,#e8f2e7 72%,#f1ebf8 100%);
  --theme-ambient-a:rgba(239,176,92,.32);
  --theme-ambient-b:rgba(92,166,224,.24);
  --theme-ambient-c:rgba(88,167,112,.24);
  --theme-ambient-d:rgba(211,123,170,.18);
  --theme-grid:rgba(173,139,75,.08);
  --theme-nature-shade:linear-gradient(90deg,rgba(22,29,20,.88) 0%,rgba(24,30,21,.58) 52%,rgba(31,35,25,.20) 100%),linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.22));
  --theme-nature-filter:saturate(1.13) contrast(1.03);
}

:root[data-theme="gold"]{
  color-scheme:dark;
  --ink:#f5e8ca;
  --muted:#c8bda8;
  --cream:#090a0c;
  --cream2:#111318;
  --paper:#17181c;
  --gold:#dbb65e;
  --gold2:#f2d388;
  --line:rgba(233,199,123,.22);
  --deep:#050608;
  --shadow:0 26px 85px rgba(0,0,0,.44);

  --theme-page:#07080a;
  --theme-page-alt:#14110b;
  --theme-surface:rgba(12,13,16,.91);
  --theme-surface-alt:rgba(18,19,23,.92);
  --theme-card:rgba(23,24,29,.94);
  --theme-card-soft:rgba(27,25,21,.93);
  --theme-text:#f5e8ca;
  --theme-muted:#c8bda8;
  --theme-accent:#dbb65e;
  --theme-accent-2:#f2d388;
  --theme-accent-ink:#151006;
  --theme-line:rgba(233,199,123,.22);
  --theme-header:rgba(7,8,10,.89);
  --theme-topline:#020203;
  --theme-topline-text:#efdcae;
  --theme-button:#dbb65e;
  --theme-button-hover:#f0cf82;
  --theme-button-text:#171005;
  --theme-deep:#050608;
  --theme-deep-2:#12100b;
  --theme-deep-text:#fff4d8;
  --theme-shadow:0 26px 85px rgba(0,0,0,.46);
  --theme-hero:linear-gradient(132deg,#050607 0%,#111216 38%,#241a0a 72%,#0b1512 100%);
  --theme-ambient-a:rgba(245,191,77,.35);
  --theme-ambient-b:rgba(255,119,28,.20);
  --theme-ambient-c:rgba(44,152,114,.18);
  --theme-ambient-d:rgba(166,108,255,.14);
  --theme-grid:rgba(222,180,92,.08);
  --theme-nature-shade:linear-gradient(90deg,rgba(3,4,5,.93) 0%,rgba(13,10,5,.70) 50%,rgba(13,9,3,.31) 100%),linear-gradient(180deg,rgba(223,175,68,.05),rgba(0,0,0,.44));
  --theme-nature-filter:saturate(.92) sepia(.18) contrast(1.12) brightness(.78);
}

:root[data-theme="blue"]{
  color-scheme:light;
  --ink:#102b4b;
  --muted:#58708b;
  --cream:#edf6ff;
  --cream2:#dfeeff;
  --paper:#ffffff;
  --gold:#1468d5;
  --gold2:#69b8ff;
  --line:#cfe1f5;
  --deep:#0b3f78;
  --shadow:0 22px 70px rgba(24,79,137,.15);

  --theme-page:#eef7ff;
  --theme-page-alt:#dfeeff;
  --theme-surface:rgba(255,255,255,.91);
  --theme-surface-alt:rgba(237,247,255,.92);
  --theme-card:rgba(255,255,255,.95);
  --theme-card-soft:rgba(242,249,255,.95);
  --theme-text:#102b4b;
  --theme-muted:#58708b;
  --theme-accent:#1468d5;
  --theme-accent-2:#69b8ff;
  --theme-accent-ink:#fff;
  --theme-line:#cfe1f5;
  --theme-header:rgba(249,253,255,.91);
  --theme-topline:#0b3f78;
  --theme-topline-text:#f2f8ff;
  --theme-button:#1468d5;
  --theme-button-hover:#0d53ad;
  --theme-button-text:#fff;
  --theme-deep:#0b3f78;
  --theme-deep-2:#082f5d;
  --theme-deep-text:#fff;
  --theme-shadow:0 22px 70px rgba(24,79,137,.15);
  --theme-hero:linear-gradient(128deg,#ffffff 0%,#e8f5ff 43%,#d9edff 70%,#ecf7ff 100%);
  --theme-ambient-a:rgba(27,116,224,.28);
  --theme-ambient-b:rgba(76,196,255,.28);
  --theme-ambient-c:rgba(86,124,255,.19);
  --theme-ambient-d:rgba(95,221,205,.20);
  --theme-grid:rgba(29,107,194,.08);
  --theme-nature-shade:linear-gradient(90deg,rgba(4,35,67,.92) 0%,rgba(7,65,113,.62) 49%,rgba(10,78,128,.22) 100%),linear-gradient(180deg,rgba(52,167,255,.06),rgba(2,23,48,.30));
  --theme-nature-filter:saturate(1.18) hue-rotate(3deg) contrast(1.03) brightness(.92);
}

html{background:var(--theme-page);}
body{
  position:relative;
  min-height:100%;
  background:transparent!important;
  color:var(--theme-text);
  transition:color .42s ease,background-color .42s ease;
}
.topline,.header,main,.footer{position:relative;z-index:2}

/* Globaler lebendiger Farbhintergrund */
.site-aurora{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
  background:
    linear-gradient(120deg,var(--theme-page) 0%,var(--theme-page-alt) 52%,var(--theme-page) 100%);
  transition:background .65s ease;
}
.site-aurora::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.52;
  background-image:
    linear-gradient(var(--theme-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--theme-grid) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.42),transparent 76%);
  animation:ilaGridMove 26s linear infinite;
}
.ambient-orb{
  position:absolute;
  width:42vw;
  aspect-ratio:1;
  border-radius:50%;
  filter:blur(72px);
  opacity:.65;
  will-change:transform;
  animation:ilaOrbFloat 19s ease-in-out infinite alternate;
}
.ambient-a{left:-15vw;top:-12vh;background:var(--theme-ambient-a)}
.ambient-b{right:-17vw;top:14vh;background:var(--theme-ambient-b);animation-delay:-7s;animation-duration:24s}
.ambient-c{left:18vw;bottom:-26vh;background:var(--theme-ambient-c);animation-delay:-11s;animation-duration:22s}
.ambient-d{right:12vw;bottom:-30vh;background:var(--theme-ambient-d);animation-delay:-4s;animation-duration:27s}
.ambient-shimmer{
  position:absolute;
  inset:-30%;
  background:conic-gradient(from 90deg at 50% 50%,transparent 0 20%,rgba(255,255,255,.11) 27%,transparent 36% 67%,rgba(255,255,255,.08) 74%,transparent 82%);
  opacity:.42;
  animation:ilaShimmer 34s linear infinite;
}
@keyframes ilaOrbFloat{
  0%{transform:translate3d(-3%,1%,0) scale(.88)}
  50%{transform:translate3d(9%,-5%,0) scale(1.08)}
  100%{transform:translate3d(-1%,8%,0) scale(.95)}
}
@keyframes ilaShimmer{to{transform:rotate(360deg)}}
@keyframes ilaGridMove{to{background-position:72px 72px,72px 72px}}

/* Fortschrittslinie */
.scroll-progress{
  position:fixed;
  left:0;
  top:0;
  height:3px;
  width:0;
  z-index:999;
  pointer-events:none;
  background:linear-gradient(90deg,var(--theme-accent),var(--theme-accent-2),var(--theme-ambient-c));
  box-shadow:0 0 18px var(--theme-accent-2);
  transition:background .4s ease;
}

/* Design-Umschalter */
.theme-dock{
  position:fixed;
  z-index:120;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:10px;
  border:1px solid var(--theme-line);
  background:color-mix(in srgb,var(--theme-card) 88%,transparent);
  box-shadow:var(--theme-shadow);
  backdrop-filter:blur(18px) saturate(1.25);
  border-radius:22px;
  transition:background .4s ease,border-color .4s ease,box-shadow .4s ease;
}
.theme-dock-label{
  display:block;
  padding:2px 4px 5px;
  color:var(--theme-muted);
  font-size:8px;
  font-weight:800;
  letter-spacing:.18em;
  text-align:center;
}
.theme-choice{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:42px;
  height:42px;
  padding:5px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
  color:var(--theme-text);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.theme-choice:hover{transform:translateX(-2px);background:var(--theme-card-soft)}
.theme-choice[aria-pressed="true"]{background:var(--theme-card-soft);border-color:var(--theme-accent)}
.theme-swatch{width:30px;height:30px;border-radius:10px;flex:0 0 auto;box-shadow:inset 0 0 0 1px rgba(255,255,255,.38),0 3px 10px rgba(0,0,0,.13)}
.swatch-light{background:linear-gradient(135deg,#fffaf0 0 48%,#caa45e 48% 70%,#86a96d 70%)}
.swatch-gold{background:linear-gradient(135deg,#07080a 0 50%,#dcb65a 50% 74%,#f3d98f 74%)}
.swatch-blue{background:linear-gradient(135deg,#fff 0 48%,#176bd4 48% 74%,#6dc4ff 74%)}
.theme-choice-text{
  position:absolute;
  right:48px;
  opacity:0;
  transform:translateX(7px);
  pointer-events:none;
  white-space:nowrap;
  padding:8px 10px;
  border-radius:10px;
  background:var(--theme-card);
  border:1px solid var(--theme-line);
  box-shadow:var(--theme-shadow);
  color:var(--theme-text);
  font-size:10px;
  font-weight:700;
  transition:opacity .18s ease,transform .18s ease;
}
.theme-choice:hover .theme-choice-text,.theme-choice:focus-visible .theme-choice-text{opacity:1;transform:none}
.theme-choice:focus-visible{outline:3px solid color-mix(in srgb,var(--theme-accent) 36%,transparent);outline-offset:2px}

/* Grundflächen reagieren vollständig auf das gewählte Design */
.header{background:var(--theme-header)!important;border-color:var(--theme-line)!important;box-shadow:0 10px 35px rgba(0,0,0,.035)}
.topline{background:var(--theme-topline)!important;color:var(--theme-topline-text)!important}
.main-nav>a,.brand-readable strong{color:var(--theme-text)!important}
.brand-readable small,.eyebrow,.apartment-kicker,.room-no,.channels-kicker{color:var(--theme-accent)!important}
.menu-toggle span{background:var(--theme-text)!important}
.main-nav .nav-button,.btn-dark,.channel-cta,.phone-btn{background:var(--theme-button)!important;color:var(--theme-button-text)!important}
.main-nav .nav-button:hover,.btn-dark:hover,.channel-cta:hover{background:var(--theme-button-hover)!important;color:var(--theme-button-text)!important}
.btn-gold{background:var(--theme-accent)!important;color:var(--theme-accent-ink)!important}
.btn-gold:hover{background:var(--theme-accent-2)!important}

.hero-live{
  background:var(--theme-hero)!important;
  transition:background .65s ease,color .45s ease;
}
.hero-live::before{
  background:
    radial-gradient(circle at 7% 12%,var(--theme-ambient-a),transparent 30%),
    radial-gradient(circle at 91% 16%,var(--theme-ambient-b),transparent 34%),
    radial-gradient(circle at 58% 87%,var(--theme-ambient-c),transparent 30%),
    linear-gradient(130deg,transparent 38%,color-mix(in srgb,var(--theme-accent) 13%,transparent))!important;
  animation:ilaHeroColor 15s ease-in-out infinite alternate;
}
.hero-live::after{
  content:"";
  position:absolute;
  inset:-22%;
  z-index:-1;
  pointer-events:none;
  opacity:.56;
  background:
    conic-gradient(from 210deg at 62% 44%,transparent 0 24%,var(--theme-ambient-d) 31%,transparent 39% 63%,var(--theme-ambient-b) 70%,transparent 78%);
  filter:blur(40px);
  animation:ilaHeroSpin 30s linear infinite;
}
@keyframes ilaHeroColor{from{transform:translate3d(-1.2%,0,0) scale(1)}to{transform:translate3d(1.2%,-1%,0) scale(1.035)}}
@keyframes ilaHeroSpin{to{transform:rotate(360deg)}}
.hero-live-copy>p,.hero-trust small{color:var(--theme-muted)!important}
.hero-trust{border-color:var(--theme-line)!important}
.hero-trust>span,.facts strong,.card-link span,.booking-symbol{color:var(--theme-accent)!important}
.facts{border-color:var(--theme-line)!important}
.facts>div{border-color:var(--theme-line)!important}
.facts span{color:var(--theme-muted)!important}
.hero-main-image,.hero-side-image{transition:translate .18s ease-out,box-shadow .45s ease,border-color .45s ease}
.hero-main-image,.hero-side-image,.showcase-card,.room-story,.apartment-card{box-shadow:var(--theme-shadow)!important}

.booking-section,
.intro,
.apartments,
.room-stories,
.channels-section,
.gallery-section,
.gallery-modern,
.guest-section,
.faq,
.booking-landing{
  background:var(--theme-surface)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
  backdrop-filter:blur(5px);
  transition:background .5s ease,color .42s ease,border-color .42s ease;
}
.apartments,.room-stories,.channels-section,.gallery-modern{background:var(--theme-surface-alt)!important}

.intro-quote,
.apartment-card,
.image-chip,
.room-story,
.room-location-banner,
.channel-card,
.booking-live-box,
.booking-visual-strip,
.booking-step,
.booking-placeholder,
.phone-info{
  background:var(--theme-card)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
  transition:background .45s ease,color .4s ease,border-color .4s ease,box-shadow .4s ease;
}
.room-location-banner button,.booking-visual-strip img{background:var(--theme-card)!important}
.channels-warning,.channel-status{background:var(--theme-card-soft)!important;color:var(--theme-muted)!important;border-color:var(--theme-accent)!important}
.channel-mark{background:var(--theme-card-soft)!important;color:var(--theme-accent)!important}

:is(
  .intro-text p,.section-heading p,.apartment-body p,.apartment-amenities span,
  .room-stories-head p,.room-story-copy p,.room-story-copy li,.room-location-banner figcaption,
  .channels-intro-side p,.channel-card p,.channels-foot,.gallery-modern-head>p,
  .guest-copy>p,.guest-steps small,.faq-grid p,.booking-landing .booking-lead,
  .booking-live-box p,.booking-step,.booking-visual-strip p
){color:var(--theme-muted)!important}
.card-link,.booking-step strong,.room-location-banner strong{color:var(--theme-text)!important}
.apartment-amenities,.room-story-copy ul,.guest-steps>div,.faq-items details{border-color:var(--theme-line)!important}
.booking-form label{color:var(--theme-muted)!important}
.booking-form input,.booking-form select{
  background:var(--theme-card-soft)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
.booking-form input:focus,.booking-form select:focus{outline:2px solid color-mix(in srgb,var(--theme-accent) 48%,transparent);outline-offset:1px}

.amenities,.region-section,.closing,.footer,.channels-feature{
  background:var(--theme-deep)!important;
  color:var(--theme-deep-text)!important;
  transition:background .5s ease,color .4s ease;
}
.region-section{background:var(--theme-deep-2)!important}
.amenities-heading p,.amenity-list p,.region-heading p,.region-card p,.closing p,.footer-brand p,.footer-col p{color:color-mix(in srgb,var(--theme-deep-text) 72%,transparent)!important}
.region-card{border-color:color-mix(in srgb,var(--theme-accent) 42%,transparent)!important;background:color-mix(in srgb,var(--theme-deep-text) 4%,transparent)!important}
.region-card:hover{background:color-mix(in srgb,var(--theme-accent) 10%,transparent)!important}
.amenity-icon{border-color:var(--theme-accent)!important;color:var(--theme-accent-2)!important}
.gold-ring,.region-no,.region-arrow,.footer-col strong{color:var(--theme-accent-2)!important}

.phone-screen{background:linear-gradient(180deg,var(--theme-card),var(--theme-card-soft))!important;color:var(--theme-text)!important}
.phone{border-color:var(--theme-button)!important;background:var(--theme-card)!important}
.phone-top{background:var(--theme-button)!important}
.phone-logo,.phone-eyebrow,.phone-floating{color:var(--theme-accent)!important}
.phone-floating{background:var(--theme-card)!important;border:1px solid var(--theme-line)!important}
.guest-visual{background:radial-gradient(circle at center,color-mix(in srgb,var(--theme-accent) 20%,transparent) 0,var(--theme-surface-alt) 52%,transparent 73%)!important}

.nature-live-bg{filter:var(--theme-nature-filter);transition:filter .6s ease}
.nature-shade{background:var(--theme-nature-shade)!important;transition:background .6s ease}
.nature-live::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 76% 24%,var(--theme-ambient-b),transparent 27%),
    radial-gradient(circle at 18% 86%,var(--theme-ambient-a),transparent 30%);
  mix-blend-mode:screen;
  opacity:.52;
  animation:ilaNatureGlow 13s ease-in-out infinite alternate;
}
@keyframes ilaNatureGlow{from{transform:translate3d(-1%,0,0);opacity:.38}to{transform:translate3d(1%,-1%,0);opacity:.68}}

/* Gold-Schwarz: zusätzliche Kontrastkorrekturen */
html[data-theme="gold"] .brand-logo-img,
html[data-theme="gold"] .hero-brand-art,
html[data-theme="gold"] .intro-logo-mark,
html[data-theme="gold"] .section-logo,
html[data-theme="gold"] .nature-live-content>img,
html[data-theme="gold"] .closing img,
html[data-theme="gold"] .footer-logo,
html[data-theme="gold"] .booking-page-logo{background:#fffaf0!important}
html[data-theme="gold"] .main-nav>a:hover{color:var(--theme-accent-2)!important}
html[data-theme="gold"] .booking-note,
html[data-theme="gold"] .small-note{color:#a99d88!important}
html[data-theme="gold"] .main-nav{--nav-mobile-bg:#111318}
html[data-theme="gold"] .showcase-card:after,
html[data-theme="gold"] .room-story-image:after{background:linear-gradient(transparent,rgba(0,0,0,.86))!important}

/* WerkFaktur-Blau-Weiß: klare, technische Akzente */
html[data-theme="blue"] .header{box-shadow:0 10px 35px rgba(16,91,170,.10)}
html[data-theme="blue"] .hero-showcase figure,
html[data-theme="blue"] .apartment-card,
html[data-theme="blue"] .room-story,
html[data-theme="blue"] .channel-card{border:1px solid rgba(20,104,213,.12)}
html[data-theme="blue"] .channels-feature{background:linear-gradient(135deg,#0b3f78,#1366bd)!important}
html[data-theme="blue"] .amenities{background:linear-gradient(135deg,#082f5d,#0d4d91)!important}
html[data-theme="blue"] .region-section{background:linear-gradient(135deg,#062c57,#0b4f8f)!important}
html[data-theme="blue"] .closing{background:linear-gradient(135deg,#0a3a70,#1266b7)!important}
html[data-theme="blue"] .footer{background:#072b52!important}

/* Karten erhalten einen subtilen lebendigen Lichtschein */
.apartment-card,.room-story,.channel-card,.showcase-card{position:relative}
.apartment-card::before,.room-story::before,.channel-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  z-index:-1;
  border-radius:inherit;
  opacity:0;
  background:linear-gradient(120deg,var(--theme-ambient-a),var(--theme-accent),var(--theme-ambient-b));
  filter:blur(15px);
  transition:opacity .35s ease;
}
.apartment-card:hover::before,.room-story:hover::before,.channel-card:hover::before{opacity:.22}

/* Mobile Navigation und Designleiste */
@media(max-width:850px){
  .main-nav{background:var(--theme-card)!important;border-top:1px solid var(--theme-line)!important}
  .theme-dock{
    top:auto;
    right:auto;
    left:50%;
    bottom:12px;
    transform:translateX(-50%);
    flex-direction:row;
    align-items:center;
    border-radius:18px;
    padding:7px;
  }
  .theme-dock-label{display:none}
  .theme-choice{height:38px;min-width:38px;border-radius:12px}
  .theme-swatch{width:26px;height:26px;border-radius:8px}
  .theme-choice-text{display:none}
}
@media(max-width:600px){
  .ambient-orb{width:72vw;filter:blur(58px);opacity:.5}
  .site-aurora::before{background-size:48px 48px}
}

/* Bewegung respektiert die Systemeinstellung des Besuchers. */
@media(prefers-reduced-motion:reduce){
  .site-aurora::before,.ambient-orb,.ambient-shimmer,.hero-live::before,.hero-live::after,.nature-live::after{animation:none!important}
  .hero-main-image,.hero-side-image{translate:0 0!important}
  *{scroll-behavior:auto!important}
}

/* Mobile: kompakte vertikale Designleiste unten rechts, damit keine Überschrift verdeckt wird. */
@media(max-width:850px){
  .theme-dock{
    left:auto;
    right:10px;
    bottom:12px;
    transform:none;
    flex-direction:column;
    gap:4px;
    padding:6px;
    border-radius:15px;
  }
  .theme-choice{width:34px;min-width:34px;height:34px;padding:4px;border-radius:10px}
  .theme-swatch{width:24px;height:24px;border-radius:7px}
}

/* Auf Handy/Tablet steht der Umschalter als eigene Leiste unter dem Kopfbereich. */
@media(max-width:850px){
  .theme-dock{
    position:relative;
    z-index:20;
    top:auto;
    right:auto;
    bottom:auto;
    left:auto;
    transform:none;
    width:max-content;
    margin:10px auto;
    flex-direction:row;
    gap:5px;
    padding:6px 8px;
  }
}
