/* ==========================================================================
   Bierwirth Immobilien -- Stylesheet der neuen Seite (2026)
   Ersetzt die 59 KB des alten Template-Stylesheets samt Revolution Slider.
   Die Hausfarbe (#cee002) bleibt, sie traegt aber nie Text: auf Weiss hat
   sie einen Kontrast von 1,4:1 und waere unlesbar. Sie liegt unter dunkler
   Schrift oder als Flaeche/Linie -- fuer Text gibt es --limette-tief.
   ========================================================================== */

:root {
  --limette:      #cee002;
  --limette-hell: #e6f47a;
  --limette-tief: #5e6a00;   /* dieselbe Farbe, aber lesbar auf Papier */
  --tinte:        #16180f;
  --tinte-weich:  #55594a;
  --papier:       #ffffff;
  --flaeche:      #f4f5ec;
  --linie:        #e3e5d5;

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rand:   clamp(1.25rem, 5vw, 5rem);
  --breite: 1180px;
  --rund:   14px;

  --schatten:      0 1px 2px rgba(22,24,15,.05), 0 8px 24px -12px rgba(22,24,15,.18);
  --schatten-hoch: 0 2px 4px rgba(22,24,15,.06), 0 24px 48px -20px rgba(22,24,15,.28);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--schrift);
  /* Deutsche Komposita sind laenger als jede Kartenbreite:
     "Betriebskostenabrechnungen" braucht 281 px, die Karte bietet 174 px.
     hyphens greift dank lang="de" im html-Element, overflow-wrap ist die
     Notbremse fuer alles ohne Trennstelle (E-Mail-Adressen, URLs). */
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2 { hyphens: manual; }
h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -.022em;
  font-weight: 650;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--limette-tief); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--tinte); }

:focus-visible {
  outline: 3px solid var(--limette-tief);
  outline-offset: 3px;
  border-radius: 4px;
}

