/* Allgemeine Korrekturen am Webflow-Layout, auf allen Website-Seiten eingebunden */

/* Blog-Karten: gleich breite Spalten, einheitliches Bildformat, gleich hohe Karten
   (vorher richteten sich die Spaltenbreiten nach der Titellänge, Bilder standen versetzt) */
.collection-list.w-dyn-items:has(> .collection-item .link-block-4){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:28px 24px!important;align-items:stretch}
.collection-list.w-dyn-items:has(> .collection-item .link-block-4) > .collection-item{min-width:0;width:auto!important;display:flex}
.collection-item > .link-block-4{width:100%!important;height:100%}
.link-block-4 .div-block-707{width:100%!important;height:auto!important;aspect-ratio:16/10;overflow:hidden;flex:none}
.link-block-4 img.image-34{width:100%!important;height:100%!important;max-width:none;object-fit:cover;object-position:center 35%;display:block}
@media (max-width:991px){.collection-list.w-dyn-items:has(> .collection-item .link-block-4){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:600px){.collection-list.w-dyn-items:has(> .collection-item .link-block-4){grid-template-columns:1fr!important;gap:20px!important}}
/* Blogartikel aus build/blog_build.py: Muster zum Kopieren und Tabellen (die Webflow-Artikel hatten beides nicht) */
.blog-content .bmuster{margin:28px 0;padding:18px 22px 20px;border:1px solid #E4E7EF;border-radius:12px;background:#FAFBFD}
.blog-content .bmuster-t{margin:0 0 12px!important;font-size:13px!important;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#5B6478}
.blog-content .bmuster-text p{margin:0 0 12px!important;font-size:16px;line-height:1.6;color:#1B1F2B}
.blog-content .bmuster-text p:last-child{margin-bottom:0!important}
.blog-content{min-width:0}
.blog-content,.text-block-139{overflow-wrap:break-word}
.blog-content h2,.blog-content h3{hyphens:auto;-webkit-hyphens:auto}
.blog-content .btable{width:100%;max-width:100%;margin:24px 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.blog-content table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}
.blog-content th,.blog-content td{padding:10px 12px;border-bottom:1px solid #E4E7EF;text-align:left;vertical-align:top}
.blog-content th{background:#F5F7FC;font-weight:600;color:#1B1F2B}
@media (max-width:600px){.blog-content table{font-size:14px;min-width:520px}}
/* Blog-Übersicht: Abstand zwischen letzter Kartenreihe und Footer (vorher 0 px, Karten stießen an den Footer) */
.div-block-718{padding-bottom:96px}
@media (max-width:600px){.div-block-718{padding-bottom:56px}}

/* ── Landingpage-Hero: Titel passen immer in ihre Spalte ─────────────────────────
   Die Titelgröße richtet sich nach der Spaltenbreite und nach --lw, der Breite des
   längsten Wortes im Titel (in em, Schrift im Titel gemessen). Lange Wörter wie
   „Wohnungsbewerbung“ oder „Mieterselbstauskunft“ liefen vorher ins Bild bzw. aus dem
   Bildschirm. --lw steht am <h1> (style="--lw:…"); ohne Angabe gilt der Standard.
   Der blaue Begriff im Titel ist .text-span-5 (wie auf der Generator-Seite).            */
.heading-copy-lp,.heading-11{text-wrap:balance;overflow-wrap:break-word}
.heading-copy-lp{--lw:11.2;width:100%;max-width:100%;font-size:min(55px,calc(46vw / var(--lw)));line-height:1.12}
.heading-11{--lw:5.2;font-size:min(70px,calc(38vw / var(--lw)));line-height:1.08}
.heading-copy-lp .text-span-5,.heading-11 .text-span-5{color:#3d69ff}
.heading-10{line-height:1.5}

/* FAQ-Fragen: umbrechen statt aus dem Kasten laufen (Webflow setzt nowrap) */
.dropdown-toggle-2{white-space:normal}
.dropdown-toggle-2 .heading-5,.dropdown-toggle-2 .heading-6,.dropdown-toggle-2 .heading-7,.dropdown-toggle-2 .heading-8{line-height:1.4}

/* CTA-Zeile im Vorlagen-Hero: Hinweis rutscht unter den Button, wenn der Platz fehlt */
.div-block-656{flex-wrap:wrap;row-gap:14px}
.div-block-656 .button-26{flex:0 1 350px;width:auto;max-width:100%;min-width:0}
.div-block-656 .div-block-676{flex:1 1 180px;min-width:180px;justify-content:flex-start}

/* Kleine Tablets: Hero einspaltig wie auf dem Handy, statt Text und Bild zu quetschen */
@media (max-width:767px){
  .div-block-528,.div-block-644 > img{display:none}
  .div-block-17,.div-block-17-copy-landingpag{width:100%}
  .div-block-645{max-width:none;width:100%;height:auto;gap:28px}
  .div-block-644{height:auto;padding-top:36px;padding-bottom:36px}
  .heading-copy-lp{font-size:min(55px,calc(88vw / var(--lw)))}
  .heading-11{font-size:min(56px,calc((80vw - 18px) / var(--lw)))}
}
@media (max-width:479px){
  .heading-copy-lp{font-family:Generalsans Variable,Arial,sans-serif;font-size:min(40px,calc(88vw / var(--lw)))}
  .heading-11{font-size:min(45px,calc((80vw - 18px) / var(--lw)))}
  .div-block-656 .button-26{flex:none;width:100%}
  .div-block-656 .div-block-676{flex:none;min-width:0}
  .div-block-656 .div-block-676{justify-content:center}
}

/* ── Tablets (480–991 px) ──────────────────────────────────────────────────────────
   Webflow hat für diese Abschnitte nur Desktop- und Handy-Regeln. Dazwischen liefen
   Überschriften aus dem Bild, Karten wurden so schmal, dass Wörter mitten im Wort
   umbrachen, und Footer/Schritte-Reihe erzeugten seitliches Scrollen.              */
@media (max-width:991px){
  /* lange Wörter in schmalen Karten an Silbengrenzen trennen statt mitten im Wort */
  .text-block-108,.text-block-109,.text-block-109-csda,.text-block-120,.text-block-48-copy-neu,.text-block-48-copy-neu-copy{overflow-wrap:break-word;word-break:normal;hyphens:auto;-webkit-hyphens:auto;hyphenate-limit-chars:10 4 4}
}
@media (min-width:480px) and (max-width:991px){
  /* FAQ-Fragen und Abschnittsüberschriften auf Tablet-Maß */
  .dropdown-toggle-2 .heading-5,.dropdown-toggle-2 .heading-6,.dropdown-toggle-2 .heading-7,.dropdown-toggle-2 .heading-8{font-size:clamp(17px,3.2vw,25px);hyphens:auto;-webkit-hyphens:auto}
  .div-block-526 h2{font-size:clamp(26px,5vw,35px);line-height:1.2;text-wrap:balance;hyphens:auto;-webkit-hyphens:auto;hyphenate-limit-chars:12 5 5}
  /* dunkler „Warum …“-Block */
  .div-block-665{padding:64px 32px;gap:36px}
  .text-block-108{font-size:clamp(30px,5vw,50px);line-height:1.15;text-wrap:balance}
  .div-block-678{gap:20px}
  .div-block-677,.div-block-677-copy,.div-block-677-copy-side-2,.div-block-677-copy-cside-2{padding:28px}
  .text-block-109,.text-block-109-csda{font-size:clamp(20px,3vw,33px);line-height:1.2}
  /* CTA-Kasten unten (Vorlagen) */
  .text-block-120{font-size:clamp(26px,4vw,37px);line-height:1.15}
  /* CTA „Beginne jetzt …“ (Startseite, Unterseiten) */
  .text-block-48-copy-neu,.text-block-48-copy-neu-copy{font-size:clamp(24px,3.8vw,37px);line-height:1.25}
  .div-block-544-end-apge{gap:40px;width:86%}
}
@media (min-width:480px) and (max-width:991px){
  /* Footer: Spalten umbrechen statt aus dem Bild zu laufen */
  .div-block-553{height:auto}
  .div-block-554{padding:48px 0}
  .div-block-555{flex-wrap:wrap;gap:32px 40px;justify-content:flex-start}
  .div-block-555 > *{flex:1 1 200px;min-width:0}
  /* „In 4 Schritten“: 2 × 2 statt vier gequetschter Spalten */
  .div-block-663{display:grid;grid-template-columns:1fr 1fr;gap:32px 24px;justify-items:center}
  .div-block-671{max-width:320px;max-height:none}
  .div-block-664{max-width:220px;max-height:220px}
}
@media (min-width:480px) and (max-width:767px){
  .div-block-678{flex-direction:column}
  .div-block-677,.div-block-677-copy,.div-block-677-copy-side-2,.div-block-677-copy-cside-2{width:100%}
  .div-block-693{flex-direction:column;gap:28px;padding:40px 28px}
  .div-block-695{width:100%;align-items:center;text-align:center}
  .div-block-544-end-apge{flex-direction:column;height:auto;padding:40px 24px;gap:24px}
  .div-block-544-end-apge .image-12{width:45%}
  .div-block-550{width:100%;height:auto}
}
@media (max-width:479px){
  .text-block-108{font-size:min(30px,7.6vw)}
}

/* Startseite: „BEWERBERMAPPE“ (Versalien, extra fett) passt auch auf schmalen Geräten */
@media (max-width:767px){.heading{font-size:min(55px,calc(88vw / 9.5));line-height:1.15}}
@media (max-width:479px){.heading-2-faq-2{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}}

/* ---------------------------------------------------------------
   Blog → Generator: CTA-Box nach der Zusammenfassung, Hinweis mitten im Artikel,
   schwebender Knopf (ersetzt „ChatGPT Zusammenfassung“). Eingefügt von build/blog_cta.py.
   Feste Bildmaße → kein Layout-Springen; Bilder lazy, je 5–8 KB.
   --------------------------------------------------------------- */
.bcta{--bcta-blue:#3D69FF;--bcta-blue-h:#2C55E6;--bcta-ink:#1B1F2B;--bcta-mute:#5B6172;--bcta-line:#E4E7EF;
  display:grid;grid-template-columns:150px 1fr;gap:28px;align-items:center;margin:0 0 48px;padding:26px 30px;
  background:#F5F7FC;border:1px solid var(--bcta-line);border-radius:16px;color:var(--bcta-ink);
  font-family:"Roboto Variablefont Wdth Wght",Arial,sans-serif}
.bcta-stack{position:relative;height:178px}
.bcta-stack img{position:absolute;width:104px;height:147px;border-radius:4px;background:#fff;
  box-shadow:0 1px 2px rgba(27,31,43,.08),0 6px 18px rgba(27,31,43,.12)}
.bcta-stack img:nth-child(1){left:0;top:20px;transform:rotate(-6deg)}
.bcta-stack img:nth-child(2){left:42px;top:16px;transform:rotate(5deg)}
.bcta-stack img:nth-child(3){left:20px;top:6px}
.bcta-eyebrow{margin:0 0 6px;font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--bcta-blue)}
.bcta-h{margin:0 0 12px;font-size:22px;line-height:1.3;font-weight:700;color:var(--bcta-ink)}
.bcta-list{margin:0 0 18px;padding:0;list-style:none;display:grid;gap:6px}
.bcta-list li{position:relative;padding-left:24px;font-size:16px;line-height:1.45;color:#292929}
.bcta-list li::before{content:"";position:absolute;left:2px;top:5px;width:11px;height:6px;border:solid var(--bcta-blue);border-width:0 0 2px 2px;transform:rotate(-45deg)}
.bcta-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.bcta-btn{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 22px;border-radius:10px;background:#3D69FF;
  color:#fff!important;font-size:16px;font-weight:600;text-decoration:none!important;transition:background .15s}
.bcta-btn:hover{background:#2C55E6}
.bcta-btn:focus-visible,.bcta-float:focus-visible{outline:3px solid rgba(61,105,255,.35);outline-offset:2px}
.bcta-btn svg{width:18px;height:18px}
.bcta-note{font-size:14px;color:var(--bcta-mute)}
/* Hinweis mitten im Artikel (steht im Fließtext, Abstände wie ein Absatz) */
.blog-content .bcta-inline,.bcta-inline{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;
  margin:36px 0;padding:18px 22px;border-left:3px solid #3D69FF;background:#F5F7FC;border-radius:0 12px 12px 0}
.bcta-inline p{margin:0!important;flex:1 1 260px;font-size:17px;line-height:1.5;color:#1B1F2B}
.bcta-inline .bcta-btn{height:44px;padding:0 18px;font-size:15px;flex:none}
/* Schwebender Knopf */
.bcta-float{position:fixed;right:24px;bottom:24px;z-index:50;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 20px;
  border-radius:999px;background:#3D69FF;color:#fff!important;font:600 15px/1 "Roboto Variablefont Wdth Wght",Arial,sans-serif;
  text-decoration:none!important;box-shadow:0 6px 20px rgba(61,105,255,.35);transition:background .15s,opacity .2s,transform .2s}
.bcta-float:hover{background:#2C55E6}
.bcta-float svg{width:18px;height:18px}
.bcta-float.is-hidden{opacity:0;transform:translateY(12px);pointer-events:none}
@media (max-width:767px){
  .bcta{grid-template-columns:1fr;gap:18px;padding:22px 20px;margin-bottom:36px}
  .bcta-stack{height:132px;width:150px;margin:0 auto}
  .bcta-stack img{width:78px;height:110px}
  .bcta-stack img:nth-child(2){left:52px}
  .bcta-stack img:nth-child(3){left:26px}
  .bcta-h{font-size:20px}
  .bcta-btn{width:100%;justify-content:center}
  .bcta-inline{padding:16px 18px}
  .bcta-inline .bcta-btn{width:100%;justify-content:center}
  .bcta-float{left:16px;right:16px;bottom:calc(14px + env(safe-area-inset-bottom));justify-content:center}
}
@media (prefers-reduced-motion:reduce){.bcta-float{transition:none}}

/* Blog: Titel ist seit build/blog_seo.py ein echtes <h1> (vorher div). Webflow-h1-Abstände neutralisieren,
   damit die Optik gleich bleibt; Autorzeile unauffällig verlinkt. */
h1.text-block-136{margin:0;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
/* lange Wörter wie „Mietschuldenfreiheitsbescheinigung“ sprengten auf dem Handy die Seitenbreite */
.text-block-129{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
.bseo-by a{color:inherit;text-decoration:none;border-bottom:1px solid currentColor}
.bseo-by a:hover{color:#1B1F2B}
.bseo-rel{margin:40px 0 24px;padding:20px 24px;border:1px solid #E4E7EF;border-radius:12px;background:#F5F7FC}
.blog-content .bseo-rel-t{margin:0 0 8px;font-weight:600;font-size:18px;color:#1B1F2B}
.blog-content .bseo-rel ul{margin:0;padding-left:20px}
.blog-content .bseo-rel li{margin:4px 0}
