/* PI-TT 6.0: production HTML/CSS rendition of the approved forest-green / photograph hero.
   The hero continues using the genuine PI-TT photo, real prices and editable CMS content. */
@media (min-width: 761px) {
  .hero-v4 {
    position: relative;
    display: block;
    height: clamp(476px, 30vw, 535px);
    min-height: 476px;
    max-height: none;
    overflow: hidden;
    background: #0a392c;
    isolation: isolate;
  }
  .hero-v4 > .hero-image-v4 {
    position:absolute;
    inset:0 0 0 22%;
    z-index:0;
    width:78%;
    height:100%;
    min-height:0;
    overflow:hidden;
    background:#789775;
  }
  .hero-v4 > .hero-image-v4 img {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:50% 48%;
    filter:saturate(1.08) contrast(1.02);
  }
  .hero-v4 > .hero-image-v4::after {display:none;}
  .hero-v4::before {
    content:"";
    position:absolute;
    top:0;left:0;bottom:0;
    width:54%;
    background: url('/assets/hero-curve-v6.svg') no-repeat left center/100% 100%;
    z-index:2;
    pointer-events:none;
  }
  .hero-v4::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:3;
    pointer-events:none;
    background: url('/assets/hero-ribbon-v6.svg') no-repeat center/100% 100%;
  }
  .hero-v4-copy {
    position:absolute;
    inset:0;
    z-index:4;
    background:transparent;
    overflow:visible;
    pointer-events:none;
  }
  .hero-v4-copy::before,.hero-v4-copy::after {display:none;}
  .hero-v4-copy-inner {
    position:relative;
    z-index:5;
    width:100%;max-width:none;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    padding: 20px 0 35px clamp(38px,4.15vw,76px);
    background:none;
  }
  .hero-v4 .hero-eyebrow {display:none;}
  .hero-v4 h1 {
    margin:0 0 23px;
    padding:0;
    font-size:clamp(51px,4.3vw,72px);
    font-weight:840;
    line-height:.98;
    letter-spacing:-.069em;
    color:#faf8f0;
    max-width:740px;
    text-wrap:nowrap;
  }
  .hero-v4 h1 em {
    font-style:normal;
    color:#e4f482;
    display:inline;
    position:relative;
    white-space:nowrap;
  }
  .hero-v4 h1 em::after {
    content:"";
    display:block;
    position:absolute;
    border:0;
    width:103%;
    height:7px;
    background:#e4f482;
    bottom:-.12em;
    left:-.02em;
    border-radius:100% 7% 75% 8%;
    transform:rotate(-4deg);
  }
  .hero-lead-v4 {
    max-width:435px;
    margin:0 0 33px;
    font-size:clamp(17px,1.3vw,21px);
    line-height:1.43;
    color:#f7f7ef;
  }
  .hero-v4 .hero-buttons-v4 {display:flex;gap:12px;align-items:center;pointer-events:auto;}
  .hero-v4 .hero-book-v4 {
    border:0;
    min-height:72px;
    padding:0 26px;
    border-radius:999px;
    font-size:clamp(19px,1.75vw,25px);
    letter-spacing:-.047em;
    font-weight:810;
    background:#e6f783;
    color:#0a3529;
    box-shadow:none;
    gap:14px;
    display:inline-flex;
    align-items:center;
    text-decoration:none;
  }
  .hero-v4 .hero-book-v4 svg {width:34px;height:34px;flex-shrink:0;}
  .hero-v4 .hero-go-v4 {margin-left:13px;font-size:29px;line-height:1;}
  .hero-v4 .hero-rate-v4 {
    position:absolute;
    left:clamp(450px,29vw,515px);
    right:auto;
    bottom:42px;
    z-index:8;
    width:242px;
    min-width:0;
    padding:26px 24px 25px;
    margin:0;
    border-radius:24px;
    background:#f9f6eb;
    box-shadow:0 8px 25px #102e2719;
    transform:none;
    pointer-events:none;
  }
  .hero-v4 .rate-v4 {display:flex;align-items:baseline;gap:11px;white-space:nowrap;}
  .hero-v4 .rate-v4 strong {font-size:clamp(50px,4vw,64px);font-weight:830;letter-spacing:-.066em;line-height:1.01;}
  .hero-v4 .rate-v4 span {font-size:clamp(20px,1.95vw,27px);font-weight:750;letter-spacing:-.038em;line-height:1;}
  .hero-v4 .hero-rate-v4 p {font-size:16px;font-weight:740;letter-spacing:-.025em;line-height:1.14;margin:9px 0 0;}
  .values-v4 {position:relative;background:#faf9f2;margin-top:0;z-index:1;border-bottom:none;}
  .values-grid-v4 {padding:22px 0 23px;min-height:100px;}
  .value-v4 {gap:16px;}
  .value-v4 svg {width:45px;height:45px;}
  .value-v4 strong {font-size:19px;}
}
/* Tablet: keep the curved split layout, but prevent content from covering the car. */
@media (min-width:761px) and (max-width:1190px) {
  .hero-v4 {height:485px;min-height:485px;}
  .hero-v4::before {width:64%;}
  .hero-v4 h1 {font-size:clamp(41px,4.6vw,54px);}
  .hero-lead-v4 {font-size:16px;max-width:350px;}
  .hero-v4 .hero-book-v4 {min-height:62px;font-size:19px;padding:0 20px;}
  .hero-v4 .hero-rate-v4 {bottom:19px;left:clamp(340px,41vw,440px);width:205px;padding:14px 18px;}
  .hero-v4 .rate-v4 strong {font-size:47px;}
  .hero-v4 .rate-v4 span {font-size:19px;}
  .hero-v4 .hero-rate-v4 p {font-size:13px;}
  .hero-v4 > .hero-image-v4 {left:20%;width:80%;}
}
/* Mobile: the story and real photo stay separate to keep the complete car visible. */
@media (max-width:760px) {
  .hero-v4 {
    display:flex;
    flex-direction:column;
    height:auto;
    min-height:0;
    max-height:none;
    overflow:hidden;
    background:#0b3d30;
  }
  .hero-v4::before,.hero-v4::after {display:none;}
  .hero-v4-copy {position:relative;z-index:1;background:radial-gradient(ellipse at 50% 35%,#154c3d,#082e26 100%);pointer-events:auto;}
  .hero-v4-copy-inner {width:100%;display:flex;align-items:flex-start;padding:51px 24px 36px;min-height:0;}
  .hero-v4 .hero-eyebrow {display:none;}
  .hero-v4 h1 {font-size:clamp(43px,10.1vw,62px);line-height:1.01;letter-spacing:-.06em;margin:0 0 27px;max-width:100%;}
  .hero-v4 h1 em{color:#e6f783;font-style:normal;position:relative;}
  .hero-v4 h1 em::after {content:"";position:absolute;left:0;right:0;bottom:-7px;height:4px;transform:rotate(-3deg);background:#e6f783;border:0;border-radius:100%;}
  .hero-lead-v4 {max-width:530px;line-height:1.5;font-size:17px;margin-bottom:25px;}
  .hero-v4 .hero-book-v4 {font-size:20px;min-height:60px;padding:0 20px;gap:9px;}
  .hero-v4 .hero-book-v4 svg{width:30px;height:30px;}
  .hero-v4 .hero-rate-v4 {position:relative;left:auto;bottom:auto;right:auto;transform:none;margin:25px 0 0;min-width:0;width:238px;padding:17px 21px;background:#fcf6e8;border-radius:22px;}
  .hero-v4 .rate-v4 strong{font-size:52px;}
  .hero-v4 .rate-v4 span{font-size:21px;}
  .hero-v4 .hero-rate-v4 p{font-size:14px;}
  .hero-v4 > .hero-image-v4 {order:2;position:relative;inset:auto;width:100%;height:auto;aspect-ratio:1.62/1;overflow:hidden;}
  .hero-v4 > .hero-image-v4 img {object-fit:cover;object-position:center center;}
}

/* Align the first editorial row with the approved mockup without inventing news. */
@media (min-width:1191px) {
  .news-section-v4 .shell {grid-template-columns: minmax(245px, .235fr) minmax(0, 1fr);gap:34px;}
  .news-heading-v4 h2 {font-size:clamp(48px,3.4vw,57px);}
}
.news-card-v4.news-resource-v5:nth-child(1) {background:#f8ece7;}
.news-card-v4.news-resource-v5:nth-child(2) {background:#edf0e3;}
.news-card-v4.news-resource-v5:nth-child(3) {background:#fbf2dd;}
.news-card-v4.news-resource-v5:nth-child(4) {background:#e9eee2;}

/* News: Termine in hellem Himmelblau, klar unterscheidbar von Vereinsmeldungen. 
   Applies to published Termine as well as the fallback booking card. */
.news-card-v4.news-v4-termin,
.news-card-v4.news-resource-v5.news-v4-termin,
.news-card-v4.news-resource-v5.news-v4-termin:nth-child(1),
.news-card-v4.news-resource-v5.news-v4-termin:nth-child(2),
.news-card-v4.news-resource-v5.news-v4-termin:nth-child(3),
.news-card-v4.news-resource-v5.news-v4-termin:nth-child(4) {
  background:#e1f1fb;
  border-color:#cfE5f2;
}
.news-card-v4.news-v4-termin .news-icon-v4 {
  background:#c7e6f8;
  color:#176887;
}
.news-card-v4.news-v4-termin .news-kicker-v4 {
  color:#165e7d;
}
.news-card-v4.news-v4-termin .news-arrow-v4 {
  color:#165e7d;
}


/* PI-TT 6.2 — Aktuelles: show complete CMS text, never clip cards.
   A news item may contain more lines than the design preview; let the card
   and its grid row expand to the longest published item. */
.news-grid-v4 {
  align-items: stretch;
  grid-auto-rows: auto;
}
.news-card-v4 {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  overflow: visible;
  min-width: 0;
  padding-bottom: 24px;
}
.news-card-v4 h3,
.news-card-v4 p,
.news-kicker-v4 {
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.news-card-v4 p {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  margin-bottom: 18px;
  line-height: 1.52;
}
.news-bottom-v4 {
  margin-top: auto;
  padding-top: 8px;
  flex-shrink: 0;
  min-height: 24px;
}
/* Keep text legible across narrower windows rather than forcing four thin cards. */
@media (min-width: 1041px) and (max-width: 1280px) {
  .news-section-v4 .shell { display: block; }
  .news-heading-v4 { padding: 0 0 24px; }
  .news-heading-v4 p { max-width: 480px; }
  .news-grid-v4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* PI-TT 6.3 – Partner logos: natural brand colours, clickable, compact central group.
   This overrides the legacy full-width space-between + grayscale logo strip. */
.partners,
.partners.partners-v63 {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:clamp(14px,2.4vw,36px);
  width:100%;
  max-width:760px;
  margin:24px auto 8px;
}
.partners .partner-link {
  display:inline-flex;
  flex:0 1 205px;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-width:0;
  min-height:74px;
  padding:7px 5px;
  border-radius:14px;
  transition:transform .18s ease,background-color .18s ease;
}
.partners .partner-link:hover,
.partners .partner-link:focus-visible {
  transform:translateY(-2px);
  background-color:rgba(28,72,53,.05);
}
.partners .partner {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:67px;
  object-fit:contain;
  filter:none !important;
  opacity:1 !important;
}
@media(max-width:700px){
  .partners,.partners.partners-v63 {max-width:520px;gap:12px 16px;}
  .partners .partner-link {flex:0 1 155px;min-height:64px;}
  .partners .partner {max-height:55px;}
}
@media(max-width:420px){
  .partners,.partners.partners-v63 {gap:8px;}
  .partners .partner-link {flex:0 1 145px;min-height:60px;}
  .partners .partner {max-height:48px;}
}

/* PI-TT 6.4 – cleaner subpage titles: no duplicated breadcrumb path. */
.breadcrumbs, .breadcrumb, nav[aria-label="Brotkrumennavigation"], nav[aria-label="Breadcrumb"] { display:none !important; }
.subhero { padding-top: clamp(42px, 5vw, 72px); }
@media(max-width:760px) { .subhero { padding-top: 39px; } }

/* PI-TT 7.0 – calibrated wordmark alignment.
   A typographic baseline alone makes the small glyphs (especially the descenders)
   visually extend below the PI-TT logotype. Align their visible lower edges.
   Keep navigation and the rounded action unchanged. */
@media (min-width: 1041px) {
  .site-header { height: 100px; }
  .site-header .header-inner {
    align-items: baseline !important;
    padding: 28px 0 0 !important;
  }
  .site-header .brand {
    display: inline-flex;
    align-items: baseline !important;
    align-self: baseline !important;
    padding: 0 !important;
    white-space: nowrap;
  }
  .site-header .brand-word,
  .site-header .brand-sub {
    display: inline-block;
    line-height: 1 !important;
    vertical-align: baseline;
  }
  .site-header .brand-sub {
    /* Proportional to font-size; holds under browser zoom. */
    transform: translateY(-.14em) !important;
  }
  .site-header .nav {
    align-self: baseline !important;
    align-items: baseline !important;
    padding: 0 !important;
  }
  .site-header .nav a {
    line-height: 1 !important;
    min-height: 0 !important;
  }
  .site-header .header-cta {
    align-self: center !important;
    padding: 0 !important;
    transform: translateY(-13px) !important;
  }
}


/* PI-TT 7.1 – replace split wordmark with a single SVG logo.
   This avoids all baseline and optical alignment issues between "PI-TT"
   and "Das Bürgerauto" in header and footer. */
.brand-mark{display:inline-flex;align-items:center;min-width:0;gap:0;line-height:0}
.brand-logo{display:block;width:auto;max-width:100%}
.brand-logo-header{height:44px}
.brand-logo-footer{height:38px}
.site-header .header-inner{align-items:center !important;padding:0 !important;height:100%}
.site-header .brand{align-self:center !important;padding:0 !important;white-space:nowrap}
.site-header .nav{align-self:center !important;padding:0 !important}
.site-header .nav a{line-height:1 !important}
.site-header .header-cta{align-self:center !important;padding:0 !important;transform:none !important}
@media (min-width:1041px){
  .site-header{height:100px}
  .site-header .header-inner{gap:clamp(22px,2.7vw,40px)}
  .site-header .nav{margin-left:auto}
}
@media (max-width:1040px){
  .brand-logo-header{height:34px}
  .brand-logo-footer{height:30px}
}
@media (max-width:540px){
  .brand-logo-header{height:28px}
  .brand-logo-footer{height:25px}
}