.nur-fuer-vorleser {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprungmarke {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--tinte); color: #fff; padding: .7rem 1.1rem;
  border-radius: 8px; text-decoration: none; transition: top .15s;
}
.sprungmarke:focus { top: 1rem; color: #fff; }

/* --- Bausteine ---------------------------------------------------------- */

.bahn { padding: clamp(3.5rem, 7vw, 7rem) var(--rand); }
.bahn-flaeche { background: var(--flaeche); }
.bahn-tinte { background: var(--tinte); color: #f2f3ea; }
.bahn-tinte h2 { color: #fff; }

.innen { max-width: var(--breite); margin-inline: auto; }
.innen-schmal { max-width: 760px; margin-inline: auto; }

.hut {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--limette-tief); margin-bottom: 1rem;
}
.hut::before {
  content: ""; width: 28px; height: 3px;
  background: var(--limette); border-radius: 2px;
}
.bahn-tinte .hut { color: var(--limette); }
.bahn-tinte .hut::before { background: var(--limette); }

.vorspann {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.2rem);
  color: var(--tinte-weich);
  max-width: 62ch;
}
.bahn-tinte .vorspann { color: #c9ccb9; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  background: var(--limette); color: var(--tinte);
  font-weight: 650; font-size: 1rem;
  border: 2px solid var(--limette); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.knopf:hover {
  color: var(--tinte);
  background: var(--limette-hell); border-color: var(--limette-hell);
  transform: translateY(-2px);
  box-shadow: var(--schatten);
}
.knopf-rand {
  background: transparent; color: var(--tinte); border-color: var(--linie);
}
.knopf-rand:hover { background: transparent; border-color: var(--tinte); }
.knopf-hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.knopf-hell:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.knopf-klein { padding: .55rem 1.15rem; font-size: .92rem; }

.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* --- Kopf --------------------------------------------------------------- */

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: var(--breite); margin-inline: auto;
  padding: .85rem var(--rand);
  display: flex; align-items: center; gap: 1.5rem;
}
.marke { flex: 0 0 auto; line-height: 0; }
.marke img { width: clamp(150px, 20vw, 205px); height: auto; }

.hauptmenue { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.hauptmenue ul {
  display: flex; align-items: center; gap: 1.75rem;
  list-style: none; margin: 0; padding: 0;
}
.hauptmenue a {
  color: var(--tinte); text-decoration: none;
  font-weight: 500; font-size: .97rem;
  padding: .35rem 0; position: relative;
}
.hauptmenue a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 2px; background: var(--limette);
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.hauptmenue a:hover::after,
.hauptmenue a[aria-current="page"]::after { transform: scaleX(1); }

.knopf-telefon {
  flex: none;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .5rem 1.15rem .5rem .95rem;
  background: var(--tinte); color: #fff;
  border: 2px solid var(--tinte); border-radius: 999px;
  text-decoration: none; line-height: 1.15;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.knopf-telefon svg {
  width: 18px; height: 18px; flex: none;
  color: var(--limette);
  transition: color .18s ease;
}
.telefon-text { display: flex; flex-direction: column; }
.telefon-hinweis {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--limette);
  transition: color .18s ease;
}
.telefon-nummer {
  font-size: .95rem; font-weight: 650;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  white-space: nowrap;
}
.knopf-telefon:hover, .knopf-telefon:focus-visible {
  background: var(--limette); border-color: var(--limette); color: var(--tinte);
  transform: translateY(-1px);
  box-shadow: var(--schatten);
}
.knopf-telefon:hover svg, .knopf-telefon:hover .telefon-hinweis,
.knopf-telefon:focus-visible svg, .knopf-telefon:focus-visible .telefon-hinweis {
  color: var(--tinte);
}

.menue-schalter {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--linie); border-radius: 10px;
  cursor: pointer;
}
.menue-balken, .menue-balken::before, .menue-balken::after {
  display: block; width: 20px; height: 2px; margin-inline: auto;
  background: var(--tinte); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menue-balken::before, .menue-balken::after { content: ""; position: relative; }
.menue-balken::before { top: -6px; }
.menue-balken::after  { top: 4px; }
[aria-expanded="true"] .menue-balken { background: transparent; }
[aria-expanded="true"] .menue-balken::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .menue-balken::after  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .menue-schalter { display: block; }
  .knopf-telefon { margin-left: auto; }
  .hauptmenue {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--rand) 1.5rem;
    background: var(--papier); border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
  }
  .hauptmenue.offen { display: flex; }
  .hauptmenue ul { flex-direction: column; align-items: stretch; gap: 0; }
  .hauptmenue li + li { border-top: 1px solid var(--linie); }
  .hauptmenue ul a { display: block; padding: .95rem 0; font-size: 1.05rem; }
  .hauptmenue ul a::after { display: none; }
  .hauptmenue ul a[aria-current="page"] { color: var(--limette-tief); }
}

/* --- Auftakt ------------------------------------------------------------ */

.auftakt {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  padding: clamp(4rem, 12vw, 8rem) var(--rand) clamp(3rem, 6vw, 5rem);
  color: #fff; overflow: hidden;
  background: var(--tinte);
}
.auftakt-bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.auftakt::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(22,24,15,.88) 0%, rgba(22,24,15,.62) 45%, rgba(22,24,15,.2) 100%);
}
.auftakt-innen { position: relative; z-index: 2; max-width: var(--breite); margin-inline: auto; width: 100%; }
.auftakt h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.auftakt h1 em { font-style: normal; color: var(--limette); }
.auftakt .vorspann { color: rgba(255,255,255,.82); max-width: 50ch; }

/* Der Limetten-Rahmen ist das einzige Zitat aus dem alten Slider. */
.auftakt-rahmen {
  position: absolute; z-index: 1;
  left: var(--rand); top: 22%;
  width: clamp(120px, 18vw, 260px); height: clamp(180px, 26vw, 330px);
  border: 4px solid var(--limette);
  opacity: .5; pointer-events: none;
}
@media (max-width: 860px) { .auftakt-rahmen { display: none; } }

/* --- Kennzahlen --------------------------------------------------------- */

.kennzahlen {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--linie);
  border-block: 1px solid var(--linie);
}
.kennzahl { background: var(--papier); padding: 2rem var(--rand); }
.kennzahl b {
  display: block; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 650; letter-spacing: -.03em; line-height: 1;
}
.kennzahl span { color: var(--tinte-weich); font-size: .92rem; }

