/* ==========================================================
   Auto Service Schulz – ass-mainz.de
   Gemeinsames Stylesheet für alle Seiten
   ========================================================== */
:root{
  --bg:#0f1115;
  --bg-soft:#161a21;
  --card:#1e232d;
  --accent:#f27a00;
  --fg:#ffffff;
  --muted:#b6bcc6;
  --line:#2a3140;
  --max:980px;
}
:root[data-theme="light"]{
  --bg:#f6f7f9;
  --bg-soft:#ffffff;
  --card:#ffffff;
  --fg:#111;
  --muted:#555b66;
  --line:#d7dbe2;
}

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

html{scroll-padding-top:var(--header-h,120px)}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--fg);
  line-height:1.6;
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 32px;
  width:100%;
}

/* TEXTLINKS */
a{text-decoration:none;color:inherit}
.text-link{position:relative;display:inline-block}
.text-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:width .2s ease;
}
.text-link:hover::after{width:100%}

/* HEADER */
header{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(15,17,21,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
:root[data-theme="light"] header{
  background:rgba(255,255,255,.85);
}

.header-top{
  max-width:var(--max);
  margin:0 auto;
  padding:16px 32px 6px;
  display:flex;
  align-items:center;
}
.header-logo img{height:48px}

.header-bottom{
  max-width:var(--max);
  margin:0 auto;
  padding:0 32px 14px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

nav{
  display:flex;
  align-items:center;
}
nav a{
  margin-left:26px;
  font-size:14px;
  color:var(--muted);
}
nav a:hover{color:var(--fg)}
.nav-links{
  display:flex;
  align-items:center;
}

/* MOBILE NAVIGATION */
.nav-burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:30px;
  height:30px;
  padding:4px;
  margin-left:20px;
  background:none;
  border:none;
  cursor:pointer;
}
.nav-burger span{
  display:block;
  width:22px;
  height:2px;
  border-radius:2px;
  background:var(--fg);
  transition:transform .25s ease, opacity .25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media(max-width:700px){
  .nav-burger{display:flex}
  .nav-links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    padding:8px 0 16px;
    background:var(--bg);
    border-bottom:1px solid var(--line);
    box-shadow:0 18px 30px rgba(0,0,0,.25);
  }
  .nav-links.open{display:flex}
  .nav-links a{
    margin-left:0;
    padding:14px 32px;
    font-size:17px;
  }
}

/* THEME TOGGLE */
.theme-toggle{
  margin-left:26px;
  background:none;
  border:none;
  cursor:pointer;
  width:22px;
  height:22px;
  position:relative;
}
.theme-toggle img{
  position:absolute;
  inset:0;
  width:22px;
  height:22px;
  transition:opacity .2s ease;
}

:root[data-theme="dark"] .theme-toggle img.night{opacity:1}
:root[data-theme="dark"] .theme-toggle img.day{opacity:0}
:root[data-theme="dark"] .theme-toggle:hover img.night{opacity:0}
:root[data-theme="dark"] .theme-toggle:hover img.day{opacity:1}

:root[data-theme="light"] .theme-toggle img.day{opacity:1}
:root[data-theme="light"] .theme-toggle img.night{opacity:0}
:root[data-theme="light"] .theme-toggle:hover img.day{opacity:0}
:root[data-theme="light"] .theme-toggle:hover img.night{opacity:1}

/* HERO */
.hero{
  position:relative;
  min-height:88vh;
  overflow:hidden;
}
.hero video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.55;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(15,17,21,.1),var(--bg));
}
.hero-inner{
  position:relative;
  z-index:1;
  max-width:var(--max);
  margin:0 auto;
  padding:0 32px;
  min-height:88vh;
  display:flex;
  align-items:center;
}
.hero-content{
  max-width:720px;
  text-align:left;
}
.hero h1{
  font-size:clamp(2.6rem,5vw,3.6rem);
  font-weight:800;
  line-height:1.1;
  margin-bottom:18px;
}
.hero p{
  font-size:1.15rem;
  color:var(--muted);
  margin-bottom:34px;
}

