/* =========================================================
   HKE Hotel – main.css
   Mobile-First. Design-Tokens (Farben/Schrift) werden per
   Customizer in :root injiziert (siehe inc/customizer.php).
   ========================================================= */

:root {
	--hke-primary: #0b3d2e;
	--hke-accent: #c9a24b;
	--hke-dark: #12181a;
	--hke-light: #f7f5f0;
	--hke-font-headline: 'Fraunces', serif;
	--hke-font-body: 'Inter', sans-serif;
	--hke-container-width: 1240px;
	--hke-radius: 4px;
	--hke-space: clamp(1rem, 2vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
	margin: 0;
	font-family: var(--hke-font-body);
	color: var(--hke-dark);
	background: #fff;
	line-height: 1.6;
	font-size: 1rem;
}

h1, h2, h3, h4 { font-family: var(--hke-font-headline); line-height: 1.2; margin: 0 0 0.6em; font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Barrierefreiheit: sichtbarer Fokus, versteckter Text für Screenreader */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
	position: fixed; top: -100px; left: 1rem; z-index: 10000;
	background: var(--hke-primary); color: #fff; padding: 0.8em 1.2em; border-radius: var(--hke-radius);
	transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; position: fixed; width: auto; height: auto; clip: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--hke-accent); outline-offset: 2px;
}

.hke-container { width: 100%; max-width: var(--hke-container-width); margin: 0 auto; padding: 0 1.25rem; }
.hke-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hke-section__cta { text-align: center; margin-top: 2rem; }
.hke-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--hke-accent); font-weight: 600; }

