/* ==========================================================================
   Schreibeis Immobilien GmbH — statische Website
   Design 1:1 aus dem Jimdo-Dolphin-Export rekonstruiert.
   Alle Werte (Farben, Typo-Skala, Abstände, Breakpoints) sind aus dem
   Original-Renderer-CSS und gemessenen Layouts übernommen.
   Breakpoints des Originals: 532 / 700 / 800·801 / 812 / 1023 / 1092 / 1281 / 1441
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --main: #dee4ec;          /* MainColor der Jimdo-Palette   */
  --secondary: #9eaec6;
  --shade-1: #5e78a0;
  --shade-2: #7e93b3;      /* Palette vollständig, für spätere Erweiterungen */
  --text: #323335;          /* Fließtextfarbe im Original     */
  --text-hover: #535353;

  --font-head: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --overlay: rgba(255, 255, 255, 0.8);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  /* clip statt hidden: hidden würde den Body zum Scroll-Container machen
     und damit die klebende Kopfzeile wirkungslos */
  overflow-x: clip;
  /* hält die Fußzeile auf kurzen Seiten am unteren Rand;
     auf allen längeren Seiten ohne Wirkung */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main { flex: 1 0 auto; }

img { border: 0; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
}
h1 strong, h2 strong, h3 strong, h4 strong, h5 strong, h6 strong { font-weight: 700; }

p { margin: 0; }
ul, ol { margin: 0; }

button { font: inherit; color: inherit; }

/* Tastatur-Fokus sichtbar (im Original nicht vorhanden — Accessibility-Fix) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--shade-1);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Sprunglink zum Inhalt */
.skip-link {
  position: absolute;
  top: -100px; left: 20px;
  z-index: 3000;
  padding: 12px 20px;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Layout-Container  (Original .plfvA)
   ========================================================================== */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}
@media only screen and (min-width: 1281px) {
  .container { max-width: 1280px; padding: 60px; }
}
@media only screen and (min-width: 1441px) {
  .container { max-width: 1440px; }
}
/* volle Breite, ohne seitliche Polsterung (Original .MaEUF) */
.container--bleed { max-width: none; padding-left: 0; padding-right: 0; }
/* ohne vertikale Polsterung (Original .cNuRn) */
.container--flush { padding-top: 0; padding-bottom: 0; }

.section { position: relative; z-index: 3; width: 100%; }
.section--light { background: var(--white); }
.section--dark  { background: var(--black); }

/* ==========================================================================
   Typografie der Inhaltsblöcke  (Original .dh9us / .Rjf5Z / .css-1c375l0)
   ========================================================================== */
.prose {
  width: 100%;
  padding: 20px 0;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}
.prose--flush { padding: 0; }
.prose a:hover { color: var(--text-hover); }

.prose p, .prose li { font-size: 18px; line-height: 1.6; }
.prose h1 { font-size: 48px; }
.prose h2 { font-size: 36px; }
.prose h3, .prose h4, .prose h5, .prose h6 { font-size: 24px; }
.prose ul, .prose ol { padding-left: 1.25em; }

/* Abstände entsprechen den Leerzeilen des Originals (eine Zeilenhöhe),
   sind aber echte Ränder statt leerer Absätze */
.prose p + p,
.prose p + ul, .prose p + ol,
.prose ul + p, .prose ol + p { margin-top: 1.6em; }
.prose li + li { margin-top: .4em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h1 + *, .prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }

/* Titel im „huge"-Modus (Cover-Blöcke) */
.prose--huge h1 { font-size: 64px; }

.text-center { text-align: center; }

@media only screen and (max-width: 1280px) {
  .prose p, .prose li { font-size: 16px; }
  .prose h1 { font-size: 36px; }
  .prose h2 { font-size: 24px; }
  .prose h3, .prose h4, .prose h5, .prose h6 { font-size: 18px; }
  .prose--huge h1 { font-size: 64px; }
}
@media only screen and (max-width: 800px) {
  .prose--huge h1 { font-size: 40px; }
}

/* ==========================================================================
   Kopfzeile  (Original header.foFqY / .DyyGf)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--black);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* --- Hauptnavigation (Desktop) --- */
.nav { display: flex; align-items: center; min-width: 0; margin: 0 20px; }

.nav__list { display: flex; margin: 0; padding: 0; list-style: none; }

.nav__link {
  display: flex;
  align-items: center;
  padding: 20px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}
/* Unterstreichung gleitet ein — wie im Original (.lo9Ld::after) */
.nav__label { position: relative; display: inline-block; line-height: 24px; }
.nav__label::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 1px;
  background: var(--white);
  opacity: 0;
  transform: translateY(0);
  transition: transform .2s ease-in-out, opacity .2s ease-in-out;
}
.nav__link:hover .nav__label::after,
.nav__link[aria-current="page"] .nav__label::after {
  opacity: 1;
  transform: translateY(4px);
}