/* --- Raster ------------------------------------------------------------- */

.raster { display: grid; gap: 1.5rem; }
.raster > *, .zweier > *, .kennzahlen > *, .fuss-innen > * { min-width: 0; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.raster-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.karte {
  background: var(--papier);
  border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 1.75rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.karte h3 { margin-bottom: .4rem; }
.karte p { color: var(--tinte-weich); font-size: .95rem; }
.karte-ziffer {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; color: var(--limette-tief); margin-bottom: .9rem;
}
a.karte { text-decoration: none; color: inherit; display: block; }
.karte:hover {
  transform: translateY(-3px);
  border-color: var(--limette);
  box-shadow: var(--schatten);
}

/* --- Zweispalter (Text + Bild) ------------------------------------------ */

.zweier {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
@media (max-width: 900px) { .zweier { grid-template-columns: 1fr; } }
.zweier-bild {
  border-radius: var(--rund); overflow: hidden;
  box-shadow: var(--schatten-hoch);
  aspect-ratio: 4 / 3;
}
.zweier-bild img { width: 100%; height: 100%; object-fit: cover; }
.zweier-gedreht .zweier-bild { order: -1; }
@media (max-width: 900px) { .zweier-gedreht .zweier-bild { order: 0; } }

/* --- Zeiten ------------------------------------------------------------- */

.zeiten { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.zeiten li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  padding: .85rem 0; border-bottom: 1px solid var(--linie);
}
.zeiten li > * { min-width: 0; }
.bahn-tinte .zeiten li { border-color: rgba(255,255,255,.14); }
.zeiten dt, .zeiten b { font-weight: 600; }
.zeiten span { color: var(--tinte-weich); text-align: right; }
.bahn-tinte .zeiten span { color: #c9ccb9; }

.hinweiskasten {
  border-left: 4px solid var(--limette);
  background: var(--flaeche);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--rund) var(--rund) 0;
  margin: 1.5rem 0;
}
.bahn-tinte .hinweiskasten { background: rgba(255,255,255,.06); }

/* --- Leistungskatalog --------------------------------------------------- */

.katalog { display: grid; gap: 2.5rem; }
.katalog-gruppe {
  border-top: 3px solid var(--limette);
  padding-top: 1.5rem;
}
.katalog-liste { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.katalog-liste li {
  position: relative; padding: .55rem 0 .55rem 1.9rem;
  border-bottom: 1px solid var(--linie);
  font-size: .96rem;
}
.katalog-liste li:last-child { border-bottom: 0; }
.katalog-liste li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--limette);
}

/* --- Stimmen ------------------------------------------------------------ */

.stimmen { columns: 2; column-gap: 1.5rem; }
@media (max-width: 800px) { .stimmen { columns: 1; } }
.stimme {
  break-inside: avoid; margin: 0 0 1.5rem;
  background: var(--papier); border: 1px solid var(--linie);
  border-radius: var(--rund); padding: 1.75rem;
}
.stimme blockquote { margin: 0 0 1.1rem; font-size: 1.02rem; }
.stimme blockquote::before { content: "„"; color: var(--limette-tief); font-size: 1.6em; line-height: 0; vertical-align: -.28em; }
.stimme blockquote::after { content: "“"; color: var(--limette-tief); font-size: 1.6em; line-height: 0; vertical-align: -.28em; }
.stimme figcaption { font-size: .9rem; color: var(--tinte-weich); }
.stimme figcaption b { display: block; color: var(--tinte); font-weight: 650; }
.sterne { color: var(--limette-tief); letter-spacing: .12em; margin-bottom: .75rem; font-size: .9rem; }

/* --- Formular ----------------------------------------------------------- */

.formular { display: grid; gap: 1.25rem; }
.feldpaar { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .feldpaar { grid-template-columns: 1fr; } }

.feld { display: grid; gap: .4rem; }
.feld label { font-weight: 600; font-size: .93rem; }
.feld .zusatz { font-weight: 400; color: var(--tinte-weich); }

.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 1rem; color: var(--tinte);
  padding: .8rem 1rem;
  background: var(--papier);
  border: 1.5px solid var(--linie); border-radius: 10px;
  width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.feld textarea { min-height: 170px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--limette-tief);
  box-shadow: 0 0 0 3px rgba(206,224,2,.28);
}
.feld input::placeholder, .feld textarea::placeholder { color: #9aa08a; }

/* Bienenfalle: fuer Menschen unsichtbar, fuer Formularroboter verlockend. */
.bienenfalle {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.meldung {
  padding: 1rem 1.25rem; border-radius: var(--rund);
  border-left: 4px solid; margin-bottom: 2rem;
}
.meldung-gut  { background: #f2f7dd; border-color: var(--limette-tief); }
.meldung-fehler { background: #fdeceb; border-color: #b4231b; }
.meldung p:last-child { margin-bottom: 0; }

/* --- Kontaktkacheln ----------------------------------------------------- */

.kontaktliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.kontaktliste a { text-decoration: none; }
.kontaktliste .art {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--limette-tief); margin-bottom: .2rem;
}
.kontaktliste .wert {
  font-size: 1.12rem; font-weight: 600; color: var(--tinte);
  overflow-wrap: anywhere;   /* fuer info@bierwirth-immobilien.eu */
}

/* --- Rechtstexte -------------------------------------------------------- */

.rechtstext { max-width: 74ch; }
.rechtstext h2 { margin-top: 3rem; scroll-margin-top: 6rem; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext h3 { margin-top: 2rem; }
.rechtstext ol { padding-left: 1.2rem; }
.rechtstext ol li { margin-bottom: 1rem; }
.rechtstext .pfeilliste { list-style: none; padding-left: 0; }
.rechtstext .pfeilliste li {
  position: relative; padding-left: 1.6rem; margin-bottom: .6rem;
}
.rechtstext .pfeilliste li::before {
  content: "→"; position: absolute; left: 0; color: var(--limette-tief);
}
.rechtstext dl { margin: 1.5rem 0; }
.rechtstext dt { font-weight: 650; margin-top: 1rem; }
.rechtstext dd { margin: 0; color: var(--tinte-weich); }

.inhaltsverzeichnis {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--linie);
}
.inhaltsverzeichnis a {
  padding: .45rem 1rem; border: 1px solid var(--linie);
  border-radius: 999px; text-decoration: none;
  font-size: .9rem; color: var(--tinte);
}
.inhaltsverzeichnis a:hover { border-color: var(--limette); background: var(--flaeche); }

/* --- Aufruf-Bahn -------------------------------------------------------- */

.aufruf { text-align: center; }
.aufruf .knopfreihe { justify-content: center; }

/* --- Fuss --------------------------------------------------------------- */

.fuss { background: var(--tinte); color: #b9bdaa; padding: clamp(3rem, 6vw, 4.5rem) var(--rand) 0; }
.fuss-innen {
  max-width: var(--breite); margin-inline: auto;
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
}
@media (max-width: 900px) { .fuss-innen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fuss-innen { grid-template-columns: 1fr; } }

.fuss h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--limette); margin-bottom: 1rem;
}
.fuss-marke img { width: 190px; margin-bottom: 1.25rem; }
.fuss-satz { font-size: .95rem; max-width: 34ch; }
.fuss address { font-style: normal; margin-bottom: 1rem; font-size: .95rem; }
.fuss-liste { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.fuss-liste li { margin-bottom: .5rem; overflow-wrap: break-word; }
.fuss a { color: #d5d9c6; text-decoration: none; }
.fuss a:hover { color: var(--limette); text-decoration: underline; }

.fuss-zeile {
  max-width: var(--breite); margin: 3rem auto 0;
  padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
}
.fuss-zeile p { margin: 0; }

@media (max-width: 560px) {
  .knopf-telefon {
    gap: 0; padding: 0;
    width: 44px; height: 44px;
    justify-content: center; border-radius: 13px;
  }
  .telefon-text { display: none; }
  .knopf-telefon svg { width: 20px; height: 20px; }
}

@media print {
  .kopf, .fuss, .knopfreihe, .sprungmarke, .inhaltsverzeichnis { display: none; }
  body { font-size: 11pt; }
}
