/* AMG Gebäudedienste – Grundstil
   Farben aus Logo und Arbeitskleidung: Blau, Rot als Akzent, Schwarz für Text */
:root {
  --blau: #0069A8;
  --blau-dunkel: #00507F;
  --blau-hell: #E3F1FA;
  --blau-logo: #0088C6;
  --rot: #D62839;
  --text: #121417;
  --text-2: #3D4B56;
  --text-3: #55646F;
  --rand: #E2E8E5;
  --grund: #F5F7F6;
  --weiss: #FFFFFF;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: Figtree, system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }
h1, h2, h3 { font-family: Manrope, sans-serif; margin: 0; line-height: 1.2; }
h1 { font-weight: 800; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-weight: 800; font-size: clamp(25px, 2.5vw, 32px); }
h3 { font-weight: 800; font-size: 22px; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.bg-weiss { background: var(--weiss); }
.bg-hell { background: var(--blau-hell); }
.eyebrow { color: var(--blau); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.muted { color: var(--text-2); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.pill { align-self: flex-start; background: var(--blau-hell); color: #00578C; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.pill-rot { background: var(--rot); color: #fff; font-weight: 700; }
.streifen { display: flex; flex-direction: column; }
.streifen span:first-child { height: 2px; background: var(--rot); }
.streifen span:last-child { height: 3px; background: var(--blau-logo); }

/* Knöpfe */
.btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-blau { background: var(--blau); color: #fff; }
.btn-blau:hover { background: var(--blau-dunkel); color: #fff; }
.btn-rand { background: #fff; color: var(--blau); border-color: var(--blau); }
.btn-weiss { background: #fff; color: var(--blau); }
.btn-klein { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--blau); font-weight: 700; cursor: pointer; min-height: 44px; text-align: left; }

/* Kopf */
.kopf { background: #fff; position: sticky; top: 0; z-index: 20; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.kopf .logo img { height: 46px; width: auto; }
.kopf nav { display: flex; gap: 32px; font-weight: 500; font-size: 15px; }
.kopf nav a { color: var(--text-2); text-decoration: none; }
.kopf nav a:hover { color: var(--text); }
.kopf .aktionen { display: flex; gap: 8px; align-items: center; }
.tel-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; min-height: 44px; padding: 0 8px; }
@media (max-width: 900px) { .kopf nav { display: none; } }
@media (max-width: 520px) { .tel-text { display: none; } .kopf .logo img { height: 38px; } }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero .text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 560px; }
.hero .bild { flex: 1 1 420px; min-width: 0; height: 460px; border-radius: 20px; object-fit: cover; object-position: 50% 58%; width: 100%; }
.slogan { font-family: Manrope, sans-serif; font-weight: 700; font-size: 17px; color: var(--blau); display: flex; align-items: center; gap: 10px; }
.slogan::before { content: ""; width: 28px; height: 3px; background: var(--rot); border-radius: 2px; }

/* Vertrauensleiste */
.vertrauen .wrap { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-top: 32px; padding-bottom: 32px; }
.vertrauen .item { display: flex; gap: 14px; align-items: center; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--blau); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vertrauen strong { font-family: Manrope, sans-serif; font-size: 18px; display: block; line-height: 1.3; }
.vertrauen small { color: var(--text-2); font-size: 14px; }

/* Karten */
.karte { background: #fff; border: 1px solid var(--rand); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.karte .inhalt { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.karte .inhalt.klein { padding: 22px; gap: 6px; }
.karte ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.karte .mehr { margin-top: auto; }
.gross { flex: 1 1 460px; min-width: 0; }
.bildbox { position: relative; height: 240px; overflow: hidden; }
.bildbox img { width: 100%; height: 100%; object-fit: cover; }
.vn { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 240px; background: #fff; }
.vn.klein { height: 190px; }
.vn > div { position: relative; overflow: hidden; }
.vn img { width: 100%; height: 100%; object-fit: cover; }
.label { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--text); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.label.blau { background: var(--blau); color: #fff; }
.label.rechts { left: auto; right: 10px; }
.label.unten { top: auto; bottom: 10px; }
figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
figure .vn { border-radius: 14px; overflow: hidden; height: 180px; }
figcaption { font-weight: 600; font-size: 15px; }

/* Ablauf */
.schritt { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.nummer { width: 44px; height: 44px; border-radius: 999px; background: var(--blau); color: #fff; font-family: Manrope, sans-serif; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.nummer.rot { background: var(--rot); }

/* Haken-Listen */
.haken { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.haken li { display: flex; gap: 10px; }
.haken li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230069A8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain; }
.haken.zeile { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; font-weight: 500; }

/* Jobs */
.jobs-box { background: var(--blau); color: #fff; border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.jobs-box .text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.jobs-box p { color: var(--blau-hell); }
.jobs-box .vorteile { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.jobs-box .vorteile div { background: rgba(255,255,255,0.12); border-radius: 12px; padding: 14px 16px; }
.jobs-box .vorteile span { color: var(--blau-hell); font-size: 15px; }
.jobs-box img { flex: 1 1 320px; min-width: 0; height: 340px; width: 100%; object-fit: cover; object-position: 50% 62%; border-radius: 16px; }
.btn-rand-weiss { color: #fff; border-color: rgba(255,255,255,0.7); background: transparent; }

/* Kontakt */
.kontakt-box { background: var(--grund); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 340px; min-width: 0; }
.kontakt-zeile { display: flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; font-weight: 600; min-height: 44px; }
.kontakt-zeile .icon-box { width: 42px; height: 42px; background: var(--blau-hell); }

/* Fuß */
.fuss { background: var(--blau); color: var(--blau-hell); font-size: 15px; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss .spalten { display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; padding-top: 48px; }
.fuss .spalte { display: flex; flex-direction: column; gap: 8px; }
.fuss strong { color: #fff; font-family: Manrope, sans-serif; }
.fuss .logo-pill { align-self: flex-start; background: #fff; border-radius: 12px; padding: 10px 14px; }
.fuss .logo-pill img { height: 40px; width: auto; }
.fuss .social { display: flex; gap: 10px; }
.fuss .social a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; }
.fuss .unten { border-top: 1px solid rgba(255,255,255,0.25); margin-top: 32px; padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #CFE6F5; }

/* Dialog / Formular-Ablauf */
.dialog-hg { position: fixed; inset: 0; z-index: 50; background: rgba(18,20,23,0.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.dialog-hg.offen { display: flex; }
.dialog { width: 100%; max-width: 560px; max-height: 100%; background: #fff; border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.dialog-kopf { padding: 16px 16px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-kopf .titel { font-family: Manrope, sans-serif; font-weight: 800; font-size: 17px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: #F2F5F7; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.icon-btn.leer { background: transparent; }
.fortschritt { margin: 14px 20px 0; height: 4px; background: #E3E8EC; border-radius: 4px; overflow: hidden; }
.fortschritt div { height: 4px; background: var(--blau); width: 25%; transition: width .3s ease; }
.dialog-inhalt { padding: 22px 20px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.dialog-fuss { padding: 12px 20px 18px; border-top: 1px solid #E3E8EC; display: flex; flex-direction: column; gap: 8px; }
.schritt-panel { display: none; flex-direction: column; gap: 18px; }
.schritt-panel.aktiv { display: flex; }
.frage { display: flex; flex-direction: column; gap: 8px; }
.frage > span { font-weight: 700; font-size: 15px; }
.frage > span small { font-weight: 500; color: var(--text-3); font-size: 14px; }
.chips { display: grid; gap: 8px; }
.chips.s2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.chips.s3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.chips.s4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.chips.s6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.chips.s7 { grid-template-columns: repeat(7, minmax(0,1fr)); }
.chip { font: inherit; font-weight: 700; font-size: 14px; line-height: 1.15; height: 50px; padding: 0 6px; border-radius: 12px; border: 1.5px solid #CBD3DA; background: #fff; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; }
.chip[aria-pressed="true"] { background: var(--blau); border-color: var(--blau); color: #fff; }
.chip.check { justify-content: flex-start; gap: 10px; padding: 0 12px; text-align: left; font-size: 15px; font-weight: 600; }
.chip.check::before { content: ""; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #CBD3DA; flex-shrink: 0; box-sizing: border-box; }
.chip.check[aria-pressed="true"] { background: var(--blau-hell); color: var(--text); border-color: var(--blau); }
.chip.check[aria-pressed="true"]::before { border-color: var(--blau); background: var(--blau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 13px; }
.chip.gross { height: 120px; flex-direction: column; gap: 4px; }
.chip.gross small { font-weight: 500; color: var(--text-3); font-size: 13px; }
.chip.gross[aria-pressed="true"] small { color: #E3F1FA; }
.feld { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.feld input, .feld textarea, .eingabe { font: inherit; font-size: 16px; font-weight: 400; height: 50px; padding: 0 14px; border: 1.5px solid #CBD3DA; border-radius: 12px; width: 100%; background: #fff; }
.feld textarea { height: auto; padding: 12px 14px; resize: vertical; }
.feld input:focus, .feld textarea:focus, .eingabe:focus, .chip:focus-visible, .btn:focus-visible { outline: 3px solid #8CC8EC; outline-offset: 1px; }
.einheit { position: relative; }
.einheit input { padding-right: 48px; }
.einheit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 600; }
.zustimmung { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid #DCE2E7; border-radius: 12px; padding: 12px; cursor: pointer; font-size: 13px; color: #2E3E49; font-weight: 400; }
.zustimmung.fehler { border-color: var(--rot); }
.zustimmung input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--blau); }
.fehlertext { color: #B3192C; font-size: 14px; font-weight: 600; min-height: 0; }
.fehlertext:empty { display: none; }
.danke { padding: 28px 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.danke .kreis { width: 80px; height: 80px; border-radius: 999px; background: var(--blau); color: #fff; display: flex; align-items: center; justify-content: center; }
.versteckt { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Handy-Feinschliff */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero .wrap { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .hero .bild { height: 300px; }
  .kopf .btn-klein { padding: 0 14px; white-space: nowrap; }
  .kopf .btn-klein .lang { display: none; }
  .jobs-box { padding: 26px 20px; }
  .jobs-box img { height: 240px; }
  .bildbox, .vn { height: 200px; }
}
@media (min-width: 641px) { .kopf .btn-klein .kurz { display: none; } }
.feld small { display: inline; }

/* Fix Handy: Kaestchen duerfen nie ueberlaufen */
.chip { min-width: 0; height: auto; min-height: 50px; padding-top: 8px; padding-bottom: 8px; overflow-wrap: anywhere; hyphens: auto; }
.chip.gross { min-height: 120px; }
@media (max-width: 480px) { .chips.s2:has(.chip.check) { grid-template-columns: 1fr; } .chip.check { min-height: 48px; } }