/* --- rechte Kopfzeilen-Gruppe: Claim + Logo --- */
.site-header__brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin: 0 20px;
}
.site-header__brand > * + * { margin-left: 20px; }

.site-claim {
  padding: 10px 0;
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

.site-logo { display: block; flex-shrink: 0; padding: 28px 0; line-height: 0;
  transition: padding .18s ease-out; }
.site-logo img { display: block; width: 210px; height: auto;
  transition: width .18s ease-out; }

/* verkleinerter Zustand ab ca. einer Bildschirmhöhe Scrollweg */
.site-header.is-compact .site-logo { padding: 10px 0; }
.site-header.is-compact .site-logo img { width: 150px; }
.site-header.is-compact .nav__link { padding-top: 12px; padding-bottom: 12px; }
.site-header.is-compact .site-claim { font-size: 15px; }
.nav__link { transition: padding .18s ease-out; }

/* --- Umschalter für die mobile Navigation --- */
.nav-toggle {
  display: none;
  width: 56px; height: 56px;
  margin: 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle svg { display: block; margin: 0 auto; }

/* ==========================================================================
   Kopfzeile — mobil (unter 1281px: Schublade statt Leiste)
   ========================================================================== */
@media only screen and (max-width: 1280px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: block;
    margin: 0;
    padding: 0;
    background: var(--black);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease-in-out, visibility .2s;
  }
  .nav[data-open="true"] { visibility: visible; opacity: 1; }

  .nav__list { flex-direction: column; width: 100%; padding: 88px 0 40px; }
  .nav__item { display: flex; flex-direction: column; }

  .nav__link {
    justify-content: space-between;
    height: 65px;
    padding: 0 20px;
    font-size: 20px;
    line-height: 40px;
  }

  .nav__close {
    position: absolute;
    top: 14px; right: 16px;
    width: 56px; height: 56px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--white);
    cursor: pointer;
  }
  .site-header__inner { justify-content: space-between; }
  body[data-nav-open="true"] { overflow: hidden; }
}
@media only screen and (min-width: 1281px) {
  .nav__close { display: none; }
}
@media only screen and (max-width: 800px) {
  .nav__link { padding: 0 15px; }
  .site-logo img { width: 168px; }
  .site-claim { display: none; }
}

/* ==========================================================================
   Schaltflächen  (Original .iyLSG / .pSsxA)
   ========================================================================== */
.btn {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0;
  border-radius: 5px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.btn__label {
  display: block;
  width: 100%;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: inherit;
  overflow: hidden;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
  transition: background-color .2s ease-in-out;
}
/* ausgefüllt schwarz, weiße Schrift (Original .css-1fnmwxk + .vf5ZA) */
.btn--solid { background: var(--black); color: var(--white); }
.btn--solid .btn__label { border-color: transparent; }
.btn--solid:hover .btn__label { background: rgba(255, 255, 255, .12); }
/* Umriss in MainColor auf dunklem Grund (Original .css-u7q9qs + .css-16gk3by) */
.btn--outline { background: transparent; color: var(--white); }
.btn--outline .btn__label { border-color: var(--main); }
.btn--outline:hover .btn__label { background: rgba(255, 255, 255, .1); }
/* Reihe von Schaltflächen (Original .HAlWR) */
.btn-row {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
  margin: 0 -10px;
  padding-top: 10px;
}
.btn-row > * { margin: 10px; }
.btn-row--center { justify-content: center; }

/* ==========================================================================
   Bild-Bausteine

   <picture> ist von sich aus inline; ohne display:block greifen weder
   height:100% noch die Seitenverhältnis-Rahmen.
   ========================================================================== */
picture { display: block; }
picture > img { display: block; }

/* Bild füllt den Elternteil und wird beschnitten (Original .gDjC1 + object-fit) */
.cover-img { width: 100%; height: 100%; }
.cover-img > img { width: 100%; height: 100%; object-fit: cover; }

/* Bild in natürlicher Höhe */
.plain-img > img { width: 100%; height: auto; }

/* fester Seitenverhältnis-Rahmen (Original .FHs03 + .OAT9p) */
.ratio { position: relative; display: block; width: 100%; overflow: hidden; }
.ratio > picture { position: absolute; inset: 0; }

/* Weißschleier über einem Bild (Original .qTwpq + .css-1g64zgr) */
.veil { position: absolute; inset: 0; background: var(--overlay); }

/* ==========================================================================
   Block „Über uns" / Startseite  (Original .FtSxy / .vokQ5 / .emjUD)
   ========================================================================== */
.split { width: 100%; }
.split__media { width: 100%; padding: 20px 0; }
.split__text  { width: 100%; }

@media only screen and (min-width: 1281px) {
  .split { display: flex; flex-direction: row; align-items: center; }
  .split__media { align-self: flex-start; width: 50%; padding: 20px 15px 20px 0; }
  .split__text  { width: 50%; padding-left: 90px; }
}

/* ==========================================================================
   Galerie  (Original .gMjAB / .dIqOt / .kzX9Q)
   ========================================================================== */
.gallery { display: flex; flex-wrap: wrap; }
.gallery__item { position: relative; z-index: 3; width: 100%; }
@media only screen and (min-width: 700px) {
  .gallery__item { width: 50%; }
}
.gallery__cell { position: relative; padding-bottom: 52.94%; }
.gallery__inner { position: absolute; inset: 0; }
.gallery__inner > picture { height: 100%; }
/* Hintergrundfarbe je Kachel, wie im Original hinterlegt */
.gallery__item--main  .gallery__inner { background: var(--main); }
.gallery__item--black .gallery__inner { background: var(--black); }

/* ==========================================================================
   Cover-Block, zweispaltig  (Original .SRf50 / .IJYm9 / .ewwMa)
   ========================================================================== */
.cover-split {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  min-height: calc(100vh - 80px);
}
.cover-split__body { position: relative; }
.cover-split__inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.cover-split__media {
  position: relative;
  flex-grow: 1;
  width: 100%;
  min-height: 100vw;
  margin-bottom: 20px;
  overflow: hidden;
}
/* absolut gesetzt, damit das Seitenverhältnis des Bildes nicht die Höhe
   der ganzen Sektion diktiert (sonst über 1400px auf breiten Schirmen) */
.cover-split__media > picture { position: absolute; inset: 0; }

@media only screen and (min-width: 801px) {
  .cover-split { flex-direction: row-reverse; }
  .cover-split__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-end;
    justify-content: center;
    width: 50%;
  }
  .cover-split__inner { max-width: 840px; padding: 60px; }
  .cover-split__media { width: 50%; min-height: 0; margin-bottom: 0; }
}

