/* swt-außendienst.de — RömerStrom-Look (Stadtwerke Trier)
   Primärblau #0066cc · Grün #4caf50 */
:root {
  --blue: #00468e;
  --blue-dark: #003a72;
  --blue-deep: #002c5c;
  --green: #8ab11d;
  --green-dark: #769619;
  --green-light: #f1f6e2;
  --blue-light: #e8f0f9;
  --ink: #1c2530;
  --muted: #5a6573;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 60, 130, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 60, 130, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-claim { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.header-phone { background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background .15s; }
.header-phone:hover { background: var(--blue-dark); }

/* ===== Hero ===== */
.hero { background-color: var(--blue-deep); background-size: cover; background-position: center; color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, color-mix(in srgb, var(--blue-deep) 94%, transparent) 0%, color-mix(in srgb, var(--blue-deep) 74%, transparent) 46%, color-mix(in srgb, var(--blue-deep) 30%, transparent) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.hero-sub { margin-top: 16px; font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 30em; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; border: 0; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(67,160,71,.35); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-block { width: 100%; }

/* Berater-Karte */
.advisor-card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; display: flex; gap: 16px; align-items: center; }
.advisor-photo { width: 84px; height: 84px; border-radius: 50%; flex: 0 0 auto; background: linear-gradient(135deg, var(--blue-light), #d6e6f7); background-size: cover; background-position: center; border: 3px solid var(--blue-light); position: relative; }
.advisor-photo:not(.has-photo)::after { content: "👤"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: .5; }
.advisor-body { display: flex; flex-direction: column; }
.advisor-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.advisor-name { font-size: 1.25rem; font-weight: 800; }
.advisor-phone { color: var(--blue); font-weight: 700; text-decoration: none; margin: 2px 0; }
.advisor-note { font-size: .8rem; color: var(--muted); }

/* ===== Trust ===== */
.trust { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0; text-align: center; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { color: var(--blue); font-size: 1.15rem; }
.trust-item span { font-size: .85rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-align: center; letter-spacing: -.5px; }
.section-lead { text-align: center; color: var(--muted); margin: 10px auto 36px; max-width: 40em; font-size: 1.05rem; }

/* ===== Rechner ===== */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc-input { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--bg-alt); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.seg-btn { flex: 1 1 auto; min-width: 30%; padding: 9px 8px; border: 0; background: transparent; border-radius: 9px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--muted); transition: all .15s; white-space: nowrap; }
.seg-btn.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; font-style: normal; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 1rem; font-family: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.12); }
.input-suffix { position: relative; }
.input-suffix em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; font-size: .9rem; }
.input-suffix input { padding-right: 64px; }
.hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 6px; }

.quick { margin: -6px 0 18px; }
.quick-label { font-size: .82rem; color: var(--muted); }
.quick-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.quick-btns button { flex: 1; min-width: 64px; padding: 9px 6px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.quick-btns button:hover { border-color: var(--blue); color: var(--blue); }

/* Ergebnis */
.calc-result { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.result-head { border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 14px; margin-bottom: 16px; }
.result-tarif { display: block; font-weight: 800; font-size: 1.1rem; }
.result-sub { font-size: .85rem; color: rgba(255,255,255,.8); }
.result-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.result-month { font-size: 3rem; font-weight: 800; line-height: 1; }
.result-month-unit { font-size: 1rem; color: rgba(255,255,255,.85); }
.result-rows { list-style: none; margin: 16px 0; }
.result-rows li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .92rem; }
.result-rows span { color: rgba(255,255,255,.82); }
.result-saving { background: var(--green); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.result-saving span { font-weight: 600; }
.result-saving strong { font-size: 1.4rem; font-weight: 800; }
.result-disclaimer { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: 14px; }

/* ===== Formular ===== */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 3px; }
.check a { color: var(--blue); }
.form-status { text-align: center; margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.form-status.success { color: var(--green); }
.form-status.error { color: #d32f2f; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 24px 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { text-decoration: none; color: rgba(255,255,255,.75); }
.footer-inner a:hover { color: #fff; }

.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ===== Akzent-Button (Online-Abschluss) ===== */
.btn-accent { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0,60,130,.3); }
.btn-accent:hover { background: var(--blue-dark); }

/* ===== Regions-/Marken-Auswahl ===== */
.chooser { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(160deg, #f4f7fb 0%, #e6eef7 100%); }
.chooser-inner { width: min(680px, 100%); text-align: center; }
.chooser-eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--blue); margin-bottom: 18px; }
.chooser-title { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.5px; }
.chooser-sub { color: var(--muted); margin: 12px auto 30px; max-width: 34em; }
.chooser-grid { display: grid; gap: 14px; }
.region-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 18px 22px; cursor: pointer; text-align: left; transition: border-color .15s, transform .12s, box-shadow .15s; }
.region-card:hover { border-color: var(--card-accent); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,60,130,.12); }
.region-card-logo { width: 120px; height: 56px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.region-card-logo img { max-width: 100%; max-height: 56px; width: auto; object-fit: contain; }
.region-card-body { flex: 1; display: flex; flex-direction: column; }
.region-card-name { font-weight: 800; font-size: 1.1rem; }
.region-card-regions { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.region-card-arrow { font-size: 1.5rem; color: var(--card-accent); font-weight: 700; }

/* Region-Wechsel-Button unter Hero */
.region-switch { margin-top: 20px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.region-switch:hover { background: rgba(255,255,255,.26); }

/* ===== Doppel-CTA (Rückruf vs. Online) ===== */
.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto 28px; }
.dual-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dual-card-accent { border-color: var(--green); }
.dual-icon { font-size: 2rem; }
.dual-card h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.dual-card p { color: var(--muted); font-size: .9rem; margin-bottom: 18px; flex: 1; }
.form-title { text-align: center; font-size: 1.1rem; margin-bottom: 18px; color: var(--muted); }
.result-note { background: rgba(255,255,255,.14); border-radius: 10px; padding: 12px 14px; font-size: .85rem; margin: 12px 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .advisor-card { order: -1; }
  .calc { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .dual-cta { grid-template-columns: 1fr; }
  .region-card-logo { width: 90px; }
}
