/* =========================================================
   Die KFZ Meister – Taufkirchen
   Statisches Redesign  |  style.css
   ========================================================= */

/* ---- Lokale Schriften (kein Google-Fonts-Aufruf) ----
   Dateien via download-fonts.sh nach assets/fonts/ laden. */
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/orbitron-700.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../assets/fonts/orbitron-900.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/ptsans-400.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/ptsans-700.woff2") format("woff2"); }

:root {
  --blue:        #0475d5;
  --blue-dark:   #035aa3;
  --blue-deep:   #023b6b;
  --blue-bright: #1e90e8;
  /* Akzent = echte Markenfarbe (Blau). Variablennamen beibehalten. */
  --orange:      #0475d5;
  --orange-dark: #035aa3;
  --ink:         #1c1f22;
  --charcoal:    #292b2d;
  --gray-700:    #4a4f55;
  --gray-500:    #6b7178;
  --gray-300:    #cdd2d7;
  --gray-100:    #eef1f4;
  --gray-50:     #f6f8fa;
  --white:       #ffffff;

  --font-head: "Orbitron", "Arial Narrow", sans-serif;
  --font-body: "PT Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(20,30,45,.07);
  --shadow-md: 0 10px 30px rgba(20,30,45,.12);
  --shadow-lg: 0 24px 60px rgba(20,30,45,.20);
  --trans: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--orange); }

h1,h2,h3,h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
p { margin: 0 0 1.1em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.section--gray { background: var(--gray-50); }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 .8rem;
}
.section-head { margin-bottom: 2.8rem; }
.section-head .bar { width: 62px; height: 4px; background: var(--orange); border-radius: 4px; margin: 1rem auto 0; }
.section-head.left .bar { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .85em 1.7em;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--trans);
  text-transform: uppercase;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(4,117,213,.35); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: #fff; color: var(--blue-deep); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 82px; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 56px; width: auto; }
.brand .brand-txt { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; color: var(--charcoal); line-height: 1; }
.brand .brand-txt span { color: var(--blue); }
.brand .brand-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-500); margin-top: 3px; }

/* nav */
.main-nav ul { list-style: none; display: flex; align-items: center; gap: .3rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: .6rem .85rem; border-radius: 8px;
  font-weight: 700; font-size: .96rem; color: var(--charcoal);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--blue); background: var(--gray-50); }
.main-nav li { position: relative; }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .4em; color: var(--gray-500); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 288px;
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: .5rem; list-style: none;
  display: block; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--trans);
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { font-size: .9rem; font-weight: 600; padding: .55rem .7rem; border-radius: 7px; color: var(--gray-700); }
.submenu a:hover { background: var(--gray-50); color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; color: var(--charcoal); white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; fill: var(--orange); }