/* BUTTONS */
.actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:16px 34px;
  border-radius:14px;
  font-weight:600;
  background:var(--accent);
  color:#fff;
  backdrop-filter:blur(3px);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.btn:hover{
  transform:translateY(-2px);
  backdrop-filter:blur(2px);
  box-shadow:0 10px 26px rgba(0,0,0,.35);
}

/* Secondary Button (Kontakt) */
.btn.secondary{
  background:rgba(255,255,255,.16);          /* vorher .08 */
  border:1px solid rgba(255,255,255,.45);    /* vorher .25 */
  color:var(--fg);
}

.btn.secondary:hover{
  background:rgba(255,255,255,.22);          /* vorher .14 */
  border-color:rgba(255,255,255,.65);        /* vorher .45 */
}

/* Dark Button (Abschleppdienst) */
.btn.dark{
  background:#111;
  color:#fff;
}

/* Icons */
.btn-icon{
  height:1.15em;
  transition:transform .25s ease;
}

.btn:hover .btn-icon{
  transform:rotate(-8deg) scale(1.15);
}
/* STORY */
.story{
  padding:100px 0;
  background:var(--bg-soft);
}
.story h2{font-size:2.3rem;margin-bottom:28px}
.story p{
  color:var(--muted);
  margin-bottom:18px;
  max-width:780px;
}

/* SERVICES */
.services{padding:100px 0}
.services h2{
  font-size:2.4rem;
  margin-bottom:40px;
}
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}
@media(max-width:900px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:560px){
  .services-grid{grid-template-columns:1fr}
}
.service{
  position:relative;
  overflow:hidden;
  background:var(--card);
  padding:30px;
  border-radius:18px;
}
.service p{color:var(--muted)}

/* ABSCHLEPPDIENST */
.emergency{
  background:linear-gradient(135deg,#02bec9,#37d0d9);
  color:#111;
  padding:90px 0;
}
.emergency h2{
  font-size:2.6rem;
  margin-bottom:24px;
}
.em-text{
  max-width:780px;
  margin-bottom:28px;
  font-size:1.05rem;
}
.notice{
  margin-top:34px;
  background:rgba(255,255,255,.9);
  padding:22px;
  border-radius:14px;
  font-size:.95rem;
}

/* CONTACT */
.contact{padding:90px 0}
.contact h2{
  font-size:2.4rem;
  margin-bottom:40px;
}
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}
@media(max-width:800px){
  .contact-grid{grid-template-columns:1fr}
}
.map-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
}
.map-link img{
  height:18px;
  width:auto;
}

