/* ==========================================================================
   Saffamove – Stylesheet
   Mobile First. Farbpalette aus dem Logo.
   ========================================================================== */

:root {
  --color-primary: #00B4CC;
  --color-primary-light: #00CCD8;
  /* Abgedunkelte Cyan-Variante für Text/Links auf hellem Grund (WCAG AA, 4.5:1+).
     --color-primary selbst schafft auf Weiß nur ~2.5:1 und darf dort nie für
     Text/Linien verwendet werden, die etwas transportieren. */
  --color-primary-text: #00778A;
  --color-dark: #0A2540;
  --color-dark-alt: #0E3358;
  --color-white: #FFFFFF;

  --color-text: #17242a;
  --color-text-muted: #55707A;
  --color-border: #e0e6ec;
  --color-bg-soft: #f2f6fa;

  --color-success: #0F7A4B;
  --color-error: #B3261E;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 12px;
  --radius-btn: 14px;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.16);

  --max-width: 1120px;

  /* Verhindert, dass Browser/OS im Dark-Mode Formularfelder automatisch
     umfärben (heller Text auf hellem Feld). Diese Seite ist bewusst hell. */
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.icon-phone {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

h1, h2, h3, h4 {
  font-family: var(--font-base);
  color: var(--color-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); text-align: center; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
  color: var(--color-primary-text);
  text-decoration: none;
}
a:hover { color: var(--color-primary); text-decoration: underline; }

/* Auf dunklem Grund (dunkle Sektionen) ist die helle Cyan-Variante die
   richtige Wahl (dort >5:1 Kontrast); Header/Hero/Footer setzen ihre
   Link-Farben gezielt selbst (siehe .brand, .header-phone, .footer-col a). */
.section-dark a,
.card-on-dark a {
  color: var(--color-primary-light);
}
.section-dark a:hover,
.card-on-dark a:hover {
  color: var(--color-white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

/* Dunkler Text statt Weiß: Weiß auf #00B4CC läge nur bei ~2,5:1 Kontrast
   (WCAG AA verlangt 4,5:1). Dunkler Text auf Cyan schafft >6:1. */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-dark);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--color-primary-light); color: var(--color-dark); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}
.btn-secondary:hover { background: transparent; color: var(--color-white); }

.btn-outline {
  background: transparent;
  color: var(--color-primary-text);
  border-color: var(--color-primary-text);
}
.btn-outline:hover { background: var(--color-primary-text); color: var(--color-white); }

.btn-large { padding: 1rem 2rem; font-size: 1.05rem; width: 100%; }
@media (min-width: 560px) {
  .btn-large { width: auto; }
}

.btn-small { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

.btn-text {
  background: none;
  border: none;
  color: var(--color-error);
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.btn-text:hover { text-decoration: underline; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-dark);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
}
.brand:hover { text-decoration: none; }

.brand-logo { height: 34px; width: auto; }

.brand-name {
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  display: none;
}
@media (min-width: 420px) {
  .brand-name { display: inline; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.header-phone:hover { color: var(--color-primary); text-decoration: none; }

.header-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.header-whatsapp:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.header-whatsapp .icon-social { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .header-phone span:last-child { display: none; }
  .header-phone { font-size: 1.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-alt) 100%);
  color: var(--color-white);
  padding: 3rem 0 3.5rem;
  text-align: center;
}

.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-logo {
  width: 90px;
  height: auto;
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.4em;
}

.hero-claim {
  max-width: 640px;
  font-size: 1.05rem;
  color: #dceef6;
}

.hero-tagline {
  font-weight: 700;
  color: var(--color-primary-light);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.hero-highlight {
  background: rgba(0, 180, 204, 0.15);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-btn);
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--color-white);
  margin-bottom: 2rem;
  display: inline-block;
  max-width: 90%;
}
.hero-highlight strong { color: var(--color-primary-light); font-size: 1.3em; }

.hero-phone-line {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.75rem;
}
.hero-phone-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary-light);
}
.hero-phone-line a:hover { color: var(--color-white); }

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
}
@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; max-width: none; justify-content: center; align-items: stretch; }
}

/* Alle drei Hero-CTAs teilen sich Größe/Form. WhatsApp und "Angebot
   anfordern" sind zurückhaltender (Rahmen statt Fläche), "Anrufen" ist als
   wichtigster CTA voll gefüllt und etwas breiter.
   Hover-Farbe ist bewusst --color-primary-text (#00778A) statt dem hellen
   Marken-Cyan (#00B4CC): Weißer Text auf #00B4CC läge nur bei ~2,5:1
   Kontrast (WCAG AA verlangt 4,5:1). Auf #00778A sind es ~5,4:1. */
