/* ============================================================
   Pfalz Mobility GmbH – zentrales Stylesheet
   Farben abgeleitet aus dem Firmenlogo:
   Marineblau #042142, Grün #359826
   ============================================================ */

:root {
  --navy: #042142;
  --navy-light: #0a3a6e;
  --navy-soft: #eef2f7;
  --green: #359826;
  --green-dark: #256d19; /* dunklere Variante für Text auf Weiß (Kontrast) */
  --text: #1c2733;
  --text-muted: #4a5866;
  --white: #ffffff;
  --border: #d8dfe7;
  --error: #b3261e;
  --success-bg: #e8f4e5;
  --error-bg: #fbeae9;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(4, 33, 66, 0.08);
  --maxw: 1120px;
}

/* ---------- Basis ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-light);
}

a:hover {
  color: var(--green-dark);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

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

section {
  padding: 4.5rem 0;
}

.section-intro {
  max-width: 46rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.accent-line {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--green));
  margin: 0.9rem 0 1.1rem;
}

/* ---------- Hilfsklassen ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip-Link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* ---------- Header / Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand img {
  width: 220px;
  height: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

.btn-green {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-green:hover {
  background: var(--green);
  border-color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--navy);
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* Mobile Navigation (JS blendet Menü aus, ohne JS bleibt es sichtbar) */
@media (max-width: 1000px) {
  .brand img {
    width: 180px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .js .site-nav[hidden] {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }

  .site-nav li {
    border-bottom: 1px solid var(--navy-soft);
  }

  .site-nav li:last-child {
    border-bottom: none;
    padding-top: 0.9rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: none;
  }

  .site-nav .btn {
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--white) 100%);
  padding: 4.5rem 0 3.5rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy p {
  margin: 1.1rem 0 1.8rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-art {
  min-width: 0;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-art {
    max-width: 30rem;
  }
}

/* ---------- Karten (Leistungen / Werte) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

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

.card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.section-alt {
  background: var(--navy-soft);
}

@media (max-width: 860px) {
  .card-grid,
  .card-grid.four {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Über uns ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-grid p + p {
  margin-top: 1rem;
}

.keyfacts {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.keyfacts li {
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  color: var(--text-muted);
}

.keyfacts strong {
  color: var(--navy);
  display: block;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- Kompetenz (Checkliste + Illustration) ---------- */

.check-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.check-list strong {
  color: var(--navy);
}

/* ---------- Dunkle Sektion (Wachstum) ---------- */

.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, #06294f 100%);
}

.section-dark h2 {
  color: var(--white);
}

.section-dark p {
  color: #cdd8e4;
}

.section-dark .accent-line {
  background: linear-gradient(90deg, var(--green), #8fd07f);
}

.growth-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.growth-grid p {
  max-width: 34rem;
}

.growth-grid .btn-green {
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .growth-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .growth-art {
    max-width: 24rem;
  }
}

/* ---------- Kontakt / Formular ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-info address {
  font-style: normal;
  margin: 1rem 0 1.5rem;
  color: var(--text-muted);
}

.contact-info address strong {
  color: var(--navy);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

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

label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.required-hint {
  color: var(--text-muted);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

input:focus,
textarea:focus {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green-dark);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.9rem 0 1.2rem;
}

/* Honeypot: für Menschen unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Meldungen (kontakt.php) ---------- */

.notice {
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.notice-success {
  background: var(--success-bg);
  border-color: var(--green);
}

.notice-error {
  background: var(--error-bg);
  border-color: var(--error);
}

.notice h2 {
  margin-bottom: 0.5rem;
}

.notice ul {
  margin: 0.5rem 0 0 1.25rem;
}

.page-simple {
  min-height: 55vh;
  padding: 3.5rem 0;
}

/* ---------- Unterseiten (Impressum / Datenschutz / 404) ---------- */

.legal-page {
  padding: 3.5rem 0 4.5rem;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.legal-page h3 {
  margin-top: 1.4rem;
}

.legal-page p,
.legal-page ul {
  margin-top: 0.7rem;
  max-width: 50rem;
}

.legal-page ul {
  padding-left: 1.4rem;
}

.legal-page address {
  font-style: normal;
  margin-top: 0.7rem;
}

.placeholder {
  background: #fff3cd;
  border: 1px dashed #b38600;
  color: #6a5100;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.check-note {
  background: var(--navy-soft);
  border-left: 4px solid var(--navy);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #cdd8e4;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer .footer-logo {
  width: 200px;
  background: var(--white);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  color: #e6eef6;
}

.site-footer a:hover {
  color: #8fd07f;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}
