:root {
  --color-primary: #111111; 
  --color-primary-hover: #ffb84d;
  --color-accent: #374151;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #666666;
  --color-border: #e5e5e5;

  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --radius: 16px;
}



/* Basis */
* { box-sizing: border-box; transition: all 0.2s ease; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
img { max-width: 100%; height: auto; display: block; }

/* Header */
header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
header h1 { font-size: 2rem; margin: 0; color: var(--color-accent); }

h1.headline-anfahrt {
  color: #ffffff;
}

h1.headline-ueber-uns {
  color: #ffffff;
}

.logo-img { height: clamp(70px, 8vw, 120px); width: auto; display: block; } /* Desktop dezenter */

/* Navigation */
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
nav a:hover { background-color: var(--color-primary); color: #fff; }

/* Hero */
.hero-bg {
  background: url('/assets/img/taxi-hero.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 14rem 2rem 16rem;
  text-align: center;
  border-radius: var(--radius);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.35));
  z-index: 1;
  border-radius: var(--radius);
  pointer-events: none; /* Overlay lässt Klicks/Farbe passieren */
}
.hero-bg .hero-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; text-align: center;
}
.hero-bg .hero-text h2 {
  font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.4);
}
.hero-bg .hero-text p {
  font-size: 1.2rem;
  opacity: .95;
  position: relative;
  top: 95px; /* Text 20px nach unten verschoben */
}


/* 2) Nur den Button nach unten schieben (erst p, dann Button) */
.hero-bg .hero-text .button {
  display: inline-block;
}

/* Main / Layout */
html { height: auto; display: block; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  flex: 1 0 auto;
}
footer { flex-shrink: 0; }

/* Cards */
.card {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.03);
  margin-bottom: 2rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }

.card h2,
.card p {
  text-align: center;
}



/* Buttons */
.button, button {
  background-color: var(--color-primary);
  color: #fff;
  padding: .75rem .5rem;
  font-size: 1.05rem;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  cursor: pointer;
}
.button:hover, button:hover { background-color: var(--color-primary-hover); }
.button-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-text); }

/* Kontakt-Links */
.kontakt-links { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }

/* Formulare */
form { margin-top: 2rem; }
form label { font-weight: 600; margin-top: 1rem; display: block; }
form input, form select, form textarea {
  width: 100%; padding: 1rem; margin-top: .5rem;
  border: 1px solid var(--color-border); border-radius: 10px;
  background: #f9f9f9; font-size: 1rem;
}
form button { margin-top: 2rem; width: 100%; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
th, td { border: 1px solid var(--color-border); padding: 1rem; }
th { background-color: var(--color-primary); color: #fff; text-align: left; }

/* Überschriften */
h1, h2, h3 { color: var(--color-accent); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

/* Footer */
footer {
  background-color: var(--color-primary-hover);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: .9rem;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  margin-top: 3rem;
}
footer a { color: #111; text-decoration: none; margin: 0 .5rem; }
footer a:hover { color: #333; }

/* Center-Card Utilities */
.card-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card-center p { max-width: 700px; margin: 0 0 1.5rem; font-size: 1.1rem; }
.card-center .button { display: inline-block; margin-top: 1rem; }

/* Karriere Hero */
.hero-karriere {
  background: url('/assets/img/mitarbeiter.png') center center / cover no-repeat;
  color: #fff; padding: 14rem 2rem 16rem; text-align: center;
  border-radius: var(--radius); width: 100%;
  position: relative; overflow: hidden;
}
.hero-karriere::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.35));
  z-index: 1; border-radius: var(--radius);
}
.hero-karriere .hero-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 2; text-align: center;
}
.hero-karriere h1 {
  font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.4);
}
.hero-karriere p { font-size: 1.2rem; opacity: .95; margin-top: 5.5rem; }

/* Cookie-Banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background-color: var(--color-bg); color: var(--color-text);
  display: none; /* per .show aktivieren */
  justify-content: space-between; align-items: center;
  padding: 1rem 2rem; font-size: .95rem;
  z-index: 99999; box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--color-border);
  pointer-events: auto; opacity: 0; transform: translateY(100%);
  transition: all .4s ease;
}
.cookie-banner.show { display: flex; opacity: 1; transform: translateY(0); }
.cookie-banner a { color: var(--color-accent); text-decoration: underline; font-weight: 500; }
.cookie-banner button {
  background-color: var(--color-primary); color: #fff; border: none;
  padding: .6rem 1.2rem; font-weight: bold; border-radius: 8px; cursor: pointer;
  z-index: 100000; position: relative;
}
.cookie-banner button:hover { background-color: var(--color-primary-hover); }

