/*
Theme Name: HENZ Drive
Theme URI: https://example.com/
Author: OpenAI
Description: Modernes Fahrschul-Theme im dunklen Automotive-Look mit roten Akzenten, Karten, Standorten und starken CTA-Bereichen.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: henz-drive
*/

:root{
  --hd-red:#e10618;
  --hd-dark:#151515;
  --hd-dark-2:#232323;
  --hd-light:#f7f7f7;
  --hd-muted:#6d6d6d;
  --hd-border:#dedede;
  --hd-white:#fff;
  --hd-max:1320px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:#171717;
  background:#fff;
  line-height:1.5;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.container{width:min(calc(100% - 40px),var(--hd-max));margin-inline:auto}
.section{padding:76px 0}
.section--tight{padding:40px 0}
.section-heading{margin-bottom:28px}
.section-kicker{
  width:38px;height:4px;background:var(--hd-red);display:block;margin-bottom:12px
}
.section-title{
  margin:0;
  font-size:clamp(2rem,3vw,3.2rem);
  line-height:1.05;
  letter-spacing:-.03em;
}
.section-subtitle{color:var(--hd-muted);font-size:1.05rem;margin:.5rem 0 0}

.site-header{
  position:relative;
  z-index:40;
  color:#fff;
  background:#151515;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.home .site-header{
  position:absolute;
  top:0;left:0;right:0;
  background:linear-gradient(180deg,rgba(10,10,10,.72),rgba(10,10,10,0));
  border-bottom:0;
}
.site-header__inner{
  min-height:88px;
  display:flex;
  align-items:center;
  gap:30px;
}
.site-branding{display:flex;align-items:center;gap:14px;min-width:max-content}
.site-title{
  font-size:1.65rem;
  font-weight:900;
  line-height:.9;
  text-transform:uppercase;
  text-decoration:none;
}
.site-title small{display:block;font-size:.5em;font-weight:500;letter-spacing:.04em}
.custom-logo{max-height:60px;width:auto}
.primary-nav{margin-left:auto}
.primary-nav ul{
  display:flex;
  gap:26px;
  list-style:none;
  margin:0;padding:0;
}
.primary-nav a{
  color:#fff;
  text-decoration:none;
  font-size:.82rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  position:relative;
}
.primary-nav a:after{
  content:"";
  position:absolute;
  left:0;right:100%;
  bottom:-8px;
  height:2px;
  background:var(--hd-red);
  transition:.2s ease;
}
.primary-nav a:hover:after{right:0}
.header-cta{
  margin-left:18px;
  background:var(--hd-red);
  color:#fff;
  text-decoration:none;
  padding:15px 22px;
  font-size:.8rem;
  text-transform:uppercase;
  font-weight:800;
}

.hero{
  position:relative;
  min-height:690px;
  display:flex;
  align-items:flex-end;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(8,8,8,.86) 0%,rgba(8,8,8,.52) 38%,rgba(8,8,8,.12) 68%,rgba(8,8,8,.42) 100%),
    var(--hero-bg, linear-gradient(135deg,#222,#575757));
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.hero:after{
  content:"";
  position:absolute;
  top:-15%;
  right:4%;
  width:250px;
  height:140%;
  transform:skewX(-24deg);
  background:linear-gradient(90deg,rgba(255,255,255,.05) 0 38%,rgba(225,6,24,.72) 38% 58%,rgba(255,255,255,.07) 58% 76%,rgba(0,0,0,.2) 76%);
  opacity:.85;
  pointer-events:none;
}
.hero__content{
  position:relative;
  z-index:2;
  padding:160px 0 70px;
  width:min(720px,100%);
}
.hero h1{
  font-size:clamp(3rem,6.5vw,6rem);
  line-height:.9;
  letter-spacing:-.045em;
  margin:0 0 24px;
  font-weight:900;
}
.hero h1 .dot{color:var(--hd-red)}
.hero__lead{
  font-size:1.12rem;
  max-width:600px;
  margin-bottom:26px;
}
.hero__actions{display:flex;flex-wrap:wrap;gap:12px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 20px;
  text-decoration:none;
  border:1px solid transparent;
  font-size:.82rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.02em;
  transition:.2s ease;
}
.btn--primary{background:var(--hd-red);color:#fff}
.btn--primary:hover{transform:translateY(-2px)}
.btn--ghost{border-color:rgba(255,255,255,.7);color:#fff;background:transparent}
.btn--light{background:#fff;color:#151515}
.btn--outline{border-color:#cfcfcf;background:#fff}

.quickbar{
  background:#202020;
  color:#fff;
}
.quickbar__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.quickbar__item{
  padding:22px 18px;
  display:flex;
  gap:14px;
  align-items:center;
  border-right:1px solid rgba(255,255,255,.08);
}
.quickbar__icon{
  width:38px;height:38px;border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  display:grid;place-items:center;
  font-size:1.15rem;
}
.quickbar__item strong{display:block;font-size:.95rem}
.quickbar__item span{font-size:.8rem;color:#c9c9c9}

.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.card{
  background:#fff;
  border:1px solid var(--hd-border);
  overflow:hidden;
}
.card__media{
  aspect-ratio:16/9;
  background:
    linear-gradient(135deg,#2c2c2c,#5e5e5e);
  position:relative;
  overflow:hidden;
}
.card__media img{width:100%;height:100%;object-fit:cover}
.card__media:after{
  content:"";
  position:absolute;right:6%;top:-20%;
  width:70px;height:150%;
  transform:skewX(-22deg);
  background:linear-gradient(90deg,rgba(255,255,255,.12) 0 32%,var(--hd-red) 32% 56%,rgba(15,15,15,.72) 56%);
}
.card__body{padding:20px}
.card__title{font-size:1.35rem;margin:0 0 4px}
.card__eyebrow{color:#777;font-size:.9rem;margin-bottom:14px}
.card__text{color:#575757;font-size:.95rem}
.card__link{
  display:inline-grid;place-items:center;
  margin-top:16px;
  width:40px;height:40px;
  border:1px solid #d7d7d7;
  border-radius:50%;
  text-decoration:none;
}

.why{
  position:relative;
  color:#fff;
  background:
    linear-gradient(90deg,#171717 0 48%,rgba(23,23,23,.84) 64%,rgba(23,23,23,.55) 100%),
    var(--why-bg, linear-gradient(135deg,#171717,#494949));
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.why:after{
  content:"";
  position:absolute;left:50%;top:-15%;
  width:190px;height:135%;
  transform:skewX(-25deg);
  background:linear-gradient(90deg,rgba(255,255,255,.03),rgba(255,255,255,.12),rgba(0,0,0,.16));
}
.why__inner{position:relative;z-index:2;display:grid;grid-template-columns:1.15fr .85fr;gap:50px}
.feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.feature{display:flex;gap:14px}
.feature__icon{
  width:42px;height:42px;border:1px solid rgba(255,255,255,.35);
  border-radius:50%;display:grid;place-items:center;flex:0 0 42px
}
.feature strong{display:block}
.feature p{margin:.25rem 0 0;color:#d0d0d0;font-size:.9rem}
.why__quote{
  align-self:end;
  justify-self:end;
  font-family:Georgia,serif;
  font-size:2.25rem;
  font-style:italic;
  transform:rotate(-5deg);
  border-bottom:4px solid var(--hd-red);
  padding-bottom:8px;
}

.location-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.location-card{border:1px solid var(--hd-border);background:#fff}
.location-card__image{aspect-ratio:16/10;background:#ddd;overflow:hidden}
.location-card__image img{width:100%;height:100%;object-fit:cover}
.location-card__body{padding:16px 18px}
.location-card h3{margin:0 0 6px}
.location-card p{margin:0;color:#616161}

.cta-strip{
  background:
    linear-gradient(90deg,rgba(21,21,21,.96),rgba(21,21,21,.8)),
    repeating-linear-gradient(110deg,#181818 0 40px,#262626 40px 78px);
  color:#fff;
  padding:36px 0;
}
.cta-strip__inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.cta-strip h2{margin:0;font-size:2rem}
.cta-strip p{margin:.25rem 0 0;color:#d7d7d7}

.site-footer{background:#fff;padding:44px 0 24px}
.site-footer__top{display:flex;align-items:center;justify-content:space-between;gap:24px}
.footer-nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}
.footer-nav a{text-decoration:none;font-size:.9rem}
.site-footer__bottom{
  border-top:1px solid #e6e6e6;
  margin-top:28px;
  padding-top:18px;
  color:#777;
  font-size:.82rem;
  display:flex;
  justify-content:space-between;
  gap:20px;
}

.content-wrap{padding:130px 0 70px;min-height:60vh}
.entry-title{font-size:clamp(2.2rem,5vw,4rem);margin-top:0}
.entry-content{max-width:850px}

.mobile-menu-toggle{display:none}

@media (max-width:980px){
  .primary-nav,.header-cta{display:none}
  .mobile-menu-toggle{
    display:inline-flex;margin-left:auto;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.5);padding:10px 12px
  }
  .site-header.is-open .primary-nav{
    display:block;position:absolute;top:82px;left:20px;right:20px;background:#151515;padding:18px
  }
  .site-header.is-open .primary-nav ul{flex-direction:column;gap:15px}
  .quickbar__grid{grid-template-columns:repeat(2,1fr)}
  .card-grid,.location-grid{grid-template-columns:1fr 1fr}
  .why__inner{grid-template-columns:1fr}
  .why__quote{justify-self:start}
}
@media (max-width:680px){
  .container{width:min(calc(100% - 28px),var(--hd-max))}
  .hero{min-height:620px}
  .hero__content{padding-top:130px}
  .hero h1{font-size:3.55rem}
  .quickbar__grid,.card-grid,.location-grid,.feature-grid{grid-template-columns:1fr}
  .quickbar__item{border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}
  .cta-strip__inner,.site-footer__top,.site-footer__bottom{flex-direction:column;align-items:flex-start}
  .footer-nav ul{flex-wrap:wrap}
}


/* ===== Inner pages ===== */
body:not(.home) .site-header{
  position:sticky;
  top:0;
  box-shadow:0 8px 30px rgba(0,0,0,.18);
}
body.admin-bar:not(.home) .site-header{top:32px}

.inner-hero{
  position:relative;
  background:
    linear-gradient(90deg,rgba(17,17,17,.98),rgba(31,31,31,.94)),
    repeating-linear-gradient(112deg,#171717 0 38px,#252525 38px 76px);
  color:#fff;
  overflow:hidden;
}
.inner-hero:after{
  content:"";
  position:absolute;
  top:-65px;
  right:8%;
  width:150px;
  height:360px;
  transform:skewX(-24deg);
  background:linear-gradient(90deg,rgba(255,255,255,.05) 0 32%,rgba(225,6,24,.92) 32% 52%,rgba(255,255,255,.08) 52% 70%,rgba(0,0,0,.12) 70%);
  opacity:.9;
}
.inner-hero__inner{
  position:relative;
  z-index:2;
  padding:70px 0 66px;
}
.inner-hero__title{
  max-width:920px;
  margin:0;
  font-size:clamp(2.6rem,5vw,5rem);
  line-height:.96;
  letter-spacing:-.045em;
  font-weight:900;
}
.inner-hero__meta{
  margin-bottom:10px;
  color:#c8c8c8;
  font-size:.88rem;
}
.inner-hero__description{
  max-width:720px;
  margin:18px 0 0;
  color:#d3d3d3;
  font-size:1.05rem;
}
.inner-hero--large .inner-hero__inner{padding:100px 0}
.error-code{
  color:var(--hd-red);
  font-size:1rem;
  font-weight:900;
  letter-spacing:.18em;
  margin-bottom:10px;
}

.page-content{
  padding:64px 0 84px;
  background:#fff;
  min-height:40vh;
}
.content-card{
  max-width:1100px;
}
.content-narrow{max-width:1000px}
.entry-content{
  max-width:none;
  font-size:1.02rem;
}
.entry-content > *:first-child{margin-top:0}
.entry-content h2,
.entry-content h3,
.entry-content h4{
  line-height:1.1;
  letter-spacing:-.02em;
  margin-top:1.6em;
}
.entry-content h2{font-size:clamp(1.8rem,3vw,2.6rem)}
.entry-content a{color:var(--hd-red)}
.entry-content .wp-block-button__link{
  background:var(--hd-red);
  color:#fff;
  border-radius:0;
}
.entry-featured{
  margin-bottom:32px;
  border-radius:2px;
  overflow:hidden;
}

.post-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
}
.post-card{
  border:1px solid var(--hd-border);
  background:#fff;
  min-width:0;
}
.post-card__image{
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
}
.post-card__image img{width:100%;height:100%;object-fit:cover}
.post-card__body{padding:20px}
.post-card__date{font-size:.82rem;color:#777;margin-bottom:7px}
.post-card h2{font-size:1.35rem;line-height:1.15;margin:0 0 12px}
.post-card h2 a{text-decoration:none}
.post-card__excerpt{color:#616161}
.text-link{display:inline-block;margin-top:12px;color:var(--hd-red);font-weight:800;text-decoration:none}
.pagination-wrap{margin-top:36px}

/* ===== Header refinements ===== */
.site-header__inner{min-height:88px}
body:not(.home) .primary-nav a{color:#fff}
body:not(.home) .custom-logo{filter:none}
.mobile-menu-toggle{
  width:46px;
  height:42px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.mobile-menu-toggle span:not(.screen-reader-text){
  display:block;
  width:22px;
  height:2px;
  background:currentColor;
}
.screen-reader-text{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* ===== Footer ===== */
.site-footer{
  background:#f6f6f4;
  color:#171717;
  padding:58px 0 24px;
  border-top:1px solid #e6e6e2;
}
.site-footer__main{
  display:grid;
  grid-template-columns:1.25fr 1fr .65fr;
  gap:70px;
  align-items:start;
}
.footer-brand__logo .custom-logo{max-height:70px;width:auto}
.footer-site-title{color:#171717}
.footer-brand__text{
  max-width:410px;
  color:#6d6d6d;
  margin:18px 0 0;
  font-size:.95rem;
}
.footer-label{
  color:#8a8a8a;
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:.72rem;
  font-weight:800;
  margin-bottom:16px;
}
.footer-nav ul{
  list-style:none;
  margin:0;
  padding:0;
}
.footer-nav--main ul{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 26px;
}
.footer-nav a{
  text-decoration:none;
  transition:.2s ease;
}
.footer-nav--main a{
  font-size:.95rem;
  font-weight:700;
}
.footer-nav a:hover{color:var(--hd-red)}
.footer-socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.footer-social{
  width:42px;
  height:42px;
  border:1px solid #d7d7d2;
  display:grid;
  place-items:center;
  color:#171717;
  background:#fff;
  transition:.2s ease;
}
.footer-social:hover{
  color:#fff;
  background:var(--hd-red);
  border-color:var(--hd-red);
  transform:translateY(-2px);
}
.footer-social svg{
  width:19px;
  height:19px;
  fill:currentColor;
  stroke:currentColor;
  stroke-width:1.5;
}
.footer-social .icon-cutout{fill:#fff;stroke:none}

.site-footer__slogan{
  display:flex;
  align-items:center;
  gap:18px;
  margin:46px 0 24px;
  padding:26px 0;
  border-top:1px solid #ddddda;
  border-bottom:1px solid #ddddda;
  font-size:clamp(1.25rem,2.4vw,2rem);
  letter-spacing:.09em;
}
.site-footer__slogan-mark{
  width:44px;
  height:5px;
  background:var(--hd-red);
  transform:skewX(-24deg);
}
.site-footer__bottom{
  margin:0;
  padding:0;
  border:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  color:#777;
  font-size:.82rem;
}
.footer-nav--legal ul{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}
.footer-nav--legal a{color:#6f6f6f}

/* Gutenberg/WP content should remain editable and natural */
.page-content .alignwide{max-width:1200px;margin-left:auto;margin-right:auto}
.page-content .alignfull{width:100vw;margin-left:calc(50% - 50vw)}
.page-content .wp-block-cover,
.page-content .wp-block-group{margin-top:28px;margin-bottom:28px}

@media (max-width:980px){
  .site-footer__main{grid-template-columns:1fr 1fr;gap:38px}
  .footer-social-block{grid-column:1 / -1}
  .post-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  body.admin-bar:not(.home) .site-header{top:46px}
  .inner-hero__inner{padding:54px 0 50px}
  .inner-hero:after{right:-30px;opacity:.5}
  .page-content{padding:44px 0 64px}
  .site-footer{padding-top:44px}
  .site-footer__main{grid-template-columns:1fr;gap:32px}
  .footer-social-block{grid-column:auto}
  .footer-nav--main ul{grid-template-columns:1fr 1fr}
  .site-footer__bottom{align-items:flex-start}
  .post-grid{grid-template-columns:1fr}
}