/* ==========================================================================
   Cover-Block, Bild im Vollbild mit Text darüber
   (Original .Orxgw / .AiQWe / .PYMpN)
   ========================================================================== */
.cover-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}
.cover-hero__media { position: absolute; inset: 0; overflow: hidden; }
.cover-hero__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.cover-hero__inner {
  width: 100%;
  max-width: 810px;
  margin: auto;
  padding: 60px 30px;
}

/* ==========================================================================
   Cover-Block „Lead" 55/45  (Original .tland / .jKV_4 / .xqpCp)
   ========================================================================== */
.cover-lead { display: flex; flex-direction: column; min-height: calc(100vh - 80px); }
.cover-lead__media { position: relative; flex: 1 0 auto; height: 100vw; overflow: hidden; }
.cover-lead__body {
  position: relative;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 40px 0;
}
.cover-lead__title { padding: 0 20px; }
.cover-lead__text { padding: 0 20px; }

@media only screen and (min-width: 801px) {
  .cover-lead { flex-direction: row; }
  .cover-lead__media { flex: 0 0 55%; height: auto; }
  .cover-lead__body {
    flex: 0 0 45%;
    max-width: 45%;
    padding: 72px 0 0;
  }
  .cover-lead__title { padding: 0 60px; }
  .cover-lead__text { padding: 0 60px 60px; }
}

/* ==========================================================================
   Spalten-Block  (Original .gCSSY / .U7sZm / .utmr4)
   ========================================================================== */
.columns { display: flex; flex-wrap: wrap; margin: 20px -15px -10px; }
.column { z-index: 3; flex: 0 0 100%; padding: 0 15px 30px; }
.column > .column__card { height: 100%; }
.column__card { background: var(--white); }
.column__text { padding-top: 20px; }

@media only screen and (min-width: 532px)  { .column { flex-basis: 50%; } }
@media only screen and (min-width: 812px)  { .column { flex-basis: 33.3333%; } }
@media only screen and (min-width: 1092px) { .column { flex-basis: 25%; } }

/* ==========================================================================
   Diashow  (Original .jzvda / .QsXbB / .YT1rn)
   ========================================================================== */
.slideshow { position: relative; width: 100%; }
.slideshow__viewport { position: relative; width: 100%; }

/* flow-root schließt die 120px-Ränder der Textkarte in die Folie ein.
   Ohne das schöbe der Rand die Folie nach unten und das Hintergrundbild
   bliebe ein schmaler Streifen in der Mitte der Sektion. */
