/* IhrHotel.de – Stylesheet
   Farben und Schrift angelehnt an die bestehende Seite www.ihrhotel.de */

/* Schrift lokal eingebunden (keine Verbindung zu Google, DSGVO-konform).
   Source Sans 3, SIL Open Font License – siehe fonts/LICENSE.txt */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/source-sans-3-latin-400.woff2) format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/source-sans-3-latin-600.woff2) format("woff2");
}

:root {
  --green: #9fbf3a;
  --green-dark: #86a52b;
  --text: #555;
  --heading: #333;
  --muted: #888;
  --line: #e2e2e2;
  --bg-soft: #f2f4f8;
  --bg-grey: #ececec;
  --star: #f5b301;
  --radius: 4px;
  --max: 1000px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--text); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 400; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Kopf ---------- */
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
}
.site-head .logo img { width: 230px; height: auto; }
.site-nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--green-dark); }

/* ---------- Hotel inserieren ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; margin-top: 24px; }
.signup-form { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; font-size: 15px; }
.field input, .field select { height: 44px; padding: 0 12px; border: 1px solid #ccc; border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-plz { grid-template-columns: 140px 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { margin-top: 3px; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-msg { padding: 10px 14px; border-left: 4px solid #c0392b; background: #fbeaea; font-size: 15px; }
.form-msg.ok { border-left-color: var(--green); background: #eef4dc; }
.inquiry { display: grid; gap: 12px; }
.inquiry h3, .inquiry .sub { margin-bottom: 0; }
.field textarea { padding: 10px 12px; border: 1px solid #ccc; border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; width: 100%; resize: vertical; }
.field textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.signup-info h2 { font-size: 24px; margin-bottom: 8px; }
.signup-info h3 { font-size: 19px; margin: 22px 0 6px; }
.signup-info p { font-size: 15px; }
.ticks { list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; }
.ticks li { position: relative; padding: 3px 0 3px 22px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Suche ---------- */
.search-form { display: flex; gap: 10px; width: 100%; max-width: 560px; }
.search-form input {
  flex: 1; min-width: 0; height: 50px; padding: 0 14px;
  border: 1px solid #ddd; border-radius: var(--radius);
  font: inherit; color: var(--text); background: #fff;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--green); color: #fff; font: inherit; line-height: 1; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-small { height: 38px; line-height: 38px; padding: 0 16px; font-size: 15px; }
.search-form { position: relative; }
.search-field { flex: 1; min-width: 0; display: flex; }
.search-field input { width: 100%; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: #fff; border: 1px solid #ddd; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); max-height: 70vh; overflow-y: auto; text-align: left;
}
.suggest-group { padding: 8px 14px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.suggest-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 14px; text-decoration: none; color: var(--heading); }
.suggest-item:hover, .suggest-item.active { background: #eef4dc; color: var(--heading); }
.suggest-item .sg-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item .sg-ctx { flex-shrink: 0; font-size: 13px; color: var(--muted); }
.suggest-all { display: block; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--green-dark); }
.suggest-empty { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.search-note { background: #eef4dc; border-left: 4px solid var(--green); padding: 10px 14px; margin: 18px 0 0; font-size: 15px; }
.hotel-card .dist { display: inline-block; background: var(--green); color: #fff; font-size: 13px; padding: 0 8px; border-radius: 10px; margin-right: 6px; }
.results-head { flex-wrap: wrap; }

.hero {
  background: url(../images/key.jpg) center / cover no-repeat;
  height: 450px; display: flex; align-items: center; justify-content: center;
}
.hero-box {
  background: rgba(235, 235, 235, .9); padding: 28px 32px 22px; width: 100%; max-width: 620px;
}
.hero-box h1 { font-size: 40px; line-height: 1.15; }
.hero-box h2 { font-size: 20px; margin: 4px 0 18px; color: var(--text); }

.search-bar { background: var(--bg-grey); padding: 34px 0; }
.search-bar .search-form { margin: 0 auto; }

/* ---------- Startseite: Themen ---------- */
/* Überschriften teilen sich eine Zeile (Subgrid), damit alle Texte auf gleicher Höhe beginnen */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; column-gap: 30px; row-gap: 8px; padding: 34px 16px; text-align: center; }
.themes > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.themes h3 { color: var(--green); font-size: 24px; line-height: 1.25; align-self: end; text-wrap: balance; }
.themes p { margin: 0; font-size: 15px; }

/* ---------- Startseite: Bundesländer-Kacheln ---------- */
.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.state {
  position: relative; display: block; height: 170px;
  background-size: cover; background-position: center; text-decoration: none;
  overflow: hidden;
}
.state.big { grid-column: span 2; height: 200px; }
.state::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .2s; }
.state:hover::after { background: rgba(0,0,0,.12); }
.state span {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  background: #333; color: #f5f5f5; padding: 3px 8px; font-size: 15px;
}
.state small { color: #bbb; margin-left: 6px; }

/* ---------- Trenner-Überschrift ---------- */
.separator { position: relative; text-align: center; margin: 46px 0 26px; }
.separator::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.separator h2 { position: relative; display: inline-block; background: #fff; padding: 0 18px; font-size: 26px; }

/* ---------- Teaser (Lassen Sie sich inspirieren) ---------- */
.teasers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.teaser { display: block; background: var(--bg-soft); text-decoration: none; height: 100%; }
.teaser img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.teaser h3 { font-size: 16px; padding: 8px 10px 2px; color: var(--heading); }
.teaser p { margin: 0; padding: 0 10px 10px; font-size: 14px; color: var(--muted); }
.teaser:hover h3 { color: var(--green-dark); }

.content-text p { margin: 0 0 14px; }

/* Impressum / Datenschutz */
.legal { max-width: 760px; margin-top: 18px; }
.legal h2 { font-size: 24px; margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--green); display: inline-block; }
.legal h3 { font-size: 19px; margin: 22px 0 6px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal a { word-break: break-word; }

/* ---------- Fuß ---------- */
.site-foot { background: var(--bg-grey); margin-top: 60px; padding: 30px 0 40px; font-size: 15px; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-foot h4 { font-size: 17px; margin-bottom: 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 2px 0; }
.site-foot .copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid #d8d8d8; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #fff; border-top: 3px solid var(--green); box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
.cookie-inner { display: flex; align-items: center; gap: 24px; padding: 16px 20px; }
.cookie-inner p { margin: 0; font-size: 15px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn { min-width: 130px; }

/* ---------- Brotkrumen & Überschriften ---------- */
.breadcrumb { list-style: none; padding: 0; margin: 22px 0 18px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "»"; margin: 0 6px 0 2px; color: var(--muted); }
.breadcrumb a { color: var(--text); }
.page-title h1 { font-size: 34px; line-height: 1.2; }
.page-title h1 strong { font-weight: 600; }
.page-title p { margin: 4px 0 0; font-size: 19px; }

/* ---------- Sterne ---------- */
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; font-size: .8em; vertical-align: .15em; margin-left: 6px; }
.stars sup { font-size: .7em; color: var(--star); margin-left: 1px; }

/* ---------- Kategorie-Seiten ---------- */
.subregions { background: var(--bg-soft); padding: 16px 20px; margin: 24px 0; }
.subregions h2 { font-size: 18px; margin-bottom: 10px; }
.subregions ul { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.subregions li { break-inside: avoid; padding-left: 14px; position: relative; margin: 2px 0; }
.subregions li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--green); }

.listing { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.filters { background: var(--bg-soft); padding: 14px 16px; position: sticky; top: 12px; }
.filters h3 { font-size: 17px; margin: 12px 0 6px; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 15px; }
.filters label.disabled { opacity: .45; cursor: default; }
.filters .count { margin-left: auto; color: var(--muted); font-size: 13px; }
.filters input { accent-color: var(--green); width: 16px; height: 16px; }
.filters .reset { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--green-dark); cursor: pointer; font: inherit; font-size: 14px; text-decoration: underline; }
.filter-toggle { display: none; }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; color: var(--muted); }
.results-head select { font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid #ddd; border-radius: var(--radius); color: var(--text); }

.hotel-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px;
  padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); background: #fff;
}
.hotel-card[hidden] { display: none; }
.hotel-card .thumb { display: block; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.hotel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hotel-card .thumb .noimg { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.hotel-card h3 { font-size: 22px; line-height: 1.2; }
.hotel-card h3 a { text-decoration: none; color: var(--heading); }
.hotel-card h3 a:hover { color: var(--green-dark); }
.hotel-card .where { font-size: 15px; margin: 2px 0 8px; color: var(--muted); }
.hotel-card .excerpt { margin: 0 0 10px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--bg-soft); border-radius: 12px; padding: 1px 10px; font-size: 13px; }
.chips li.on { background: #eef4dc; color: #4f6316; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 20px 0; }
.pager button { min-width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: var(--radius); cursor: pointer; font: inherit; }
.pager button.active { background: var(--green); border-color: var(--green); color: #fff; }
.empty { padding: 30px; text-align: center; background: var(--bg-soft); }

/* ---------- Hotelseite ---------- */
.hotel-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; margin-top: 22px; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); cursor: zoom-in; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .counter { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 2px 8px; border-radius: 10px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); cursor: pointer; font-size: 22px; line-height: 40px; color: #333; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin-top: 6px; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--green); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 22px 0; }
.facts div { background: #fff; padding: 10px 12px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 18px; color: var(--heading); }

.section { margin: 26px 0; }
.section h2 { font-size: 24px; padding-bottom: 6px; border-bottom: 2px solid var(--green); margin-bottom: 12px; display: inline-block; }
.section p { margin: 0 0 12px; }
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.amenities h3 { font-size: 17px; margin-bottom: 6px; }
.amenities ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.amenities li { padding-left: 22px; position: relative; margin: 3px 0; }
.amenities li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.map { width: 100%; height: 320px; border: 0; background: var(--bg-soft); }
.map-consent {
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #eef1f6 0 14px, #e6eaf1 14px 28px);
}
.map-consent-box { max-width: 420px; background: #fff; padding: 18px 20px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.08); font-size: 15px; }
.map-consent-box p { margin: 0 0 10px; }
.map-remember { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.map-remember input { accent-color: var(--green); }

.sidebar { display: grid; gap: 16px; }
.box { background: var(--bg-soft); padding: 18px; }
.box h3 { font-size: 20px; margin-bottom: 4px; }
.box .sub { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.box address { font-style: normal; margin-bottom: 14px; }
.box .btn { width: 100%; text-align: center; }
.box .btn + .btn, .box .phone + .btn { margin-top: 10px; }
.btn-outline { background: #fff; color: var(--green-dark); box-shadow: inset 0 0 0 2px var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.phone { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; }
.phone dt { color: var(--muted); }
.phone dd { margin: 0; font-weight: 600; color: var(--heading); }
.phone a { text-decoration: none; color: var(--heading); }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 50; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 10px 16px; }
.lightbox .close { top: 10px; right: 10px; }
.lightbox .prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .themes { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 22px; }
  .themes > div { grid-row: auto; grid-template-rows: none; gap: 6px; }
  .states { grid-template-columns: repeat(2, 1fr); }
  .state, .state.big { grid-column: span 1; height: 150px; }
  .teasers, .related { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-block; margin-bottom: 12px; }
  .hotel-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .site-foot .cols { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .signup { grid-template-columns: 1fr; }
  .cookie-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .site-head .wrap { height: 76px; }
  .site-head .logo img { width: 160px; }
  .site-nav { gap: 12px; font-size: 14px; }
  .hero { height: 380px; }
  .hero-box { padding: 20px 16px; }
  .hero-box h1 { font-size: 28px; }
  .hero-box h2 { font-size: 17px; }
  .search-form { flex-direction: column; }
  .field-row, .field-row-plz { grid-template-columns: 1fr; }
  .suggest-item .sg-ctx { display: none; }
  .page-title h1 { font-size: 26px; }
  .hotel-card { grid-template-columns: 1fr; }
  .separator h2 { font-size: 21px; }
}