/* RECHTSSEITEN (Impressum, Datenschutz, AGB) */
.page-legal{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
:root[data-theme="light"] .page-legal header{
  background:rgba(255,255,255,.9);
}

main{
  flex:1;
  padding:80px 0;
}

.main-card{
  background:var(--card);
  border-radius:20px;
  padding:56px;
}
@media(max-width:700px){
  .main-card{padding:36px 28px}
}

:where(.page-legal) h1{
  font-size:2.4rem;
  margin-bottom:36px;
}
:where(.page-agb) h1{
  margin-bottom:8px;
}

:where(.page-legal) h2{
  font-size:1.05rem;
  letter-spacing:.02em;
  text-transform:uppercase;
  margin:34px 0 10px;
}

:where(.page-legal) p{
  color:var(--muted);
  margin-bottom:14px;
}

:where(.page-legal) ul,
:where(.page-legal) ol{
  margin:0 0 16px 18px;
  color:var(--muted);
}
:where(.page-legal) ol li{
  margin-bottom:8px;
}

.subtitle{
  font-size:.95rem;
  color:var(--muted);
  margin-bottom:36px;
}

.stand{
  margin-top:40px;
  font-size:.85rem;
  color:var(--muted);
  opacity:.6;
}

/* FOOTER */
footer{
  background:#0b0d12;
  border-top:1px solid var(--line);
  padding:50px 0 26px;
  font-size:14px;
  color:var(--muted);
}
:root[data-theme="light"] footer{background:#f0f1f3}
.footer-grid{
  max-width:var(--max);
  margin:0 auto;
  padding:0 32px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:40px;
}
.footer-logo{
  display:inline-flex;
  width:fit-content;
}
.footer-logo img{
  height:38px;
  filter:saturate(0);
  transition:filter .2s ease, transform .2s ease;
}
.footer-logo:hover img{
  filter:saturate(1);
  transform:scale(1.05);
}
.footer-links{display:flex;gap:16px}

/* Bewertungsbadge (Hype-Animation, feste Größe) */
#googleFrame{
  width:164px;
  height:120px;
  border:0;
}
@media(max-width:600px){
  .footer-grid{grid-template-columns:1fr;gap:24px}
}

.footer-copy{
  font-size:10px;
  color:rgba(255,255,255,.50);
}
:root[data-theme="light"] .footer-copy{
  color:rgba(0,0,0,.60);
}

/* BEWERTUNGS-AUSWAHL (Lightbox) */
.review-dialog{
  margin:auto;
  width:min(560px,calc(100% - 32px));
  max-height:calc(100% - 32px);
  border:1px solid var(--line);
  border-radius:20px;
  padding:40px 36px 30px;
  background:var(--card);
  color:var(--fg);
  box-shadow:0 30px 80px rgba(0,0,0,.45);
}
.review-dialog::backdrop{
  background:rgba(8,10,14,.65);
  backdrop-filter:blur(4px);
}
.review-dialog[open]{animation:review-in .2s ease}
@keyframes review-in{
  from{opacity:0;transform:translateY(10px) scale(.98)}
  to{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  .review-dialog[open]{animation:none}
}
.review-dialog h2{
  font-size:1.6rem;
  line-height:1.2;
  margin-bottom:8px;
  padding-right:40px;
}
.review-dialog:focus{outline:none}
.review-lead{
  color:var(--muted);
  margin-bottom:26px;
}
.review-close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border:none;
  border-radius:50%;
  background:none;
  color:var(--muted);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  transition:background .2s ease,color .2s ease;
}
.review-close:hover{
  background:var(--line);
  color:var(--fg);
}
.review-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
@media(max-width:520px){
  .review-options{grid-template-columns:1fr;gap:12px}
  .review-dialog{padding:28px 20px 20px}
  .review-dialog h2{font-size:1.35rem}
  .review-lead{margin-bottom:18px}
  .review-option{padding:16px 18px}
  .review-option svg{width:28px;height:28px;margin-bottom:4px}
  .review-option .review-cta{margin-top:6px}
  .review-note{margin-top:16px}
}
.review-option{
  --tone:var(--accent);
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:22px 20px 20px;
  border:1px solid var(--line);
  border-top:4px solid var(--tone);
  border-radius:14px;
  background:var(--bg-soft);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.review-option.tow{--tone:#02bec9}
.review-option:hover,
.review-option:focus-visible{
  transform:translateY(-3px);
  border-color:var(--tone);
  box-shadow:0 14px 30px rgba(0,0,0,.25);
  outline:none;
}
.review-option svg{
  width:34px;
  height:34px;
  color:var(--tone);
  margin-bottom:10px;
}
.review-option strong{font-size:1.1rem}
.review-option span{
  font-size:.9rem;
  color:var(--muted);
}
.review-option .review-cta{
  margin-top:12px;
  font-weight:600;
  font-size:.9rem;
  color:var(--tone);
}
.review-note{
  margin-top:22px;
  font-size:.8rem;
  color:var(--muted);
}