.btn-hero-cta {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  width: 100%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-hero-cta:hover {
  background: var(--color-primary-text);
  border-color: var(--color-primary-text);
  color: var(--color-white);
}
@media (min-width: 560px) {
  .btn-hero-cta { width: auto; flex: 1; }
}

.btn-hero-cta--primary {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}
.btn-hero-cta--primary:hover {
  background: var(--color-primary-text);
  border-color: var(--color-primary-text);
  color: var(--color-white);
}
@media (min-width: 560px) {
  .btn-hero-cta--primary { flex: 1.3; }
}

/* ---------- Sections ---------- */
.section {
  padding: 3.5rem 0;
}

.section-dark {
  background: var(--color-dark);
  color: #e6f0f7;
}
.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-soft {
  background: var(--color-bg-soft);
}

.section-intro {
  text-align: center;
  max-width: 620px;
  margin: -0.5rem auto 2rem;
  color: var(--color-text-muted);
}
.section-dark .section-intro { color: #b8d2e0; }

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.two-col { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card-on-dark {
  background: var(--color-dark-alt);
  border: 1px solid rgba(0, 180, 204, 0.25);
  color: #dceef6;
}
.card-on-dark h3 { color: var(--color-primary-light); }

.tagline-small {
  font-weight: 700;
  color: var(--color-primary-light);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.check-list li {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: 0.5em;
}
.check-list li::before {
  content: "✓";
  color: var(--color-primary-text);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ---------- Beispielrechnung ---------- */
.example-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-bg-soft);
  border: 2px solid var(--color-primary-text);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.example-headline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
}

.example-sub { font-weight: 600; margin-bottom: 0.5em; }

.example-list {
  text-align: left;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  padding-left: 1.25rem;
}
.example-list li { margin-bottom: 0.4em; }

.example-result {
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.example-rate {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 0.5em;
}
.example-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-top: 0.5em;
}

.example-disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ---------- Formular ---------- */
.request-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) {
  .request-form { padding: 2.5rem; }
}

fieldset {
  border: none;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 0.5rem;
  margin: 0 0 1rem;
}
fieldset:first-of-type { border-top: none; padding-top: 0; }

legend {
  color: var(--color-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 0 1rem;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field { margin-bottom: 1rem; }

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35em;
  font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #c6d2da;
  background: var(--color-white);
  color: #0A2540;
  font-family: inherit;
  font-size: 1rem;
}
input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

textarea { resize: vertical; }

.highlight-field {
  background: rgba(0, 180, 204, 0.08);
  border: 1px solid var(--color-primary-text);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.field-hint {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary-text);
  margin: 0.5em 0 0;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--color-bg-soft);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.checkbox-field input { width: auto; margin-top: 0.3em; }
.checkbox-field label { font-weight: 400; font-size: 0.9rem; color: var(--color-text); margin-bottom: 0; }
.checkbox-field a { color: var(--color-primary-text); font-weight: 600; }

.fahrzeug-item {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.fahrzeug-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

#submit-btn { display: flex; margin: 0 auto; }

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  min-height: 1.5em;
}
.form-status.success { color: var(--color-success); }
.form-status.error { color: var(--color-error); }

/* Honeypot: visuell versteckt, aber für Screenreader/Bots vorhanden */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #b8d2e0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 1.25rem 2rem;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

.footer-logo { height: 40px; margin-bottom: 0.5rem; }

.brand-name-footer {
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.3em;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9em;
}
.footer-col a { color: #b8d2e0; }
.footer-col a:hover { color: var(--color-primary-light); }
.footer-col p { margin-bottom: 0.5em; }

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(184, 210, 224, 0.35);
  color: #b8d2e0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.social-icons a:hover {
  color: var(--color-dark);
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}
.icon-social { width: 20px; height: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Sticky Kontakt-Leiste (mobil): Anrufen + WhatsApp ---------- */
.sticky-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--color-primary);
}

.sticky-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  text-align: center;
}
.sticky-call:hover { color: var(--color-dark); text-decoration: none; background: var(--color-primary-light); }

.sticky-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  background: var(--color-primary-light);
  color: var(--color-dark);
  border-left: 1px solid rgba(10, 37, 64, 0.15);
}
.sticky-whatsapp:hover { background: var(--color-white); }
.sticky-whatsapp .icon-social { width: 26px; height: 26px; }

@media (min-width: 900px) {
  .sticky-bar { display: none; }
}

/* Platz für den Sticky-Button auf Mobil, damit nichts verdeckt wird */
@media (max-width: 899px) {
  body { padding-bottom: 60px; }
}

/* ---------- Sehr kleine Screens (iPhone SE & Co., ~375px und schmaler) ---------- */
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .example-card { padding: 1.25rem; }
  .request-form { padding: 1.1rem; }
  .hero { padding: 2.25rem 0 2.75rem; }
  .hero-highlight { font-size: 1rem; padding: 0.65rem 1.1rem; }
  .btn-large { font-size: 0.95rem; padding: 0.85rem 1.25rem; }
  .footer-inner { padding: 2.5rem 1rem 1.5rem; }
}
