/* fair-schluesseldienst.de — schlankes Stylesheet, Design angelehnt an die
   bisherige Seite: Türkis #1dbfaf, Montserrat, helle Flächen */

:root {
  --akzent: #1dbfaf;
  --akzent-dunkel: #09ab9b;
  --rot: #bf1d2d;
  --dunkel: #313b48;
  --text: #333333;
  --text-hell: #666666;
  --hell: #f6f9f9;
  --rand: #e3e8e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dunkel);
  margin: 0 0 0.6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }

a { color: var(--akzent-dunkel); }
a:hover { color: var(--dunkel); }
img { max-width: 100%; height: auto; }
main img { border-radius: 10px; }
figure { margin: 0 0 1em; }

.innen { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.springen { position: absolute; left: -9999px; }
.springen:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: 8px 14px; }

/* Kopf + Navigation */
.kopf {
  border-bottom: 3px solid var(--akzent);
  background: #fff;
  position: relative;
  z-index: 50;
}
.kopf-zeile {
  display: flex; align-items: center; gap: 14px;
  padding-top: 10px; padding-bottom: 10px;
}
.logo img { display: block; width: 175px; height: auto; }
.menue-knopf {
  display: none;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  background: none; border: 1px solid var(--rand); border-radius: 5px;
  padding: 8px 14px; cursor: pointer; font-size: 1rem; color: var(--dunkel);
}
.navi { flex: 1; }
.menue, .menue ul { list-style: none; margin: 0; padding: 0; }
.menue { display: flex; gap: 2px; }
.menue a {
  display: block;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.88rem;
  color: var(--dunkel); text-decoration: none;
  padding: 9px 10px; border-radius: 5px;
  white-space: nowrap;
}
.menue a:hover { color: #fff; background: var(--akzent); }
.menue li { position: relative; }
.menue li ul {
  display: none;
  position: absolute; left: 0; top: 100%;
  z-index: 100;
  background: #fff; border: 1px solid var(--rand); border-radius: 6px;
  min-width: 265px; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  padding: 6px;
}
.menue li ul a { white-space: normal; }
.menue li ul ul { left: 100%; top: 0; }
.menue li:hover > ul, .menue li:focus-within > ul { display: block; }
.sprache {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem;
  color: var(--dunkel); text-decoration: none;
  border: 1px solid var(--rand); border-radius: 5px;
  padding: 8px 10px; white-space: nowrap;
}
.sprache:hover { background: var(--hell); }
.tel-knopf {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.92rem;
  background: var(--akzent); color: #fff !important;
  text-decoration: none; white-space: nowrap;
  padding: 10px 14px; border-radius: 5px;
}
.tel-knopf:hover { background: var(--akzent-dunkel); }

/* Inhalt */
.abschnitt { padding: 42px 0; }
.abschnitt:nth-of-type(even) { background: var(--hell); }

/* Startseite: rotes Hero-Band wie im Original */
.held-flaeche {
  background: var(--rot);
  padding: 48px 0;
}
.held-flaeche h1, .held-flaeche h2 { color: #fff; }
.held-flaeche h1 { font-size: 2.3rem; margin-bottom: 0.2em; }
.held-flaeche h2 { font-style: italic; font-size: 1.5rem; }
.held-flaeche { color: #fff; }
.held-flaeche .icon-liste li::before { color: #fff; }
.held-flaeche img { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
/* zweiter Button (z.B. „Dienstleistungen") und Telefon: weiß umrandet */
.held-flaeche p:has(> .knopf) + p:has(> .knopf) .knopf,
.held-flaeche .knopf[href^="tel:"] {
  background: transparent;
  border: 2px solid #fff;
  border-radius: 24px;
}
.held-flaeche p:has(> .knopf) + p:has(> .knopf) .knopf:hover,
.held-flaeche .knopf[href^="tel:"]:hover { background: rgba(255,255,255,.15); }

/* Startseite: Bildkacheln mit Beschriftung darunter */
.start-kacheln .spalten { gap: 22px; }
.start-kacheln img {
  border: 1px solid var(--akzent);
  border-radius: 4px;
  padding: 4px;
  background: #fff;
}
.start-kacheln figure { margin-bottom: 6px; }
.start-kacheln p:has(> .knopf) { display: block; margin: 0; text-align: center; }
.start-kacheln .knopf {
  background: none !important;
  color: var(--dunkel) !important;
  font-size: 1.1rem;
  padding: 4px 0;
  transform: none !important;
}
.start-kacheln .knopf:hover { color: var(--akzent-dunkel) !important; }

/* Startseite: Teaser-Karten mit Bild links */
.start-karten { border-top: 4px dotted #eebfc4; }
.start-karten > .innen > h2 {
  text-align: center;
  color: var(--akzent);
  margin-bottom: 1.2em;
}
.start-karten .spalten > div {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 4px 20px;
  align-items: start;
}
.start-karten .spalten > div > figure {
  grid-column: 1;
  grid-row: 1 / span 6;
  margin: 0;
}
.start-karten .spalten > div > :not(figure) { grid-column: 2; }
.start-karten .spalten > div h2 { font-size: 1.35rem; margin-bottom: 0.4em; }
.start-karten .spalten > div p:has(> .knopf) { text-align: right; margin-bottom: 0; }

/* Startseite: Anruf-Sektion */
.start-cta { border-top: 4px dotted #eebfc4; }
.start-cta > .innen > p:first-child {
  text-align: center;
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dunkel);
}
.start-cta .knopf[href^="tel:"] {
  background: var(--rot);
  border-radius: 24px;
}
.start-cta .knopf[href^="tel:"]:hover { background: #9d1826; }

/* Startseite: Vorteile */
.start-vorteile { border-top: 4px dotted #eebfc4; }
.start-vorteile h3 { text-align: center; }
.start-vorteile > .innen > h3 { font-size: 1.4rem; margin-bottom: 1.4em; }

.knopf {
  display: inline-block;
  background: var(--akzent); color: #fff !important;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  text-decoration: none;
  padding: 12px 26px; border-radius: 5px;
  transition: background .15s ease, transform .15s ease;
}
.knopf:hover { background: var(--akzent-dunkel); transform: translateY(-1px); }
/* aufeinanderfolgende Button-Absätze nebeneinander statt gestapelt */
main p:has(> a.knopf:only-child) {
  display: inline-block;
  margin: 6px 12px 6px 0;
}

.spalten {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  align-items: start;
  margin: 14px 0;
}

.bild-box {
  background: #fff; border: 1px solid var(--rand); border-radius: 8px;
  padding: 18px; height: 100%;
  transition: box-shadow .15s ease, transform .15s ease;
}
.bild-box:hover { box-shadow: 0 8px 22px rgba(0,0,0,.10); transform: translateY(-2px); }
.bild-box a { text-decoration: none; color: inherit; }
.bild-box img { border-radius: 6px; }
.bild-box h3 { margin-top: 12px; color: var(--akzent-dunkel); }

.icon-liste { list-style: none; padding: 0; margin: 0 0 1em; }
.icon-liste li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.icon-liste li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--akzent); font-weight: 700;
}

table.preisliste {
  width: 100%; border-collapse: collapse; margin: 12px 0 18px;
  background: #fff; border: 1px solid var(--rand); border-radius: 8px;
}
table.preisliste td { padding: 12px 16px; border-bottom: 1px solid var(--rand); }
table.preisliste tr:last-child td { border-bottom: 0; }
table.preisliste td:last-child {
  text-align: right; white-space: nowrap;
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--akzent-dunkel);
}
.tab-block { margin-bottom: 26px; }
.tab-block > h3 { color: var(--akzent-dunkel); }

.faq details { border: 1px solid var(--rand); border-radius: 6px; margin-bottom: 10px; padding: 0 18px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 0; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.faq details[open] summary { border-bottom: 1px solid var(--rand); }

iframe { max-width: 100%; }

/* Öffnungszeiten (live geladen) */
.fair-oeffnungszeiten { max-width: 340px; }
.fair-oeffnungszeiten > div { padding: 4px 0; border-bottom: 1px dashed var(--rand); }
.fair-oeffnungszeiten > div:last-child { border-bottom: 0; }
.fuss .fuss-zeiten > div { border-bottom-color: #46525f; }

/* Rechtstexte */
.rechtstext h2, .rechtstext h3 { margin-top: 1.6em; }
.rechtstext { overflow-wrap: break-word; }

/* Fuß */
.fuss { background: var(--dunkel); color: #cfd6dd; margin-top: 30px; font-size: 0.95rem; }
.fuss .innen { padding-top: 36px; padding-bottom: 20px; }
.fuss h3 { color: #fff; font-size: 1rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 6px; padding-left: 16px; position: relative; }
.fuss li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--akzent);
}
.fuss-siegel { display: flex; gap: 16px; align-items: center; }
.fuss-siegel img { border-radius: 6px; background: #fff; padding: 3px; }
.fuss a { color: #cfd6dd; text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss-spalten {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 20px; border-bottom: 1px solid #46525f;
}
.fuss-unten {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; padding-top: 14px;
}
.fuss-unten p { margin: 0; }
.fuss-unten nav { display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.fuss-unten a { margin-left: 0; }

/* WhatsApp-Knopf */
.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.whatsapp svg { width: 30px; height: 30px; }
.whatsapp:hover { background: #1eb857; color: #fff; }

/* Cookie-Banner */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--dunkel); color: #eee;
  padding: 16px 20px; font-size: 0.9rem;
}
#cookie-banner .innen { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#cookie-banner p { margin: 0; max-width: 720px; }
#cookie-banner a { color: #fff; }
#cookie-banner button {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  border: 0; border-radius: 5px; cursor: pointer;
  padding: 9px 20px; font-size: 0.9rem;
}
#cookie-banner .annehmen { background: var(--akzent); color: #fff; }
#cookie-banner .ablehnen { background: #55606c; color: #eee; margin-left: 8px; }

@media (max-width: 1080px) {
  .kopf-zeile { flex-wrap: wrap; }
  .menue-knopf { display: block; margin-left: auto; }
  .navi { display: none; flex-basis: 100%; }
  .navi.offen { display: block; }
  .menue { flex-direction: column; }
  .menue li ul {
    display: block; position: static;
    border: 0; box-shadow: none; padding-left: 18px; min-width: 0;
  }
  .tel-knopf { order: -1; margin-left: auto; }
  .held-flaeche h1 { font-size: 1.8rem; }
  h1 { font-size: 1.7rem; }
}

/* Handy: Teaser-Karten stapeln statt Bild-links-Raster */
@media (max-width: 640px) {
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  .start-karten .spalten > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .start-karten .spalten > div > figure { grid-row: auto; grid-column: 1; }
  .start-karten .spalten > div > :not(figure) { grid-column: 1; }
  .start-karten .spalten > div > figure img {
    width: 100%; height: auto;
  }
  .start-karten .spalten > div p:has(> .knopf) { text-align: left; }
}
