/* MeinTankbuch.de – Öffentliches Design */
:root {
  --brand: #0B5C78;
  --brand-600: #0A5069;
  --brand-800: #073D52;
  --brand-50: #E6F2F8;
  --brand-100: #CFE8F5;
  --accent: #7FD0F0;
  --bg: #F5F9FC;
  --surface: #FFFFFF;
  --surface-2: #EEF3F7;
  --text: #13232C;
  --muted: #56666F;
  --line: #DCE5EB;
  --ok: #1B7F4B;
  --ok-bg: #E5F5EC;
  --err: #B3261E;
  --err-bg: #FCEAE8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 40, 55, .06), 0 8px 24px rgba(10, 40, 55, .08);
  --shadow-lg: 0 30px 60px -20px rgba(4, 30, 45, .45);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-50: #10303D;
    --brand-100: #16404F;
    --bg: #0E1519;
    --surface: #152027;
    --surface-2: #1A2830;
    --text: #E6EEF2;
    --muted: #9AABB4;
    --line: #26363F;
    --ok: #7FD8A6;
    --ok-bg: #133325;
    --err: #FFB4AB;
    --err-bg: #3B1714;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ic { flex: none; vertical-align: middle; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn small { display: block; font-size: .7rem; font-weight: 500; opacity: .85; }
.btn span { text-align: left; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(11, 92, 120, .6); }
.btn-primary:hover { background: var(--brand-600); }
.btn-light { background: #fff; color: var(--brand-800); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); }
@media (prefers-color-scheme: dark) { .btn-outline { color: var(--text); } .btn-primary { background: #1781A6; } }
.btn.is-disabled { opacity: .7; cursor: default; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 10px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .97rem; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current] { background: var(--surface-2); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; border-radius: 10px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { padding: 12px; }
}

/* Hero */
.hero { background: linear-gradient(135deg, #0D6585 0%, var(--brand) 45%, #063448 100%); color: #fff; overflow: hidden; position: relative; margin-top: -1px; }
.hero::after { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; background: radial-gradient(circle, rgba(127, 208, 240, .28), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.hero h1 { margin-top: 18px; }
.lead { font-size: 1.15rem; opacity: .92; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; opacity: .9; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { color: var(--accent); }
.hero-visual { position: relative; height: 560px; }
.phone { background: #0B1418; border-radius: 34px; padding: 8px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); aspect-ratio: 540 / 1080; width: 100%; }
.phone img { border-radius: 27px; width: 100%; height: 100%; object-fit: cover; }
.hero-visual .phone { position: absolute; width: 250px; }
.phone-front { left: 50%; top: 10px; transform: translateX(-62%) rotate(-3deg); z-index: 2; }
.phone-back { left: 50%; top: 50px; transform: translateX(8%) rotate(5deg); opacity: .9; }
.hero-badge { position: absolute; z-index: 3; left: 4%; bottom: 40px; background: #fff; color: var(--text); border-radius: 16px; padding: 12px 18px; box-shadow: var(--shadow-lg); }
.hero-badge span { display: block; font-size: .8rem; color: #56666F; }
.hero-badge strong { font-size: 1.35rem; color: #13232C; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-visual { height: 440px; }
  .hero-visual .phone { width: 200px; }
  .hero-badge { left: 0; bottom: 10px; }
}

/* Steps */
.steps-section { background: var(--surface); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.step-no { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
@media (prefers-color-scheme: dark) { .step-no { color: var(--accent); } }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 16px; } }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.kicker.light { color: var(--accent); }
.kicker a { color: inherit; text-decoration: none; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--accent); } }
@media (max-width: 760px) { .section { padding: 60px 0; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-100); color: var(--brand); margin-bottom: 16px; }
@media (prefers-color-scheme: dark) { .feature-icon { color: var(--accent); } }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Spotlights */
.spotlight { padding: 56px 0; }
.spotlight:nth-of-type(even) { background: var(--surface); }
.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spotlight.reverse .spotlight-media { order: 2; }
.spotlight-media { display: flex; justify-content: center; position: relative; }
.spotlight-media::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--brand-100); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.spotlight-media .phone { width: 270px; position: relative; }
.spotlight-text p { color: var(--muted); font-size: 1.07rem; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 500; }
.checklist .ic { color: var(--ok); }
@media (max-width: 860px) {
  .spotlight-grid { grid-template-columns: 1fr; gap: 32px; }
  .spotlight.reverse .spotlight-media { order: 0; }
  .spotlight-media .phone { width: 220px; }
  .spotlight-media::before { width: 280px; height: 280px; }
}

/* Gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 24px; scrollbar-width: thin; }
.shot { flex: none; width: 240px; margin: 0; scroll-snap-align: center; text-align: center; }
.shot a { display: block; border-radius: 26px; overflow: hidden; border: 6px solid #0B1418; box-shadow: var(--shadow); transition: transform .2s; }
.shot a:hover { transform: translateY(-4px); }
.shot figcaption { margin-top: 12px; font-weight: 600; font-size: .95rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 15, 20, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; flex-direction: column; gap: 14px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 24px; }
.lightbox p { color: #fff; margin: 0; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 1.6rem; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* Tester CTA */
.tester-cta { background: linear-gradient(135deg, var(--brand) 0%, #063448 100%); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; box-shadow: var(--shadow-lg); }
.tester-cta p { opacity: .92; max-width: 60ch; }
@media (max-width: 760px) { .tester-cta { grid-template-columns: 1fr; padding: 32px 24px; } }
.progress { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; margin-top: 18px; max-width: 480px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), #fff); border-radius: inherit; }
.progress-text { font-size: .95rem; margin: 8px 0 0; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.news-list { display: grid; gap: 18px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.news-card h2, .news-card h3 { font-size: 1.2rem; }
.news-card h2 a, .news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--brand); }
.news-card p { color: var(--muted); margin-bottom: .6em; }
.news-meta { font-size: .85rem; }
.tag { display: inline-block; background: var(--brand-100); color: var(--brand); padding: 1px 10px; border-radius: 999px; font-weight: 600; font-size: .8rem; }
@media (prefers-color-scheme: dark) { .tag { color: var(--accent); } }
.more { font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; margin-bottom: 28px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 22px 8px; color: var(--muted); }
.faq-answer ul { padding-left: 1.2em; }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, #0D6585, #063448); color: #fff; text-align: center; padding: 80px 0; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-inner img { border-radius: 18px; margin-bottom: 20px; box-shadow: var(--shadow-lg); }
.final-inner p { opacity: .9; margin-bottom: 26px; }

/* Unterseiten */
.page-hero { background: linear-gradient(135deg, #0D6585, var(--brand) 50%, #063448); color: #fff; padding: 64px 0 56px; }
.page-hero.small { padding: 48px 0 40px; }
.page-hero .lead { max-width: 60ch; }
.page-hero .progress-text { opacity: .95; }
.muted-light { opacity: .8; margin: 0; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card.success .ic { color: var(--ok); margin-bottom: 8px; }
.card.center { text-align: center; }
.card.center .ic { margin: 0 auto 12px; }
.timeline { list-style: none; counter-reset: s; padding: 0; margin: 0 0 28px; }
.timeline li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.timeline li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.timeline li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; }
.timeline span { color: var(--muted); }
.info-box { display: flex; gap: 14px; background: var(--brand-50); border-radius: var(--radius-sm); padding: 18px; font-size: .93rem; }
.info-box p { margin: 0; }
.info-box .ic { color: var(--brand); }

/* Formulare */
.form h2 { font-size: 1.4rem; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
input, select, textarea { font: inherit; font-size: 1rem; width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
[aria-invalid="true"] { border-color: var(--err); }
textarea { resize: vertical; }
.field.check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.field.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.hint { color: var(--muted); font-size: .85rem; }
.field-error { color: var(--err); font-size: .88rem; font-weight: 500; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.alert.error { background: var(--err-bg); color: var(--err); }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Prosa (Rechtstexte, News) */
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose p, .prose li { overflow-wrap: anywhere; }

.big-404 { font-size: 7rem; font-weight: 900; color: var(--brand-100); margin: 0; line-height: 1; }

/* Footer */
.site-footer { background: #071E28; color: #B9CBD4; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #DCE8EE; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.site-footer .muted { color: #8199A5; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
