/* =====================================================================
   Krone Public Site Styles
   Konsolidiert alle Layout/Partial-Styles. Tokens in krone-tokens.css.
   ===================================================================== */

/* --- Base / Reset ------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--krone-anthracite); text-decoration: none; transition: color .2s; }
a:hover { color: var(--krone-bronze); }
body { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* --- Container ---------------------------------------------------- */
.krone-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.krone-container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons ------------------------------------------------------ */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font: 500 14px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--krone-burgundy); color: #fff; }
.btn-primary:hover { background: #5A2222; color: #fff; }
.btn-outline { background: transparent; border-color: var(--krone-bronze); color: var(--krone-bronze); }
.btn-outline:hover { background: var(--krone-bronze); color: #fff; }
.btn-link { padding: 0; border: none; background: none; color: var(--krone-bronze); text-transform: none; letter-spacing: 0; font-size: 16px; }

/* --- Typography --------------------------------------------------- */
h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); font-weight: 300; line-height: 1.1; }
h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 400; line-height: 1.2; margin-bottom: 16px; }
h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); font-weight: 400; line-height: 1.3; margin-bottom: 12px; }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--krone-bronze); }

/* --- Sections ----------------------------------------------------- */
.section { padding: clamp(48px, 8vw, 56px) 0; }
.section-cream { background: var(--krone-cream); }
.section-cream-warm { background: var(--krone-cream-warm); }
.section-dark { background: var(--krone-anthracite); color: #fff; }
.section-dark a { color: var(--krone-bronze); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

[x-cloak] { display: none !important; }

/* =====================================================================
   Header
   ===================================================================== */
#krone-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 246, 240, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--krone-line);
}

/* Desktop Nav Row */
.krone-nav-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1320px;
  margin: 0 auto;
  gap: 24px;
  position: relative;
  min-height: 168px;
}
.krone-nav-side { display: flex; align-items: center; gap: 24px; }
.krone-nav-right { justify-content: flex-end; gap: 12px; }

/* Kleines Logo zentral — TEST: dauerhaft sichtbar (statt nur beim Scrollen) */
.krone-header-logo-link {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;            /* TEST: war 0 — jetzt immer voll sichtbar */
  pointer-events: auto;  /* TEST: war none — jetzt immer klickbar */
  transition: opacity .35s ease;
  z-index: 5;
}
.krone-header-logo-img { height: 144px; width: auto; }
.krone-header-scrolled .krone-header-logo-link { opacity: 1; pointer-events: auto; }

/* Mobile Header */
.krone-header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
.krone-header-mobile-logo-link { flex: 1; text-align: center; display: flex; justify-content: center; }
.krone-header-mobile-logo-link img { height: 72px; width: auto; display: inline-block; }

@media (min-width: 980px) {
  .krone-nav-row { display: flex !important; }
  .krone-header-mobile { display: none; }
  .krone-nav-mobile { display: none !important; }
}

.krone-nav-active { color: var(--krone-bronze) !important; font-weight: 600; }

/* Header CTA-Small (Desktop) */
.krone-cta-sm { padding: 10px 16px; font-size: 12px; }

/* Burger */
.krone-burger { background: none; border: none; cursor: pointer; padding: 8px; color: var(--krone-anthracite); }

/* Mobile Menu (Burger-Dropdown) */
.krone-nav-mobile {
  background: #fff;
  border-top: 1px solid var(--krone-line);
  padding: 24px;
}
.krone-nav-mobile > a { display: block; padding: 12px 0; }
.krone-nav-mobile details summary { padding: 12px 0; cursor: pointer; list-style: none; }
.krone-nav-mobile details summary::-webkit-details-marker { display: none; }
.krone-nav-mobile details summary::after { content: ' ▾'; opacity: .5; font-size: 0.85em; }
.krone-nav-mobile details[open] summary::after { content: ' ▴'; }
.krone-nav-mobile details > a { display: block; padding: 8px 0 8px 24px; }
.krone-mobile-menu-cta { width: 100%; margin-top: 8px; text-align: center; }
.krone-mobile-menu-cta:first-of-type { margin-top: 16px; }

/* Dropdown */
.krone-dropdown-wrap { position: relative; }
.krone-dropdown-trigger {
  display: inline-block;
  padding: 12px 0;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.krone-dropdown-panel {
  position: absolute;
  top: 100%; left: -16px;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 8px 0;
  z-index: 1010;
}
.krone-dropdown-panel a {
  display: block;
  padding: 10px 24px;
  transition: background .15s;
}
.krone-dropdown-panel a:hover {
  background: var(--krone-cream-warm);
  color: var(--krone-bronze);
}

/* =====================================================================
   Locale Switcher
   ===================================================================== */
.krone-locale-switcher {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1;
}
.krone-locale-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  opacity: .6;
  transition: opacity .15s, background .15s;
}
.krone-locale-link:hover { opacity: 1; background: rgba(176, 141, 87, .1); }
.krone-locale-active { opacity: 1; color: var(--krone-bronze); }
.krone-locale-link svg {
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

/* =====================================================================
   Logo Hero (kompakt — direkt unter Nav)
   ===================================================================== */
.krone-logo-hero {
  display: none;          /* TEST: Logo-Hero komplett ausblenden */
  background: var(--krone-cream);
  padding: 16px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--krone-line);
}
.krone-logo-hero-img {
  height: 140px;
  width: auto;
  display: inline-block;
  margin: 0 auto;
}
@media (min-width: 768px) { .krone-logo-hero-img { height: 180px; } }
@media (min-width: 1200px) { .krone-logo-hero-img { height: 220px; } }