/* Buttons */
.hke-btn {
	display: inline-block; padding: 0.85em 1.8em; border-radius: var(--hke-radius);
	font-weight: 600; border: 2px solid transparent; cursor: pointer; font-size: 0.95rem;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hke-btn--primary { background: var(--hke-primary); color: #fff; }
.hke-btn--primary:hover { background: #082c21; }
.hke-btn--accent { background: var(--hke-accent); color: var(--hke-dark); }
.hke-btn--accent:hover { filter: brightness(0.92); }
.hke-btn--outline { border-color: var(--hke-primary); color: var(--hke-primary); background: transparent; }
.hke-btn--outline:hover { background: var(--hke-primary); color: #fff; }
.hke-btn--small { padding: 0.5em 1.2em; font-size: 0.85rem; }
.hke-btn--full { display: block; width: 100%; text-align: center; margin-bottom: 0.75rem; }

/* ============ ZEILE 1: SUB-MENÜ ============ */
.hke-sub-menu {
	background: var(--hke-dark); color: #fff; font-size: 0.82rem;
	transition: transform 0.3s ease;
}
.hke-sub-menu.is-hidden { transform: translateY(-100%); }
.hke-sub-menu__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding: 0.5rem 0; }
.hke-sub-menu__left, .hke-sub-menu__right { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hke-sub-menu a { opacity: 0.9; }
.hke-sub-menu a:hover { opacity: 1; text-decoration: underline; }
.hke-lang-switch a { margin-right: 0.4rem; }
.hke-social-icons { display: flex; gap: 0.6rem; }
.hke-social-icons a { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; font-size: 0.65rem; }

/* ============ ZEILE 2: HAUPTMENÜ ============ */
.hke-main-header {
	position: sticky; top: 0; z-index: 999; background: #fff;
	box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.hke-main-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; gap: 1rem; }
.hke-logo__text { font-family: var(--hke-font-headline); font-size: 1.6rem; font-weight: 600; color: var(--hke-primary); }
.hke-nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.hke-nav-toggle__bar { width: 24px; height: 2px; background: var(--hke-dark); }

.hke-main-nav { position: fixed; inset: 0 0 0 auto; width: min(85vw, 360px); background: #fff; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; padding: 5rem 1.5rem 2rem; z-index: 1000; }
.hke-main-nav.is-open { transform: translateX(0); }
.hke-main-nav__list { list-style: none; margin: 0; padding: 0; }
.hke-main-nav__item { border-bottom: 1px solid #eee; position: relative; }
.hke-main-nav__link { display: block; padding: 0.9rem 0; font-weight: 600; }
.hke-dropdown-toggle { position: absolute; right: 0; top: 0.4rem; background: none; border: 0; font-size: 1.1rem; padding: 0.6rem; cursor: pointer; }
.hke-sub-nav { list-style: none; margin: 0 0 0.5rem; padding: 0 0 0 1rem; display: none; }
.hke-main-nav__item.is-open .hke-sub-nav { display: block; }
.hke-sub-nav li a { display: block; padding: 0.5rem 0; font-size: 0.92rem; opacity: 0.85; }
.hke-btn--book { white-space: nowrap; }

@media (min-width: 960px) {
	.hke-nav-toggle { display: none; }
	.hke-main-nav { position: static; width: auto; transform: none; padding: 0; overflow: visible; background: transparent; }
	.hke-main-nav__list { display: flex; gap: 1.6rem; }
	.hke-main-nav__item { border: 0; }
	.hke-dropdown-toggle { display: none; }
	.hke-sub-nav {
		display: block; visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 0;
		background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding: 0.75rem 1rem; min-width: 220px;
		transition: opacity 0.15s ease; border-radius: var(--hke-radius);
	}
	.hke-main-nav__item:hover .hke-sub-nav,
	.hke-main-nav__item:focus-within .hke-sub-nav { visibility: visible; opacity: 1; }
}

/* ============ HERO ============ */
.hke-hero { position: relative; min-height: 92vh; overflow: hidden; color: #fff; }
.hke-hero__slides { position: absolute; inset: 0; }
.hke-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hke-hero__slide.is-active { opacity: 1; }
.hke-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hke-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55)); }
.hke-hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 92vh; padding-bottom: 3rem; gap: 1.5rem; }
.hke-hero__headline { max-width: 700px; }

.hke-booking-widget { background: rgba(255,255,255,0.95); color: var(--hke-dark); border-radius: var(--hke-radius); padding: 1.25rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.hke-booking-widget__field { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.hke-booking-widget input, .hke-booking-widget select { padding: 0.6em; border: 1px solid #ccc; border-radius: var(--hke-radius); font: inherit; }
@media (min-width: 780px) {
	.hke-booking-widget { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
}

/* ============ TEASER / KACHELN ============ */
.hke-teaser-grid__items, .hke-journal-teaser__items { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .hke-teaser-grid__items, .hke-journal-teaser__items { grid-template-columns: repeat(3, 1fr); } }
.hke-teaser-card { position: relative; border-radius: var(--hke-radius); overflow: hidden; aspect-ratio: 4/5; }
.hke-teaser-card__link { display: block; height: 100%; }
.hke-teaser-card img { width: 100%; height: 100%; object-fit: cover; }
.hke-teaser-card__overlay { position: absolute; inset: auto 0 0 0; padding: 1.25rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75)); color: #fff; }

.hke-feature-grid__items { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .hke-feature-grid__items { grid-template-columns: repeat(3, 1fr); } }
.hke-feature-tile { position: relative; display: block; aspect-ratio: 1/1; border-radius: var(--hke-radius); overflow: hidden; }
.hke-feature-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hke-feature-tile:hover img { transform: scale(1.05); }
.hke-feature-tile__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem; color: #fff; font-weight: 600; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7)); }

/* ============ GALLERY / TESTIMONIALS ============ */
.hke-gallery-slideshow__slides { position: relative; height: 60vh; min-height: 340px; }
.hke-gallery-slideshow__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hke-gallery-slideshow__slide.is-active { opacity: 1; }
.hke-gallery-slideshow__slide img { width: 100%; height: 100%; object-fit: cover; }
.hke-gallery-slideshow__slide figcaption { position: absolute; bottom: 1.5rem; left: 1.5rem; color: #fff; font-family: var(--hke-font-headline); font-size: 1.6rem; }

.hke-testimonial { display: none; max-width: 720px; margin: 0 auto; text-align: center; font-size: 1.2rem; font-style: italic; }
.hke-testimonial.is-active { display: block; }
.hke-testimonial cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; }

/* ============ IMAGE + TEXT ============ */
.hke-image-text__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 780px) { .hke-image-text__grid { grid-template-columns: 1fr 1fr; } }

/* ============ ROOMS ============ */
.hke-room-preview__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .hke-room-preview__grid { grid-template-columns: repeat(3, 1fr); } }
.hke-room-card { border: 1px solid #eee; border-radius: var(--hke-radius); overflow: hidden; }
.hke-room-card__image { position: relative; display: block; aspect-ratio: 4/3; }
.hke-room-card__image img { width: 100%; height: 100%; object-fit: cover; }
.hke-room-card__overlay { position: absolute; left: 0.75rem; bottom: 0.75rem; color: #fff; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.hke-room-card__body { padding: 1rem 1.25rem 1.25rem; }
.hke-room-card__price { font-weight: 700; color: var(--hke-primary); }
.hke-room-card__features { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8rem; }
.hke-room-card__features li { background: var(--hke-light); padding: 0.2em 0.6em; border-radius: 999px; }
.hke-badge { display: inline-block; padding: 0.3em 0.8em; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.hke-badge--warning { background: #fff3cd; color: #7a5b00; position: absolute; top: 0.75rem; right: 0.75rem; }
.hke-badge--accent { background: var(--hke-accent); color: var(--hke-dark); }

/* ============ ZIMMER DETAIL ============ */
.hke-zimmer-detail__hero { position: relative; }
.hke-zimmer-detail__hero img { width: 100%; max-height: 60vh; object-fit: cover; }
.hke-zimmer-detail__hero-text { position: absolute; bottom: 1.5rem; left: 0; right: 0; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.hke-zimmer-detail__body { display: grid; gap: 2rem; grid-template-columns: 1fr; padding: 2.5rem 1.25rem; }
@media (min-width: 960px) { .hke-zimmer-detail__body { grid-template-columns: 2fr 1fr; } }
.hke-feature-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(2,1fr); }
.hke-feature-list li::before { content: "✓ "; color: var(--hke-primary); font-weight: 700; }
.hke-zimmer-detail__sidebar { background: var(--hke-light); padding: 1.5rem; border-radius: var(--hke-radius); align-self: start; }
.hke-zimmer-detail__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 0 0 1rem; }
.hke-zimmer-detail__facts dt { font-weight: 600; }
.hke-zimmer-detail__prices p { margin: 0.3em 0; }

/* ============ FILTER BAR ============ */
.hke-filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; }
.hke-filter-bar label { display: flex; flex-direction: column; font-size: 0.85rem; font-weight: 600; gap: 0.3rem; }
.hke-filter-bar select { padding: 0.5em; border-radius: var(--hke-radius); border: 1px solid #ccc; }

/* ============ NEWSLETTER BAR ============ */
.hke-newsletter-bar { background: var(--hke-primary); color: #fff; position: relative; }
.hke-newsletter-bar__inner { display: grid; gap: 1rem; padding: 2rem 1.25rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 780px) { .hke-newsletter-bar__inner { grid-template-columns: 1fr 1fr; } }
.hke-newsletter-bar__form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hke-newsletter-bar__form input[type="email"] { padding: 0.7em 1em; border-radius: var(--hke-radius); border: 0; min-width: 240px; flex: 1; }
.hke-newsletter-bar__hint { font-size: 0.75rem; opacity: 0.85; flex-basis: 100%; margin: 0.25rem 0 0; }
.hke-newsletter-bar__close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ============ FOOTER ============ */
.hke-footer { background: var(--hke-dark); color: #f0ede6; padding-top: 3rem; }
.hke-footer__inner { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
@media (min-width: 780px) { .hke-footer__inner { grid-template-columns: 1.2fr 3fr; } }
.hke-footer__columns { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .hke-footer__columns { grid-template-columns: repeat(3, 1fr); } }
.hke-footer__column h3 { font-size: 0.95rem; color: var(--hke-accent); }
.hke-footer__column ul { list-style: none; padding: 0; margin: 0; }
.hke-footer__column li { margin-bottom: 0.4rem; }
.hke-footer__column a { opacity: 0.85; font-size: 0.9rem; }
.hke-footer__column a:hover { opacity: 1; text-decoration: underline; }
address { font-style: normal; margin-top: 1rem; opacity: 0.9; }

.hke-sub-footer { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 1rem; }
.hke-sub-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.25rem; font-size: 0.8rem; }
.hke-sub-footer__left { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.hke-sub-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.hke-sub-footer__legal button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; }

/* ============ RECHTSSEITEN ============ */
.hke-legal-notice { background: #fff3cd; border: 1px solid #f0d78c; padding: 1rem 1.25rem; border-radius: var(--hke-radius); margin-bottom: 2rem; font-size: 0.9rem; }
.hke-legal-page h2 { margin-top: 2rem; font-size: 1.2rem; }

/* ============ UTILS ============ */
.hke-content-page__body { max-width: 820px; margin: 0 auto; padding-top: 2rem; padding-bottom: 3rem; }
.hke-content-page__hero-image img { width: 100%; max-height: 55vh; object-fit: cover; }
.hke-content-page__header { padding-top: 2.5rem; }
