/* =====================================================
   Tankwerk Prono — style.css
   Design: geometric_structured (geometric, structured, angular, precise)
   Mobile-first, ONLY flexbox layouts, high contrast, accessible
   ===================================================== */

/* --------------------
   CSS RESET / NORMALIZE
   -------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0 0 0 1.25rem; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #0F6A43; outline-offset: 2px; }

/* --------------------
   ROOT TOKENS
   -------------------- */
:root {
  /* Brand */
  --color-primary: #0A2E4E; /* deep petrol */
  --color-secondary: #0F6A43; /* green */
  --color-accent: #F4F7FA; /* light surface */
  --color-surface: #FFFFFF;
  --color-text: #0A2E4E;
  --color-muted: #385572;
  --color-border: #D9E3EC;
  --shadow-sm: 0 1px 2px rgba(10,46,78,0.08), 0 2px 6px rgba(10,46,78,0.06);
  --shadow-md: 0 6px 16px rgba(10,46,78,0.12);

  /* Spacing scale (8/16/24/32) */
  --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-20: 20px; --s-24: 24px; --s-30: 30px; --s-32: 32px; --s-40: 40px; --s-48: 48px; --s-60: 60px; --s-80: 80px;
}

/* --------------------
   BASE
   -------------------- */
body {
  background: var(--color-accent);
  color: var(--color-text);
  font-family: Verdana, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
  color: var(--color-primary);
  letter-spacing: 0.3px; /* angular, precise */
}

h1 { font-size: 36px; line-height: 1.2; }
h2 { font-size: 28px; line-height: 1.3; margin-bottom: var(--s-16); }
h3 { font-size: 20px; line-height: 1.35; margin-bottom: var(--s-8); }

p, li, address { font-size: 16px; color: var(--color-text); }
small, .note { font-size: 14px; color: var(--color-muted); }

strong { font-weight: 700; }

a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* --------------------
   LAYOUT CONTAINERS (FLEX ONLY)
   -------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-20);
  display: flex; /* center wrapper */
  justify-content: center;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column; /* mobile-first */
  gap: var(--s-24);
}

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); border-radius: 4px; padding: var(--s-20); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Prevent overlap across all flexible blocks */
section { margin-bottom: var(--s-60); }

/* --------------------
   HEADER
   -------------------- */
header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
header .content-wrapper { padding: var(--s-16) 0; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-16); }

.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.primary-nav { display: none; /* mobile hidden */ }
.primary-nav a { margin: 0 var(--s-12); color: var(--color-primary); text-decoration: none; font-weight: 600; letter-spacing: 0.2px; padding: 8px 6px; border-bottom: 2px solid transparent; }
.primary-nav a[aria-current="page"], .primary-nav a:hover { border-bottom-color: var(--color-secondary); color: var(--color-secondary); }

.header-ctas { display: flex; align-items: center; gap: var(--s-12); }

/* --------------------
   MOBILE NAVIGATION
   -------------------- */
.mobile-menu-toggle {
  position: fixed; right: 16px; top: 16px; z-index: 120; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
  background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm);
}
.mobile-menu-toggle:hover { filter: brightness(1.05); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110; background: rgba(10,46,78,0.08);
  display: flex; justify-content: flex-start; align-items: stretch; transform: translateX(-100%);
  transition: transform 300ms ease, background 300ms ease; pointer-events: none;
}
.mobile-menu[aria-hidden="false"], .mobile-menu.open { transform: translateX(0); pointer-events: auto; }

.mobile-nav { width: 86vw; max-width: 420px; background: var(--color-surface); border-right: 1px solid var(--color-border); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 4px; padding: var(--s-32) var(--s-20) var(--s-20); }
.mobile-nav a { display: flex; align-items: center; padding: 14px 10px; border: 1px solid transparent; border-radius: 4px; color: var(--color-primary); font-weight: 700; text-decoration: none; }
.mobile-nav a:hover { border-color: var(--color-border); background: var(--color-accent); }
.mobile-nav a[aria-current="page"] { border-color: var(--color-secondary); color: var(--color-secondary); }