.slide { position: relative; width: 100%; display: flow-root; }
.slide[hidden] { display: none; }
.slide__media { position: absolute; inset: 0; overflow: hidden; }
/* umrandete Textkarte über dem Bild */
.slide__card {
  position: relative;
  left: calc(50% - 20px);
  z-index: 5;
  width: 100%;
  max-width: 570px;
  margin: 40px 20px 120px;
  padding: 60px 5px;
  border: 4px solid var(--text);
  transform: translateX(-50%);
}
@media only screen and (min-width: 801px) {
  .slide__card {
    left: calc(50% - 120px);
    margin: 120px;
    padding: 60px;
  }
}
.slide__inner { z-index: 1; margin: 0 auto; padding: 0 15px; }

/* Pfeile */
.slideshow__nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 20px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
}
.slideshow__nav--prev { left: 0; }
.slideshow__nav--next { right: 0; }
.slideshow__nav svg { display: block; }

/* ohne JavaScript werden alle Folien untereinander gezeigt */
.no-js .slideshow__nav { display: none; }
.no-js .slide[hidden] { display: block; }

/* ==========================================================================
   Kontaktblock  (Original .M6od6 / .QlQ3Q / .gOTfJ)
   ========================================================================== */
.contact-block { position: relative; margin-top: 10px; }
.contact-block__head { padding-bottom: 10px; }
.contact-block__grid { display: flex; flex-direction: column; gap: 30px; }
.contact-block__main, .contact-block__aside { min-width: 0; }

@media only screen and (min-width: 801px) {
  .contact-block__grid { flex-direction: row; align-items: stretch; gap: 40px; }
  .contact-block__main  { flex: 1 1 50%; }
  .contact-block__aside { flex: 1 1 50%; }
}

/* Karte mit Anschriften statt eingebetteter Google-Karte */
.address-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  height: 100%;
  padding: 40px 30px;
  background: var(--main);
  color: var(--text);
}
.address-card__item { font-size: 16px; line-height: 1.6; }
.address-card__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-weight: 600;
}
.address-card__link { color: var(--shade-1); text-decoration: underline; }
.address-card__link:hover { color: var(--text); }

/* Liste der direkten Kontaktwege */
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li + li { margin-top: 12px; }
.contact-list a {
  font-size: 18px;
  line-height: 1.6;
  text-decoration: underline;
}
.contact-list a:hover { color: var(--text-hover); }

/* ==========================================================================
   Video mit Klick-Zustimmung (lädt Vimeo erst nach ausdrücklichem Klick)
   ========================================================================== */
.video-consent { position: relative; width: 100%; }
.video-consent__frame { position: relative; padding-bottom: 56.25%; }
.video-consent__frame > picture,
.video-consent__frame > iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-consent__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  /* 0.66 statt 0.45: erst dann erreicht weißer Text auf dem hellen
     Standbild ein Kontrastverhältnis über 4,5:1 (WCAG AA) */
  background: rgba(0, 0, 0, .66);
  color: var(--white);
  text-align: center;
}
.video-consent__note { max-width: 620px; font-size: 16px; line-height: 1.6; }
.video-consent__note a { color: var(--main); text-decoration: underline; }
.video-consent__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border: 1px solid var(--main);
  border-radius: 5px;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
}
.video-consent__play:hover { background: rgba(255, 255, 255, .1); }

/* ==========================================================================
   Fußzeile  (Original footer.WbFOy / .zdVni / .Ypjwe / .L8XKw)
   ========================================================================== */
.site-footer { display: flex; flex-direction: column; align-items: center; }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.site-footer__link {
  display: inline-block;
  padding: 5px 10px;
  color: var(--white);
  font-size: 16px;
  text-decoration: underline;
}
.site-footer__link:hover { color: var(--main); }

@media only screen and (max-width: 800px) {
  .site-footer, .site-footer__row { flex-direction: column; align-items: center; }
}

/* ==========================================================================
   Rechtstext-Seiten
   ========================================================================== */
.legal .container { max-width: 900px; }
.legal .prose h1 { margin-bottom: 24px; }
.legal .prose h2 { margin: 32px 0 12px; }
.legal .prose h3 { margin: 24px 0 8px; }
.legal .prose p + p { margin-top: 16px; }
.legal .prose a { color: var(--shade-1); text-decoration: underline; }

/* deutlich sichtbarer Hinweiskasten für offene Punkte */
.notice {
  margin: 0 0 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--shade-1);
  background: var(--main);
  color: var(--text);
}
.notice p { font-size: 16px; line-height: 1.6; }
.notice p + p { margin-top: 12px; }
.notice strong { font-weight: 700; }

/* ==========================================================================
   Reduzierte Bewegung respektieren
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   Noch zu ergänzende Einzelangabe in den Rechtstexten
   ========================================================================== */
.todo {
  padding: 1px 8px;
  border: 1px dashed var(--shade-1);
  border-radius: 3px;
  background: var(--main);
  color: var(--shade-1);
  font-size: .85em;
  white-space: nowrap;
}
