/* KFZ-Sachverständiger Papic — Hauptstylesheet
   Farben/Schriften/Motive aus dem Bestand (U-001: keine Identitätsänderung).
   Bereich: Layout, Typo, Komponenten, Responsive. Kein externes CSS. */

/* ── Fonts ── */
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/poppins-400-latin.woff2') format('woff2'), url('../fonts/poppins-400-latin-ext.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/poppins-500-latin.woff2') format('woff2'), url('../fonts/poppins-500-latin-ext.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/poppins-600-latin.woff2') format('woff2'), url('../fonts/poppins-600-latin-ext.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/poppins-700-latin.woff2') format('woff2'), url('../fonts/poppins-700-latin-ext.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Figtree'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/figtree-400-latin.woff2') format('woff2'), url('../fonts/figtree-400-latin-ext.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Figtree'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/figtree-500-latin.woff2') format('woff2'), url('../fonts/figtree-500-latin-ext.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Figtree'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/figtree-600-latin.woff2') format('woff2'), url('../fonts/figtree-600-latin-ext.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Figtree'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/figtree-700-latin.woff2') format('woff2'), url('../fonts/figtree-700-latin-ext.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ── Tokens ── */
:root {
  --gold: #dfc787;
  --gold-hover: #e8d398;
  --gold-deep: #81602f;
  --dark: #2b2b2b;
  --text: #3a3a3a;
  --muted: #757575;
  --white: #ffffff;
  --bg-light: #efefef;
  --bg-lighter: #f4f4f4;
  --bg-hero: #1a1a1a;
  --border: #e0e0e0;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--white); overflow-x: hidden; }
img, picture, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--dark); }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }
.img-fluid { width: 100%; height: auto; border-radius: var(--radius); }

/* ── Skip-Link ── */
.skip { position: absolute; left: -9999px; top: 0; padding: 0.75rem 1rem; background: var(--dark); color: var(--white); z-index: 9999; border-radius: 0 0 var(--radius) 0; font-size: 0.875rem; }
.skip:focus { left: 0; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--dark); text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 4px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--dark); margin: 4px 0; transition: 0.3s; border-radius: 2px; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: 1.25rem; list-style: none; }
.nav a { color: var(--dark); font-family: var(--font-body); font-weight: 500; font-size: 0.9375rem; padding: 0.5rem 0; position: relative; }
.nav a:hover, .nav a:focus { color: var(--gold-deep); }
.nav a[aria-current="page"] { color: var(--gold-deep); border-bottom: 2px solid var(--gold); }
.nav .dropdown { position: relative; }
.nav .dropdown > a::after { content: '▾'; font-size: 0.625rem; margin-left: 0.25rem; }
.nav .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: var(--radius); min-width: 220px; padding: 0.5rem 0; }
.nav .dropdown:hover .dropdown-menu, .nav .dropdown:focus-within .dropdown-menu { display: block; }
.nav .dropdown-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; }
.nav .dropdown-menu a:hover { background: var(--bg-light); }
.nav .btn-gold { margin-left: 1rem; padding: 0.625rem 2rem; white-space: nowrap; }

/* ── Buttons ── */
.btn-gold, .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: all 0.2s; min-height: 44px; }
.btn-gold { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-hover); color: var(--dark); }
.btn-gold:active { background: var(--gold-deep); color: var(--white); }
.btn-gold:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; border-radius: var(--radius); border: 2px solid var(--gold); background: transparent; color: var(--gold-deep); text-decoration: none; transition: all 0.2s; min-height: 44px; cursor: pointer; }
.btn-outline:hover, .btn-outline:focus { background: var(--gold); color: var(--dark); }
.btn-outline:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

/* ── Hero ── */
.hero { position: relative; color: var(--white); text-align: center; padding: 6rem 0 5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.5) 100%); }
.hero h1 { color: var(--white); font-size: 2.75rem; font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; max-width: 700px; margin: 0 auto 2rem; color: rgba(255,255,255,0.9); }
.hero .btn-gold { font-size: 1.0625rem; padding: 0.875rem 2rem; }