.mobile-menu-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--color-primary); border: 1px solid var(--color-border); border-radius: 6px; }
.mobile-menu-close:hover { filter: brightness(0.98); }

/* --------------------
   HERO (geometric accents)
   -------------------- */
.hero { position: relative; background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.hero .content-wrapper { padding: var(--s-40) 0; }
.hero::before {
  content: ""; position: absolute; inset: auto auto 0 0; width: 100%; height: 44px; background: var(--color-accent);
  clip-path: polygon(0 0, 100% 100%, 0 100%); /* angular geometric edge */
}
.eyebrow { text-transform: uppercase; letter-spacing: 1.6px; color: var(--color-secondary); font-weight: 800; font-size: 12px; }
.subheadline { color: var(--color-muted); max-width: 70ch; }
.tagline { color: var(--color-secondary); font-weight: 700; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-12); align-items: center; }

.badges { display: flex; flex-direction: column; gap: var(--s-12); }
.badge, .trust-badges span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-accent); color: var(--color-primary); }
.trust-badges { display: flex; flex-wrap: wrap; gap: var(--s-12); }
.badge img, .trust-badges img { width: 18px; height: 18px; }

/* --------------------
   GENERIC CONTENT
   -------------------- */
.text-section { display: flex; flex-direction: column; gap: var(--s-8); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; box-shadow: var(--shadow-sm); padding: var(--s-20); }

ul { display: block; padding-left: 1.25rem; }

/* USP list with square markers (geometric) */
.usp-list { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.usp-list li { position: relative; padding-left: 24px; }
.usp-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; background: var(--color-secondary); transform: rotate(45deg); }

.payment-icons { display: flex; align-items: center; gap: var(--s-16); }
.payment-icons img { width: 36px; height: 24px; object-fit: contain; filter: saturate(0.9); }

.route-links, .cta-row { display: flex; flex-wrap: wrap; gap: var(--s-12); align-items: center; }

.rating-summary, .press { font-weight: 700; color: var(--color-primary); }

/* Testimonials — ensure readable dark text on light background */
.testimonial-card { background: var(--color-accent); border: 1px solid var(--color-border); border-left: 4px solid var(--color-secondary); border-radius: 4px; box-shadow: var(--shadow-sm); color: var(--color-text); }
.testimonial-card p { margin: 0; }

/* Notes / disclaimers */
.note { background: #FAFCFF; border: 1px dashed var(--color-border); padding: 8px 10px; border-radius: 4px; }

/* --------------------
   BUTTONS (angular, precise)
   -------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 4px; border: 2px solid transparent; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 800; transition: transform 140ms ease, box-shadow 200ms ease, filter 120ms ease; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--color-secondary); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); box-shadow: var(--shadow-sm); }

.btn-secondary { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-accent); }

/* Inline icon images inside text lines */
p img[alt] { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* --------------------
   FORMS (if any appear later)
   -------------------- */
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-surface); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-secondary); }

/* --------------------
   SECTIONS — PAGE-SPECIFIC ADJUSTMENTS
   -------------------- */
#preise .text-section ul { display: flex; flex-direction: column; gap: 6px; }

/* Address blocks */
address { font-style: normal; display: flex; flex-direction: column; gap: 8px; }
address p { display: flex; align-items: center; gap: 8px; }

/* --------------------
   FOOTER
   -------------------- */
footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: var(--s-32) 0; }
footer .content-wrapper { gap: var(--s-24); }
.footer-primary, .footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-12); }
.footer-primary a, .footer-legal a { color: var(--color-primary); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.footer-primary a[aria-current="page"], .footer-legal a[aria-current="page"],
.footer-primary a:hover, .footer-legal a:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
footer address { color: var(--color-muted); }
footer .brand { display: flex; flex-direction: column; gap: 8px; }
footer .brand img { height: 30px; }
.footer-ctas { display: flex; flex-wrap: wrap; gap: var(--s-12); }

/* Copyright line */
.copyright { color: var(--color-muted); font-size: 14px; }

/* --------------------
   COOKIE CONSENT (banner + modal)
   -------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
  display: flex; justify-content: center; align-items: center;
  background: rgba(10,46,78,0.06); transform: translateY(100%);
  transition: transform 300ms ease;
}
.cookie-banner.open { transform: translateY(0); }
.cookie-banner .cookie-inner {
  width: 100%; max-width: 1200px; margin: var(--s-12); padding: var(--s-16);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: var(--s-12);
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--s-12); }
.cookie-btn { padding: 10px 14px; border-radius: 4px; border: 2px solid transparent; text-transform: uppercase; font-weight: 800; }
.cookie-btn.accept { background: var(--color-secondary); color: #fff; }
.cookie-btn.reject { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.cookie-btn.settings { background: var(--color-accent); color: var(--color-primary); border-color: var(--color-border); }
.cookie-btn:hover { filter: brightness(1.04); }

/* Cookie modal overlay */
.cookie-modal { position: fixed; inset: 0; z-index: 140; display: none; justify-content: center; align-items: flex-end; }
.cookie-modal.open { display: flex; }
.cookie-backdrop { position: absolute; inset: 0; background: rgba(10,46,78,0.44); }
.cookie-panel {
  position: relative; width: 100%; max-width: 640px; margin: 0 auto; background: var(--color-surface);
  border-radius: 8px 8px 0 0; border: 1px solid var(--color-border); box-shadow: var(--shadow-md);
  padding: var(--s-20); display: flex; flex-direction: column; gap: var(--s-16);
  transform: translateY(16px); transition: transform 260ms ease;
}
.cookie-modal.open .cookie-panel { transform: translateY(0); }
.cookie-cats { display: flex; flex-direction: column; gap: var(--s-12); }
.cookie-cat { display: flex; justify-content: space-between; align-items: center; gap: var(--s-12); padding: 10px; border: 1px solid var(--color-border); border-radius: 4px; background: var(--color-accent); }
.cookie-toggle { width: 48px; height: 28px; border-radius: 14px; background: #c7d6e5; position: relative; }
.cookie-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: left 200ms ease, background 200ms ease; }
.cookie-toggle.on { background: var(--color-secondary); }
.cookie-toggle.on::after { left: 23px; }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: var(--s-12); justify-content: flex-end; }

/* --------------------
   UTILITIES
   -------------------- */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.max-w-readable { max-width: 72ch; }

/* --------------------
   RESPONSIVE (mobile-first)
   -------------------- */
@media (min-width: 480px) {
  h1 { font-size: 40px; }
}

@media (min-width: 768px) {
  /* Show desktop nav, hide burger */
  .primary-nav { display: flex; align-items: center; flex-wrap: wrap; }
  .mobile-menu-toggle { display: none; }

  .text-image-section { flex-direction: row; }

  .badges { flex-direction: row; }
}

@media (min-width: 992px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }

  /* More structured, horizontal distribution */
  main .content-wrapper { gap: var(--s-32); }
}

/* --------------------
   ACCESSIBILITY / PREFERS REDUCED MOTION
   -------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --------------------
   PAGE-SPECIFIC SMALL ENHANCEMENTS
   -------------------- */
.hero .badge { align-self: flex-start; }

/* Geometric dividers for section headings */
h2 { position: relative; padding-left: 16px; }
h2::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 20px; background: var(--color-secondary); transform: skewX(-10deg); }

/* Links inside paragraph rows */
.route-links a, .mobile-nav a, .footer-primary a, .footer-legal a { text-decoration: none; }

/* Ensure minimum space between cards/sections */
.text-section + .text-section,
.testimonial-card + .testimonial-card { margin-top: var(--s-20); }

/* --------------------
   CARDS HOVER (micro-interactions)
   -------------------- */
.card:hover, .text-section:hover, .testimonial-card:hover { box-shadow: var(--shadow-md); }

/* --------------------
   ARIA current inside any nav (fallback)
   -------------------- */
nav a[aria-current="page"] { color: var(--color-secondary); }