/* Leistungen */
.leistungen-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.leistung-box {
  background-color: #fff; padding: 2rem; border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.04); text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  opacity: 0; transform: translateY(30px); animation: slideIn .6s forwards;
}
.leistung-box:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.leistung-box i { font-size: 2.2rem; color: var(--color-primary); margin-bottom: 1rem; }
.leistung-box p { font-size: 1.05rem; color: var(--color-text); margin: 0; }
@keyframes slideIn { to { opacity: 1; transform: translateY(0); } }

/* ===== News / Presse ===== */
.news-card { padding-bottom: 0; }
.news-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
.news-list:empty::after {
  content: "Derzeit keine Artikel verfügbar.";
  display: block;
  padding: 12px 0;
  color: var(--color-muted);
  font-size: .95rem;
}
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-light);
  background: #fff;
}
.news-thumb {
  width: 120px; height: 80px;
  border-radius: 10px; object-fit: cover; background: #f3f3f3;
}
.news-meta { display: flex; gap: 8px; font-size: 12px; color: var(--color-muted); }
.news-source { font-weight: 600; }
.news-title { margin: 4px 0 6px; font-weight: 600; line-height: 1.25; }
.news-title a { text-decoration: none; color: var(--color-text); }
.news-title a:hover { color: var(--color-primary); }
.news-footer { padding: 12px 0 16px; }

/* 2 Spalten ab breiterem Viewport */
@media (min-width: 860px) {
  .news-list { grid-template-columns: 1fr 1fr; }
}

/* Media Queries */
@media (max-width: 768px) {
  /* Header & Navigation */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }
  nav {
    width: 100%;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
  }
  nav a {
    padding: .75rem 1rem;
    width: 100%;
  }

  /* Hauptlayout */
  main { padding: 2rem 1rem; }
  footer { padding: 1.5rem 1rem; font-size: .85rem; }

  /* Hero */
  .hero-bg {
    padding: 6rem 1.5rem 7rem;
    background-position: center 40%;
  }
  /* Fix: Box mittig & über Overlay, keine Offsets vom Desktop */
  .hero-bg .hero-text {
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding-top: .5rem;
    text-align: center;
  }
  .hero-bg .hero-text h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: .75rem;
  }
  .hero-bg .hero-text p {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  /* Buttons & Cards */
  .button, button { width: 100%; padding: .75rem; }
  .card { padding: 1.5rem; }
  .card-center p { font-size: 1rem; }

  /* Cookie-Banner */
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .cookie-banner button {
    align-self: flex-end;
    width: 100%;
    text-align: center;
  }

  /* Logo */
  .logo-img { height: 80px; }

  /* Leistungen-Liste */
  .leistungsliste {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    font-size: 1.05rem;
  }
  .leistungsliste li {
    background: #f9f9f9;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.03);
    display: flex;
    align-items: center;
    gap: .8rem;
  }

  /* News */
  .news-item { grid-template-columns: 1fr; }
  .news-thumb { width: 100%; height: 160px; }
}

/* Smartphones bis 480px */
@media (max-width: 480px) {
  .hero-bg .hero-text h2 { font-size: 1.6rem; }
  .hero-bg .hero-text p { font-size: 1rem; }
}

/* Extra-Klein (iPhone SE bis 375px) */
@media (max-width: 375px) {
  .hero-bg { padding: 5rem 1rem 6rem; }
  .hero-bg .hero-text h2 { font-size: 1.4rem; line-height: 1.2; }
  .hero-bg .hero-text p { font-size: .95rem; }
  .logo-img { height: 65px; }
  .button, button { font-size: .95rem; padding: .6rem; }
}

/* ===== Desktop: Button im Hero weiter nach unten ===== */

@media (min-width: 769px) {
  .hero-bg .hero-text .button {
    margin-top: 100px; /* ~1.5 cm; nimm 40px (≈1 cm) oder 80px (≈2 cm) nach Wunsch */
  }
  
  .leistung-box h2 {
  font-size: 1.1rem;   /* kleiner als Standard */
  font-weight: 600;    /* weniger fett */
  line-height: 1.3;    /* kompakter, bessere Höhe */
  margin-bottom: 0.5rem;
  word-break: break-word; /* falls ein Wort zu lang wird */
}

}

/* --- CTA: exakt gleich breite Buttons --- */
.cta-section .cta-buttons{
  display: grid;
  grid-template-columns: 1fr 1fr;  /* zwei gleich große Spalten */
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.cta-section .cta-buttons a.button,
.cta-section .cta-buttons a.btn-secondary{
  width: 100% !important;        /* erzwingt gleiche Breite */
  display: flex !important;       /* überschreibt evtl. inline/inline-flex */
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem !important;
  border-radius: var(--radius);
  text-align: center;
  box-sizing: border-box;
  gap: 0.5rem;
}

/* gleiche Icon-Breite, damit der Text sauber ausgerichtet ist */
.cta-section .cta-buttons i{ width: 1.25em; text-align: center; }

/* Mobil: untereinander */
@media (max-width: 768px){
  .cta-section .cta-buttons{ grid-template-columns: 1fr; }
}

