/* =========================================================================
   Autoservice Tellmann & Becker – Stylesheet
   Farbwelt aus dem Logo abgeleitet: Blau #0b72b5, Anthrazit #1a1a1a, Weiß
   ========================================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  --blue:        #0b72b5;
  --blue-dark:   #075a91;
  --blue-light:  #2f9bdd;
  --ink:         #14181d;   /* Anthrazit / Text */
  --ink-soft:    #3a424c;
  --grey:        #6b7681;
  --grey-line:   #e4e8ec;
  --grey-bg:     #f4f6f8;
  --white:       #ffffff;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 10px 30px -12px rgba(16, 28, 40, .18);
  --shadow-lg:   0 24px 60px -20px rgba(16, 28, 40, .28);
  --maxw:        1180px;
  --ease:        cubic-bezier(.22, .61, .36, 1);

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--grey { background: var(--grey-bg); }
.section--ink  { background: var(--ink); color: #d9dee4; }
.section--ink h2, .section--ink h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.section--ink .eyebrow { color: var(--blue-light); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.section--ink .lead { color: #aeb6bf; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px; font-family: var(--font-head);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--b); color: #fff; box-shadow: 0 12px 24px -10px rgba(11,114,181,.7); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(11,114,181,.75); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-3px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-3px); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-line);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(16,28,40,.3); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.nav__logo { display: flex; align-items: center; gap: .65rem; }
.nav__logo-img { height: 38px; width: auto; }
.nav__wappen { display: flex; align-items: center; gap: .3rem; padding-left: .65rem; border-left: 1px solid var(--grey-line); }
.nav__wappen img { height: 32px; width: auto; display: block; }
@media (max-width: 600px) {
  .nav__wappen { display: none; }
}
.nav__menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink-soft);
  padding: .55rem .85rem; border-radius: 8px; transition: color .2s, background .2s; position: relative;
  white-space: nowrap;
}
/* Der "Termin anfragen"-Button im Menü ist nur für das mobile Menü gedacht */
.nav__menu li:has(> .btn) { display: none; }
.nav__menu a:hover { color: var(--blue); background: var(--grey-bg); }
.nav__menu a.is-active { color: var(--blue); }
.nav__menu a.is-active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; background: var(--blue); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: .7rem; }
.nav__cta .btn { padding: .65rem 1.25rem; }
.nav__phone { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.nav__phone:hover { color: var(--blue); }
.nav__phone svg { width: 18px; height: 18px; color: var(--blue); }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--grey-line); background: #fff;
  border-radius: 10px; cursor: pointer; padding: 0; position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: var(--ink);
  transform: translate(-50%, -50%); transition: .3s var(--ease);
}
.nav__toggle span::before { transform: translate(-50%, -8px); }
.nav__toggle span::after  { transform: translate(-50%, 6px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(10,16,22,.92) 0%, rgba(10,16,22,.72) 42%, rgba(11,114,181,.35) 100%);
}
.hero__inner { padding-block: clamp(4.5rem, 13vw, 9rem); max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #d9dee4; max-width: 56ch; }
.hero .btn-row { margin-top: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; padding: .42rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px);
}
.badge svg { width: 15px; height: 15px; color: var(--blue-light); }

/* Hero-Variante Karriere */
.hero--career::after {
  background: linear-gradient(120deg, rgba(8,14,20,.9) 0%, rgba(8,14,20,.55) 45%, rgba(11,114,181,.55) 100%);
}

/* ---------- Trust-Leiste ---------- */
.trust { background: var(--ink); color: #cdd4db; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2.2rem; }
.trust__item { display: flex; align-items: center; gap: .85rem; }
.trust__item svg { width: 28px; height: 28px; color: var(--blue-light); flex: none; }
.trust__item strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.trust__item span { font-size: .9rem; color: #95a0ab; }

/* ---------- Section-Header ---------- */
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; }

/* ---------- Karten / Grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff; margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--grey); margin: 0; font-size: .98rem; }
.section--grey .card { background: #fff; }

/* Vorteils-Karte (dezenter) */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(11,114,181,.1); color: var(--blue); display: grid; place-items: center; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.feature p { color: var(--grey); font-size: .96rem; margin: 0; }
.section--ink .feature__icon { background: rgba(47,155,221,.18); color: var(--blue-light); }
.section--ink .feature p { color: #aeb6bf; }

/* ---------- Split (Text + Bild) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media .tag {
  position: absolute; left: 1.2rem; bottom: 1.2rem; background: var(--white); color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 700;
  display: flex; align-items: center; gap: .6rem; font-size: .95rem;
}
.split__media .tag svg { width: 20px; height: 20px; color: var(--blue); }

/* Check-Liste */
.checklist { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- Stats (Karriere/Über uns) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--blue); line-height: 1; }
.section--ink .stat__num { color: var(--blue-light); }
.stat__label { font-size: .95rem; color: var(--grey); }
.section--ink .stat__label { color: #aeb6bf; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.4rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band .btn--primary { background: #fff; color: var(--blue-dark); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.cta-band .btn--primary:hover { background: var(--ink); color: #fff; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.8rem, 4vw, 3.2rem); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(11,114,181,.1); color: var(--blue); display: grid; place-items: center; }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-head); }
.info-list a, .info-list span { color: var(--ink-soft); }
.info-list a:hover { color: var(--blue); }

.map-embed { border: 0; width: 100%; height: 100%; min-height: 280px; border-radius: var(--radius); }

/* ---------- Formular ---------- */
.form-card { background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.3rem); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: .8rem .9rem; border: 1.5px solid var(--grey-line);
  border-radius: var(--radius-sm); background: var(--grey-bg); color: var(--ink); transition: border-color .2s, background .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field .hint { font-size: .82rem; color: var(--grey); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--grey); }
.form-consent input { width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.form-note { font-size: .85rem; color: var(--grey); margin-top: 1rem; }
.form-success { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(11,114,181,.1); color: var(--blue-dark); font-weight: 600; margin-top: 1rem; }
.form-success.show { display: block; }

/* ---------- Öffnungszeiten ---------- */
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--grey-line); }
.hours li:last-child { border-bottom: 0; }
.hours .closed { color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb6bf; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid img { height: 40px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a:hover { color: var(--blue-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer-bottom a:hover { color: var(--blue-light); }

/* ---------- Placeholder-Markierung (für eigene Inhalte) ---------- */
.todo { background: rgba(255, 193, 7, .16); border-bottom: 1px dashed #d39e00; padding: 0 .15em; }

/* ---------- Scroll-Reveal Animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}
@media (max-width: 860px) {
  .nav__cta .btn { display: none; }
  .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--grey-line); padding: .5rem 1.1rem 1.3rem;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s var(--ease);
    max-height: calc(100vh - 74px); overflow: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { padding: .9rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--grey-line); border-radius: 0; }
  .nav__menu li:last-child a { border-bottom: 0; }
  .nav__menu .btn { margin-top: .8rem; }
  .nav__menu a.is-active::after { display: none; }
  .nav__menu li:has(> .btn) { display: block; }
}
@media (max-width: 820px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { gap: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