/* burger */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--charcoal); border-radius: 3px; margin: 5px 0; transition: all var(--trans); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(2,40,80,.66) 0%, rgba(2,40,80,.34) 50%, rgba(2,40,80,.10) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding: clamp(4rem, 12vw, 8.5rem) 0; }
.hero--home { min-height: min(88vh, 840px); }
.hero .hero__inner, .page-hero .page-hero__inner { padding-bottom: 5.5rem; }
.hero--home .hero__inner { padding: clamp(6rem, 16vw, 11rem) 0; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 46ch; margin-bottom: 2rem; color: rgba(255,255,255,.94); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* page hero (sub-pages) */
.page-hero { position: relative; color:#fff; display:flex; align-items:center; min-height: min(58vh, 560px); }
.page-hero--short { min-height: min(42vh, 400px); }
.page-hero__bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.page-hero__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(2,40,80,.68), rgba(2,40,80,.26)); }
.page-hero__inner { position:relative; z-index:2; width:100%; padding: clamp(3rem,8vw,5.5rem) 0; }
.page-hero h1 { color:#fff; margin-bottom:.3rem; }
.breadcrumb { font-size:.85rem; color: rgba(255,255,255,.8); font-weight:600; }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Hinweis-Balken (Betriebsferien o. Ä.) ---------- */
.notice-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 0 1.2rem; background: transparent; pointer-events: none;
}
.notice-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: .7rem; text-align: center;
  background: rgba(253,243,225,.96);
  border: 2px solid #e8a13c;
  border-radius: 12px;
  padding: .85rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  pointer-events: auto;
}
.notice-bar__icon { flex: none; width: 24px; height: 24px; fill: #c47a1a; }
.notice-bar p { margin: 0; font-size: 1.05rem; font-weight: 600; color: #7a4c15; }
.notice-bar strong { font-weight: 700; color: #6a3f0e; }
.notice-bar__badge {
  display: inline-block; background: #e8a13c; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .28em .7em; border-radius: 50px; margin-right: .45rem; white-space: nowrap;
}
@media (max-width: 640px) {
  .notice-bar__inner { flex-direction: column; gap: .45rem; padding: .9rem 18px; }
  .notice-bar p { font-size: .98rem; }
}

/* ---------- Intro / about ---------- */
.lead-xl { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--gray-700); font-weight: 400; }

/* ---------- Service grid ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--trans);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card__media { aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card__body p { font-size: .96rem; color: var(--gray-700); margin-bottom: 1.1rem; }
.card__link { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: .4em; }
.card:hover .card__link { color: var(--orange); }
.card__link::after { content: "→"; transition: transform var(--trans); }
.card:hover .card__link::after { transform: translateX(4px); }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; }
.feature-list li { position: relative; padding-left: 2rem; font-weight: 600; color: var(--charcoal); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px;
  background: var(--orange); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center/13px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/></svg>") center/13px no-repeat;
}

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img, .split__media video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split__media { border-radius: var(--radius); overflow: hidden; }

/* ---------- Video ---------- */
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background:#000; }
.video-frame video { width: 100%; display: block; }

/* ---------- Price boxes ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.price-card {
  background: #fff; border: 1px solid var(--gray-100); border-top: 4px solid var(--blue);
  border-radius: var(--radius); padding: 1.8rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: all var(--trans);
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.price-card .price { font-family: var(--font-head); font-weight: 900; font-size: 2.1rem; color: var(--blue-dark); margin: .4rem 0 .2rem; }
.price-card .price small { font-size: 1rem; }
.price-card .unit { font-size: .85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }

/* price/info table list */
.info-table { width: 100%; border-collapse: collapse; margin: 1rem 0 0; }
.info-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--gray-100); }
.info-table tr td:last-child { text-align: right; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.info-table tr:nth-child(odd) td { background: var(--gray-50); }

.price-list-note { font-size: .88rem; color: var(--gray-500); margin-top: 1rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.08); }
.gallery a.wide { grid-column: span 2; aspect-ratio: 2/1; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 44ch; margin-inline: auto; }
.cta-band .btn--primary { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.cta-band .btn--primary:hover { background: var(--gray-100); color: var(--blue-deep); }

/* ---------- Content prose (legal pages) ---------- */
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.1rem; color: var(--blue-dark); }
.prose h2, .prose h3 { text-transform: none; letter-spacing: 0; }
.prose { color: var(--gray-700); }
.prose a { word-break: break-word; }

/* ---------- Info cards (contact strip) ---------- */
.info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.info-cards .card__body { padding: 1.6rem; }
.info-cards h4 { color: var(--blue-dark); margin-bottom: .8rem; }
.info-cards p, .info-cards table { font-size: .98rem; color: var(--gray-700); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .25rem 0; }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--charcoal); }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.78); padding: clamp(3rem,6vw,4.5rem) 0 0; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.2rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { height: 52px; margin-bottom: 1rem; background:#fff; padding:6px 10px; border-radius:8px; }
.footer-brand p { font-size: .95rem; }
.footer-hours { width: 100%; }
.footer-hours td { padding: .2rem 0; font-size: .95rem; }
.footer-hours td:last-child { text-align: right; color: #fff; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .5rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding: 1.4rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .price-grid, .info-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .gallery { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 82px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem; }
  .main-nav > ul > li > a { padding: .9rem 1rem; border-radius: 8px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; min-width: auto; padding: .2rem .2rem .6rem 1rem; display: none;
  }
  .has-sub.open > .submenu { display: block; }
  .has-sub > a::after { float: right; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .price-grid, .info-cards, .feature-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .gallery a.wide { grid-column: span 2; }
  .brand .brand-sub { display: none; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