.krone-logo-hero-tagline {
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--krone-bronze);
  letter-spacing: 0.04em;
}

/* =====================================================================
   Footer
   ===================================================================== */
#krone-footer { margin-top: 64px; padding: 64px 0 24px; }

/* =====================================================================
   Mobile Bottom-CTA-Bar
   ===================================================================== */
#krone-mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 990;
  background: #fff;
  border-top: 1px solid var(--krone-line);
  display: flex;
  padding: 8px;
  gap: 6px;
  box-shadow: 0 -4px 24px -8px rgba(0, 0, 0, .15);
}
#krone-mobile-cta > a, #krone-mobile-cta > button {
  flex: 1; text-align: center; padding: 12px 4px;
  border-radius: var(--radius);
  font: 600 12px/1.2 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
#krone-mobile-cta .krone-cta-call { background: var(--krone-cream-warm); color: var(--krone-anthracite); }
#krone-mobile-cta .krone-cta-room { background: var(--krone-bronze); color: #fff; flex: 2; }
#krone-mobile-cta .krone-cta-table { background: var(--krone-burgundy); color: #fff; flex: 2; border: none; cursor: pointer; }

@media (min-width: 769px) {
  #krone-mobile-cta { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 768px) {
  body { padding-bottom: 72px; }
}

/* =====================================================================
   Cookie Banner
   ===================================================================== */
#krone-cookie-banner {
  position: fixed;
  bottom: 80px; left: 16px; right: 16px;
  z-index: 995;
  background: var(--krone-anthracite); color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, .4);
  max-width: 680px;
  margin-left: auto; margin-right: auto;
}
#krone-cookie-banner p { margin-bottom: 16px; line-height: 1.6; font-size: 14px; }
#krone-cookie-banner a { color: var(--krone-bronze); text-decoration: underline; }
#krone-cookie-banner .btn { background: var(--krone-bronze); }
@media (min-width: 769px) {
  #krone-cookie-banner { bottom: 24px; }
}

/* =====================================================================
   Image Slider
   ===================================================================== */
.krone-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--krone-cream-warm);
}
.krone-slider-track { position: relative; width: 100%; }
.krone-slider-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.krone-img-fallback { background: var(--krone-cream-warm); }

.krone-slider-nav-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 46, 48, .7); color: #fff;
  border: none; border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
  font-size: 20px; line-height: 1;
}
.krone-slider-nav-prev { left: 8px; }
.krone-slider-nav-next { right: 8px; }
.krone-slider-nav-btn:hover { background: rgba(176, 141, 87, .95); }
.krone-slider-dots {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  background: rgba(46, 46, 48, .4);
  padding: 6px 10px;
  border-radius: 999px;
}
.krone-slider-dot {
  height: 8px; border-radius: 999px;
  border: none; cursor: pointer;
  transition: all .25s;
  background: rgba(255, 255, 255, .6);
  width: 8px;
}
.krone-slider-dot.active { background: var(--krone-bronze); width: 24px; }
.krone-slider-counter {
  position: absolute; top: 12px; right: 12px;
  background: rgba(46, 46, 48, .7); color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font: 500 12px/1 var(--font-body);
}

/* =====================================================================
   Hotel-Room-Cards
   ===================================================================== */