/* ── Trust Badges ── */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 2.5rem 0; background: var(--bg-light); }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 220px; }
.badge .icon { width: 48px; height: 48px; margin-bottom: 0.75rem; color: var(--gold-deep); }
.badge h3 { font-size: 1rem; font-weight: 600; color: var(--dark); }
.badge a { font-size: 0.875rem; text-decoration: underline; }

/* ── Sections ── */
.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: 1.875rem; font-weight: 700; color: var(--dark); }
.section-heading p { margin-top: 0.5rem; color: var(--muted); font-size: 1.0625rem; }
.gold-line { width: 60px; height: 3px; background: var(--gold); margin: 0.75rem auto 0; border-radius: 2px; }

/* ── Cards Grid ── */
.cards-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.service-card { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; text-align: center; box-shadow: var(--shadow); transition: box-shadow 0.2s, border-color 0.2s; }
.service-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); }
.service-card .icon { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--gold-deep); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1rem; flex-grow: 1; }
.service-card .btn-gold { margin-top: 0.5rem; padding: 0.75rem 2rem; }

/* ── Split / Two-Column ── */
.split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ── Steps Grid ── */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 3.5rem; background: var(--bg-lighter); border-radius: var(--radius); border-left: 3px solid var(--gold); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1rem; top: 1.5rem; width: 28px; height: 28px; background: var(--gold); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; }
.step h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.step p { font-size: 0.9375rem; color: var(--muted); }

/* ── Rights List ── */
.rights-list { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.right-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem; background: var(--bg-lighter); border-radius: var(--radius); }
.right-item .icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--gold-deep); margin-top: 2px; }
.right-item h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.right-item p { font-size: 0.875rem; color: var(--muted); }

/* ── Trust Box ── */
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.trust-box { background: var(--bg-lighter); border-radius: var(--radius-lg); padding: 2rem; text-align: center; }
.trust-box .icon { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--gold-deep); }
.trust-box h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.trust-box p { color: var(--muted); font-size: 0.9375rem; }

