/* VignetteKlar — austriamotorway.digital */
:root {
  --primary: #1a3a5c;
  --accent: #e8a020;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1e2a38;
  --muted: #6c757d;
  --border: #dee2e6;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --font: 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; height: auto; }

/* TOPNAV */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 0; list-style: none; }
.main-nav a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 0.5rem 0.9rem; border-radius: var(--radius); font-size: 0.93rem; transition: background 0.2s, color 0.2s; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.12); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: #fff; font-size: 1.5rem; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #2a5a8c 100%); color: #fff; padding: 5rem 1.5rem; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; opacity: 0.9; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.75rem 2rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 1rem; transition: opacity 0.2s, transform 0.2s; border: none; cursor: pointer; }
.btn:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; margin-left: 1rem; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--surface); }
h2.section-title { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--primary); margin-bottom: 0.5rem; }
.section-sub { color: var(--muted); margin-bottom: 2.5rem; font-size: 1.05rem; }

/* FACT PANELS */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.fact-panel { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.fact-panel h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.05rem; }
.fact-panel p { font-size: 0.95rem; color: var(--text); }

/* TABLES */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th { background: var(--primary); color: #fff; padding: 0.75rem 1rem; text-align: left; }
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: #f1f5f9; }
tr:hover td { background: #e8f0fe; }

/* CHECKLIST */
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.5rem 0 0.5rem 2rem; position: relative; border-bottom: 1px solid var(--border); }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* DETAILS / FAQ */
details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; background: var(--surface); }
summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; font-size: 1.3rem; color: var(--accent); }
details[open] summary::after { content: '−'; }
details > *:not(summary) { padding: 0 1.25rem 1rem; }

/* REVIEWS */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.review-card .stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 0.5rem; }
.review-card .reviewer { font-weight: 700; margin-top: 1rem; font-size: 0.9rem; color: var(--primary); }
.review-card .reviewer-loc { font-size: 0.85rem; color: var(--muted); }
.review-avatar { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 0.75rem; }

/* PROCESS STEPS */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
.step-num { counter-increment: step; background: var(--primary); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.step-body h3 { color: var(--primary); margin-bottom: 0.4rem; }

/* ASIDE */
aside.info-box { background: #e8f0fe; border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
aside.warn-box { background: #fff3cd; border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }

/* RELATED LINKS */
.related-links { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.related-links h4 { color: var(--primary); margin-bottom: 0.75rem; }
.related-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.related-links a { background: #e8f0fe; color: var(--primary); padding: 0.3rem 0.75rem; border-radius: 20px; text-decoration: none; font-size: 0.9rem; }
.related-links a:hover { background: var(--primary); color: #fff; }

/* FORM */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--primary); }
input, textarea, select { width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font); font-size: 1rem; background: var(--surface); color: var(--text); transition: border-color 0.2s; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; gap: 0.75rem; align-items: flex-start; }
.form-check input[type=checkbox] { width: auto; margin-top: 3px; }
.form-error { color: #c0392b; font-size: 0.85rem; margin-top: 0.25rem; display: none; }

/* FOOTER */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.8); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem; text-align: center; font-size: 0.85rem; }

/* COOKIE BANNER */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1e2a38; color: #fff; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; z-index: 9999; box-shadow: 0 -2px 8px rgba(0,0,0,0.3); }
#cookie-banner p { font-size: 0.9rem; margin: 0; flex: 1; }
#cookie-accept { background: var(--accent); color: #fff; border: none; padding: 0.5rem 1.25rem; border-radius: var(--radius); cursor: pointer; font-weight: 600; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 0.75rem 0; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 0.4rem; }

/* DL */
dl.glossary dt { font-weight: 700; color: var(--primary); margin-top: 1rem; }
dl.glossary dd { margin-left: 1.5rem; color: var(--text); font-size: 0.95rem; }

/* TIMELINE */
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline li { padding: 0 0 1.5rem 3.5rem; position: relative; }
.timeline li::before { content: counter(tl); counter-increment: tl; position: absolute; left: 0; top: 0; width: 36px; height: 36px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.timeline { counter-reset: tl; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 1rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 1rem; }
  .hero { padding: 3rem 1rem; }
  .btn-outline { margin-left: 0; margin-top: 0.75rem; }
  .step { flex-direction: column; }
}