.krone-room-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
}
.krone-room-card__body {
  padding: 32px;
  display: flex; flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .krone-room-card { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Sub-Nav (In-Page Anker-Nav, z. B. Restaurant + Hotel Hubs)
   ===================================================================== */
.krone-subnav {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: var(--krone-cream-warm);
  border-top: 1px solid var(--krone-line);
  border-bottom: 1px solid var(--krone-line);
  padding: 12px 0;
}
.krone-subnav .krone-container {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: center;
}
.krone-subnav a {
  font: 500 13px/1 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--krone-anthracite);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.krone-subnav a:hover {
  background: rgba(176, 141, 87, 0.12);
  color: var(--krone-bronze);
}
.krone-subnav .krone-subnav-cta {
  background: var(--krone-burgundy);
  color: #fff;
}
.krone-subnav .krone-subnav-cta:hover {
  background: #5A2222;
  color: #fff;
}
@media (max-width: 640px) {
  .krone-subnav { top: 60px; padding: 8px 0; }
  .krone-subnav .krone-container { gap: 4px 12px; }
  .krone-subnav a { padding: 6px 10px; font-size: 12px; }
}

/* Sanftes Anker-Scroll-Offset, damit Sticky-Header die Section nicht überdeckt */
html { scroll-behavior: smooth; }
section[id], div[id] { scroll-margin-top: 140px; }
@media (max-width: 640px) {
  section[id], div[id] { scroll-margin-top: 100px; }
}

/* =====================================================================
   Kontakt-CTA-Karten (2-Spalten-Grid, eine Reihe pro Karten-Paar)
   ===================================================================== */
.krone-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .krone-contact-grid { grid-template-columns: 1fr 1fr; }
}

.krone-contact-card {
  text-decoration: none;
  background: #fff;
  color: var(--krone-anthracite);
  border: 1px solid var(--krone-line);
  border-radius: var(--radius);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 170px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.krone-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.krone-contact-card--primary {
  background: var(--krone-burgundy);
  color: #fff;
  border-color: transparent;
}
.krone-contact-card--primary:hover { color: #fff; }
.krone-contact-card--bronze {
  background: var(--krone-bronze);
  color: #fff;
  border-color: transparent;
}
.krone-contact-card--bronze:hover { color: #fff; }

.krone-contact-card__icon {
  font-size: 32px;
  line-height: 1;
}
.krone-contact-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  line-height: 1.2;
}
.krone-contact-card__title--nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.krone-contact-card__sub {
  display: block;
  opacity: .75;
  font-size: 14px;
  line-height: 1.5;
}
.krone-contact-card--primary .krone-contact-card__sub,
.krone-contact-card--bronze  .krone-contact-card__sub {
  opacity: .9;
}

/* Wrapper für VidiReserve v2-Button innerhalb einer Kontaktkarte */
.krone-contact-card--widget { gap: 16px; cursor: default; }
.krone-vidireserve-button {
  margin-top: 4px;
  /* Der vom Widget gerenderte Button bekommt unsere CTA-Optik per descendant-styles */
}
.krone-vidireserve-button button,
.krone-vidireserve-button a[role="button"],
.krone-vidireserve-button .vidireserve-button,
.krone-vidireserve-button [class*="vidireserve-"][class*="button"] {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font: 600 13px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #fff !important;
  color: var(--krone-burgundy) !important;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.krone-vidireserve-button button:hover,
.krone-vidireserve-button a[role="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* =====================================================================
   Home-Hero — Crossfade-Slider + Logo-Kontrast
   ===================================================================== */
.krone-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #2e2e30; /* fallback */
}

/* Slider: Stack aus Bild-Layern, alle absolut, nur das aktive sichtbar */
.krone-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.krone-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}
.krone-hero__slide.is-active {
  opacity: 1;
}

/* Heller Cream-Halo hinter dem Logo — Slider-Bilder schimmern an den Rändern durch,
   in der Mitte (wo Logo + CTAs sitzen) liegt ein weicher Creme-Schleier für saubere
   Lesbarkeit. Plus dezenter Header-Schatten oben für die Sub-Nav.
   Cream-Farbe ist krone-cream (#F8F1E1) mit Alpha-Verlauf. */
.krone-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%,
      rgba(248, 241, 225, .92) 0%,
      rgba(248, 241, 225, .80) 30%,
      rgba(248, 241, 225, .40) 65%,
      rgba(248, 241, 225, 0)   100%),
    linear-gradient(180deg, rgba(46,46,48,.25) 0%, rgba(46,46,48,.00) 25%, rgba(46,46,48,.00) 75%, rgba(46,46,48,.20) 100%);
  pointer-events: none;
}

.krone-hero__content {
  position: relative;
  z-index: 2;
}

/* Logo: dezenter dunkler Schatten gegen den hellen Cream-Hintergrund —
   sorgt für saubere Kanten, ohne dass es schwerfällig wird. */
.krone-hero__content .krone-hero-logo {
  filter: drop-shadow(0 3px 12px rgba(46, 46, 48, .25));
}

/* Tagline jetzt anthrazit (auf cream lesbar) statt bronze auf dunkel.
   Italic-Display-Font bleibt für die Krone-Note. */
.krone-hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--krone-anthracite, #2e2e30);
  letter-spacing: .06em;
  margin: 0 0 32px;
}

/* Die "Zimmer reservieren"-Outline-Button auf dem hellen Hintergrund
   braucht jetzt dunklere Border/Text — der weiße Style im inline-Code
   wäre auf cream unlesbar. Wir überschreiben gezielt nur den Hero-Button. */
.krone-hero__content .btn-outline {
  background: rgba(255,255,255,.7) !important;
  color: var(--krone-anthracite) !important;
  border-color: var(--krone-anthracite) !important;
}
.krone-hero__content .btn-outline:hover {
  background: var(--krone-anthracite) !important;
  color: #fff !important;
}

/* =====================================================================
   Print
   ===================================================================== */
@media print {
  #krone-header, #krone-footer, #krone-mobile-cta, #krone-cookie-banner, #krone-edit-toolbar { display: none !important; }
  .krone-subnav { display: none !important; }
}