/* ── Tip Box ── */
.tip { background: #faf6ef; border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.tip strong { color: var(--gold-deep); font-family: var(--font-head); }

/* ── Contact Section (form + manual) ── */
.contact-section { background: var(--dark); color: var(--white); padding: 4rem 0; }
.contact-section .section-heading h2 { color: var(--white); }
.contact-section .gold-line { background: var(--gold); }
.contact-section .section-heading p { color: rgba(255,255,255,0.75); }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
.contact-form { background: var(--white); border-top: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 2rem; color: var(--text); box-shadow: var(--shadow-lg); }
.contact-form h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.875rem; margin-bottom: 0.375rem; color: var(--dark); }
.form-group label .req { color: #d32f2f; margin-left: 0.125rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; min-height: 44px; box-sizing: border-box; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(223, 199, 135, 0.3); outline: none; }
.form-group input[aria-invalid="true"], .form-group select[aria-invalid="true"], .form-group textarea[aria-invalid="true"] { border-color: #d32f2f; }
.form-group .error-msg { color: #d32f2f; font-size: 0.8125rem; margin-top: 0.25rem; display: none; }
.form-group input[aria-invalid="true"] ~ .error-msg, .form-group select[aria-invalid="true"] ~ .error-msg, .form-group textarea[aria-invalid="true"] ~ .error-msg { display: block; }
.form-check { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 1.25rem; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 0.1875rem; flex-shrink: 0; accent-color: var(--gold-deep); cursor: pointer; }
.form-check label { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.form-check label a { color: var(--gold-deep); text-decoration: underline; }
.form-success { display: none; background: #e8f5e9; border: 1px solid #388e3c; border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; color: #1b5e20; font-weight: 500; }
.form-error { display: none; background: #fdecea; border: 1px solid #d32f2f; border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; color: #b71c1c; font-size: 0.9375rem; }
.form-error.show { display: block; }
.form-error a { color: #b71c1c; text-decoration: underline; }
.form-success.show { display: block; }
.contact-form .btn-gold { width: 100%; justify-content: center; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.5rem; }
.contact-info-card h3 { color: var(--gold); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-info-card p, .contact-info-card a { color: rgba(255,255,255,0.9); font-size: 1rem; line-height: 1.7; text-decoration: none; }
.contact-info-card a:hover { color: var(--gold); }
.contact-info-card .icon { width: 24px; height: 24px; color: var(--gold); margin-bottom: 0.5rem; }
.contact-details .contact-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.85rem; }
.contact-list li + li { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.9rem; }
.contact-list .icon { width: 22px; height: 22px; flex: none; color: var(--gold); margin: 2px 0 0; }
.contact-list strong { display: block; color: var(--white); font-weight: 600; font-size: 0.9375rem; }
.contact-list span, .contact-list span a { color: rgba(255,255,255,0.9); font-size: 0.9375rem; line-height: 1.6; text-decoration: none; }
.contact-list span a:hover { color: var(--gold); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); aspect-ratio: 4 / 3; min-height: 260px; }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
/* legacy contact-block for subpages */
.contact-block { background: var(--dark); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-item h3 { color: var(--gold); font-size: 1.0625rem; font-weight: 600; }
.contact-item a, .contact-item span { color: var(--white); font-size: 1.0625rem; }
.contact-item a:hover { color: var(--gold); }

/* ── Footer ── */
.site-footer { background: #1a1a1a; color: var(--muted); padding: 2rem 0; text-align: center; font-size: 0.875rem; }
.site-footer a { color: var(--muted); margin: 0 0.5rem; }
.site-footer a:hover { color: var(--gold); }
.footer-links { margin-bottom: 0.5rem; }

/* ── Legal Pages ── */
.prose-legal { max-width: 800px; margin: 0 auto; }
.prose-legal h1 { font-size: 1.875rem; margin-bottom: 1.5rem; }
.prose-legal h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; color: var(--dark); }
.prose-legal p { margin-bottom: 0.75rem; line-height: 1.7; }
.prose-legal address { font-style: normal; line-height: 1.7; }

/* ── Page Hero (subpages) ── */
.page-hero { position: relative; color: var(--white); text-align: center; padding: 5rem 0 4rem; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.45) 100%); }
.page-hero h1 { color: var(--white); font-size: 2.25rem; font-weight: 700; }
.page-hero p { font-size: 1.0625rem; color: rgba(255,255,255,0.9); margin-top: 0.5rem; }

/* ── Content ── */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--dark); }
.prose h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; color: var(--dark); }
.prose p { margin-bottom: 1rem; line-height: 1.7; }
.prose ul.bullets { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul.bullets li { margin-bottom: 0.5rem; line-height: 1.6; }

/* ── Responsive ── */
@media (min-width: 768px) {
  .rights-list { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.75rem; }
  .page-hero h1 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .step { padding: 1.25rem 1rem 1.25rem 2.75rem; }
  .step::before { left: 0.75rem; top: 1.25rem; }
}

@media (min-width: 1280px) {
  .rights-list { grid-template-columns: 1fr 1fr 1fr; }
}

/* ── Mobile Nav ── */
@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px; height: 100vh; background: var(--white); flex-direction: column; align-items: flex-start; padding: 4rem 1.5rem 2rem; box-shadow: -4px 0 24px rgba(0,0,0,0.15); overflow-y: auto; transition: right 0.3s ease; z-index: 200; }
  .nav.open { right: 0; }
  .nav ul { flex-direction: column; width: 100%; gap: 0; }
  .nav ul li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav ul li a { display: block; padding: 1rem 0; font-size: 1.0625rem; }
  .nav .dropdown-menu { position: static; display: block; box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: auto; }
  .nav .btn-gold { margin-top: 1rem; margin-left: 0; width: 100%; justify-content: center; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; }
  .nav-overlay.open { display: block; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
