:root { --accent: #a0262a; --accent-dark: #841e22; --accent-light: #f5cfd0; --accent-soft: #fbeeee; --ease-out: cubic-bezier(.23,1,.32,1); --ease-in-out: cubic-bezier(.77,0,.175,1); }
::selection { background: #a0262a; color: white; }
.hero h1 { font-size: clamp(32px,4.3vw,64px); max-width: 900px; }
.button, .contact-form button { transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.button:hover, .contact-form button:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #a0262a26; }
.button:not(.button-outline):hover { background: var(--accent-dark); }
.quick-links > a, .product-card, .model-card, .gallery-item { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.quick-links > a:hover { background: var(--accent-soft); }
.product-card:hover, .model-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px #102d3e12; border-color: #a0262a66; }
.product-card img, .gallery-item img { transition: transform .45s ease; }
.product-card:hover img, .gallery-item:hover img { transform: scale(1.035); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #a0262a; outline-offset: 4px; }

/* Logo-Rot für alle Akzente */
.header-row nav .nav-contact { background: var(--accent); }
.header-row nav .nav-contact:hover { background: var(--accent-dark); }
.back-to-top:hover { background: var(--accent); }
.competence-section + .cta-band h2 em { color: var(--accent); }
.wizard-next { background: var(--accent); transition: background-color .2s ease; }
.wizard-next:not(:disabled):hover { background: var(--accent-dark); }
.wizard-error a { text-decoration: underline; text-underline-offset: 3px; }
.field-grid label.consent { flex-direction: row; align-items: flex-start; gap: 12px; margin: 6px 0 0; font-weight: 500; line-height: 1.6; }
.field-grid label.consent input { width: 19px; height: 19px; flex: none; margin-top: 3px; padding: 0; accent-color: var(--accent); }

/* Hover-Effekte auf allen Seiten */
.brand-logo, .text-link svg, .button svg, .nav-contact svg, .mega-menu-top a svg, .mega-menu-extra svg, .service-navigation > div > a svg,
.catalog-card, .catalog-card h3 a, .reference-item, .reference-caption h2, .product-photo-button, .product-photo-button > img, .photo-expand,
.detail-hero-photo > img, .service-detail-photo > img, .about-image > img, .detail-facts li, .check-list li, .process-grid li > span,
.competence-grid > article, .faq-list summary, .footer a, .legal-links a, .legal-links button, .topbar a, .article-toc a, .article-card,
.article-card img, .article-body a:not(.button), .legal-page a:not(.button), .contact-form input, .contact-form textarea, .contact-form select {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .25s var(--ease-out);
}
.header-row nav > a:not(.nav-contact), .nav-disclosure > summary { position: relative; }
.header-row nav > a:not(.nav-contact)::after, .nav-disclosure > summary::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-disclosure > summary::after { right: 22px; }
.header-row nav > a:not(.nav-contact):hover::after, .header-row nav > a[aria-current]::after,
.nav-disclosure > summary:hover::after, .nav-disclosure[open] > summary::after { transform: scaleX(1); }
.nav-disclosure > summary:hover { color: var(--accent); }
.topbar a:hover { color: var(--accent-light); }
.footer a:hover, .legal-links a:hover, .legal-links button:hover { color: var(--accent-light); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details[open] summary { color: var(--accent); }
.catalog-card h3 a:hover, .catalog-card:hover h3 a { color: var(--accent); }
.reference-item:hover { border-bottom-color: var(--accent); }
.reference-item:hover .reference-caption h2 { color: var(--accent); }
.product-photo-button:hover { border-color: #a0262a80; box-shadow: 0 12px 28px #102d3e14; }
.product-photo-button:hover .photo-expand { background: var(--accent); color: #fff; }
.detail-facts li:hover { border-bottom-color: var(--accent); }
.process-grid li:hover > span { background: var(--accent); color: #fff; }
.article-body a:not(.button), .legal-page a:not(.button) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article-body a:not(.button):hover, .legal-page a:not(.button):hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
.contact-form input:not([type=checkbox]):hover, .contact-form textarea:hover, .contact-form select:hover { border-color: #a0262a80; }
.contact-form input:not([type=checkbox]):focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #a0262a1f; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .brand-logo { transform: scale(1.04); }
  .button:hover svg, .text-link:hover svg, .nav-contact:hover svg, .mega-menu-top a:hover svg, .mega-menu-extra:hover svg,
  .service-navigation > div > a:hover svg { transform: translateX(5px); }
  .catalog-card:hover { transform: translateY(-6px); }
  .product-photo-button:hover { transform: translateY(-4px); }
  .product-photo-button:hover > img, .detail-hero-photo:hover > img, .service-detail-photo:hover > img, .about-image:hover > img { transform: scale(1.04); }
  .detail-facts li:hover, .check-list li:hover { transform: translateX(6px); }
  .process-grid li:hover > span { transform: scale(1.08); }
  .competence-grid > article:hover { transform: translateY(-5px); }
  .article-card:hover { transform: translateY(-6px); }
  .article-card:hover img { transform: scale(1.04); }
}

/* Cookie-Hinweis mittig */
/* No fill-mode/delay here on purpose: the banner must stay visible even if animations are paused. */
.privacy-banner { top: 50%; left: 50%; bottom: auto; right: auto; width: min(520px, calc(100vw - 32px)); transform: translate(-50%, -50%);
  box-shadow: 0 24px 80px #102d3e40; animation: banner-in .5s var(--ease-out); }
/* Transform only, no opacity: a paused animation must never make the notice invisible. */
@keyframes banner-in { from { transform: translate(-50%, calc(-50% + 18px)) scale(.96); } }
@media (max-width: 650px) { .privacy-banner { left: 50%; bottom: auto; width: calc(100vw - 24px); } }

/* Start-Animation: Logo-Intro einmal pro Besuch (html.intro setzt ein Skript im Kopf), danach Seiteninhalt nacheinander */
#site-intro { display: none; }
html.intro { --enter-base: 1.35s; }
html.intro #site-intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: #fff; cursor: pointer;
  animation: intro-out .6s var(--ease-out) 1.25s forwards; }
.site-intro-inner { display: grid; justify-items: center; gap: 16px; }
/* Decorative only, so it is a background image rather than an <img> with an empty alt. */
.site-intro-logo { width: 150px; height: 100px; background: url('/assets/bauer-logo.webp') center/contain no-repeat; animation: intro-logo .7s var(--ease-out) both; }
.site-intro-line { width: 120px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); animation: intro-line .6s var(--ease-out) .35s forwards; }
#site-intro p { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: intro-fade .5s ease .55s forwards; }
@keyframes intro-logo { from { opacity: 0; transform: translateY(12px) scale(.92); } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: translateY(-3%); } }
.hero-inner > *, .page-intro > *, .article-hero > *, .detail-hero > div:first-child > *, .legal-page > :nth-child(-n+3) {
  animation: enter-up .7s var(--ease-out) both; animation-delay: calc(var(--enter-base, 0s) + var(--i, 0) * 70ms); }
.hero-inner > :nth-child(2), .page-intro > :nth-child(2), .article-hero > :nth-child(2), .detail-hero > div:first-child > :nth-child(2), .legal-page > :nth-child(2) { --i: 1; }
.hero-inner > :nth-child(3), .page-intro > :nth-child(3), .article-hero > :nth-child(3), .detail-hero > div:first-child > :nth-child(3), .legal-page > :nth-child(3) { --i: 2; }
.hero-inner > :nth-child(4), .page-intro > :nth-child(4), .article-hero > :nth-child(4), .detail-hero > div:first-child > :nth-child(4) { --i: 3; }
.hero-inner > :nth-child(n+5), .page-intro > :nth-child(n+5), .article-hero > :nth-child(n+5), .detail-hero > div:first-child > :nth-child(n+5) { --i: 4; }
@keyframes enter-up { from { opacity: 0; transform: translateY(14px); } }
/* Safety net set by script: if animations never run, show the content instead of leaving it invisible. */
html.anim-done .hero-inner > *, html.anim-done .page-intro > *, html.anim-done .article-hero > *,
html.anim-done .detail-hero > div:first-child > *, html.anim-done .legal-page > :nth-child(-n+3) { animation: none; }

/* Obere Leiste: ruhiger – nur Ort und Telefon, gedämpfte Schrift, Telefonnummer als einziger Blickfang */
.topbar { color: #aebdc5; letter-spacing: .02em; }
.topbar .container { min-height: 34px; }
.topbar span, .topbar a { gap: 9px; font-weight: 500; }
.topbar svg { width: 13px; height: 13px; color: #f0a0a3; }
.topbar .topbar-phone { color: #fff; font-weight: 650; letter-spacing: .04em; }
.topbar .topbar-phone:hover { color: var(--accent-light); }

/* Blog-Slideshow auf der Startseite */
.blog-slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius); }
.blog-slider-track::-webkit-scrollbar { display: none; }
.blog-slider-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.blog-slide { scroll-snap-align: start; display: grid; grid-template-columns: 1.15fr 1fr; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blog-slide-image { display: block; overflow: hidden; background: var(--soft); }
.blog-slide-image img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; transition: transform .8s var(--ease-out); }
.blog-slide-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.blog-slide-body h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.25; letter-spacing: -.03em; }
.blog-slide-body h3 a { transition: color .25s ease; }
.blog-slide-body h3 a:hover { color: var(--accent); }
.blog-slide-body > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.blog-slide-body .text-link { color: var(--accent); margin-top: 6px; }
/* The newly shown slide's text glides in. Never below .25 opacity, so nothing can get stuck invisible. */
.blog-slider.is-ready .blog-slide-body > * { transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); }
.blog-slider.is-ready .blog-slide-body > :nth-child(2) { transition-delay: .06s; }
.blog-slider.is-ready .blog-slide-body > :nth-child(3) { transition-delay: .12s; }
.blog-slider.is-ready .blog-slide-body > :nth-child(4) { transition-delay: .18s; }
.blog-slider.is-ready .blog-slide:not(.is-active) .blog-slide-body > * { opacity: .25; transform: translateX(24px); }
.blog-slider-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.blog-slider-prev, .blog-slider-next { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.blog-slider-prev svg, .blog-slider-next svg { width: 20px; height: 20px; }
.blog-slider-prev:hover, .blog-slider-next:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.blog-slider-prev:disabled, .blog-slider-next:disabled { opacity: .35; cursor: default; background: #fff; border-color: var(--line); color: var(--ink); }
.blog-slider-dots { display: flex; gap: 8px; }
.blog-slider-dots button { padding: 12px 0; border: 0; background: none; cursor: pointer; }
.blog-slider-dots span { display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .3s, width .3s; }
.blog-slider-dots [aria-current='true'] span { width: 44px; background: var(--accent); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .blog-slide:hover .blog-slide-image img { transform: scale(1.04); } }
@media (max-width: 800px) {
  .blog-slide { grid-template-columns: 1fr; }
  .blog-slide-image img { min-height: 0; height: 220px; }
  .blog-slide-body { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .blog-slider-track { scroll-behavior: auto; } }

/* Touch devices keep :hover on the last tapped element, so hover colours would stay stuck.
   Reset the ones that remain on screen after a tap back to their normal colour. */
@media (hover: none) {
  .back-to-top:hover { background: var(--ink); }
  .blog-slider-prev:not(:disabled):hover, .blog-slider-next:not(:disabled):hover { background: #fff; border-color: var(--line); color: var(--ink); }
  .floating-contact:hover, .button-primary:hover, .button:not(.button-outline):hover,
  .contact-form button:hover, .wizard-next:not(:disabled):hover,
  .header-row nav .nav-contact:hover { background: var(--accent); }
  .button:hover, .contact-form button:hover { box-shadow: none; }
  .quick-links > a:hover { background: transparent; }
  .process-grid li:hover > span { background: #f7e7e7; }
}

/* Einblenden beim Scrollen */
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.reveal-visible { opacity: 1; transform: none; }

/* Blog */
.article-hero { padding-top: 32px; padding-bottom: 40px; }
.article-hero h1 { max-width: 980px; font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: 1.12; margin-top: 19px; }
.article-lead { max-width: 780px; margin-top: 23px; font-size: 19px; line-height: 1.75; color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; font-weight: 650; color: var(--muted); }
.article-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta > span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.article-cover { margin: 0 0 60px; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.article-cover img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }
.article-cover figcaption, .article-figure figcaption { padding: 12px 20px; font-size: 14px; color: var(--muted); }
.article-single { padding-bottom: 80px; }
.article-body > h2:first-child { margin-top: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 70px; align-items: start; padding-bottom: 80px; }
.article-body { max-width: 760px; font-size: 17px; line-height: 1.85; }
.article-body > * + * { margin-top: 22px; }
.article-body h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.25; letter-spacing: -.03em; margin-top: 60px; scroll-margin-top: 130px; }
.article-body h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.02em; margin-top: 36px; }
.article-body ul, .article-body ol { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.article-body ul > li { position: relative; padding-left: 28px; }
.article-body ul > li::before { content: ''; position: absolute; left: 4px; top: .75em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.article-body ol { counter-reset: step; }
.article-body ol > li { position: relative; padding-left: 50px; counter-increment: step; }
.article-body ol > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 800; color: var(--accent); }
.article-note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.article-note strong { display: block; color: var(--accent); margin-bottom: 6px; }
.article-figure { margin: 40px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.article-figure img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; }
.article-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.article-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.article-table th, .article-table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.article-table thead th { background: var(--dark); color: #fff; font-weight: 700; }
.article-table tbody tr:last-child td { border-bottom: 0; }
.article-table tbody tr { transition: background-color .2s ease; }
.article-table tbody tr:hover { background: var(--accent-soft); }
.article-table td:first-child { font-weight: 700; }
.article-aside { position: sticky; top: 130px; display: grid; gap: 22px; }
.article-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.article-toc > p { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.article-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc a { display: flex; gap: 12px; padding: 7px 10px; margin-inline: -10px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.article-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 800; }
.article-toc a:hover, .article-toc a[aria-current='true'] { background: var(--accent-soft); color: var(--accent); }
.article-cta { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 26px; }
.article-cta strong { display: block; font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.article-cta p { margin: 10px 0 20px; font-size: 14px; color: #c6d4db; }
.article-cta .button { width: 100%; }
.article-body .faq-list { margin-top: 26px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; padding-bottom: 90px; }
.article-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.article-card:hover { border-color: #a0262a66; box-shadow: 0 16px 34px #102d3e14; }
.article-card-image { overflow: hidden; background: var(--soft); }
.article-card img { width: 100%; height: 230px; object-fit: cover; }
.article-card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.article-card-body h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.03em; }
.article-card:hover h2 { color: var(--accent); }
.article-card-body > p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.article-card-body .text-link { margin-top: auto; color: var(--accent); }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-table { min-width: 560px; }
  .article-aside { position: static; order: -1; }
  .article-cta { display: none; }
}

.contact-form { margin-top: 28px; }
.contact-form button[type=submit] { background: var(--accent); color: white; cursor: pointer; }
.contact-form input, .contact-form textarea, .contact-form select, .contact-form button, .form-errors { scroll-margin-top: 160px; }
.contact-page .floating-contact { display: none; }
.contact-page .back-to-top { bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label:not(.consent) { display: block; font-weight: 700; margin: 18px 0 6px; font-size: 14px; }
.contact-form input:not([type=checkbox]), .contact-form textarea, .contact-form select { display: block; width: 100%; border: 1px solid #cad4d8; border-radius: 8px; padding: 13px 14px; font: inherit; background: white; color: var(--ink); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .input-validation-error { border-color: var(--accent); }
.field-validation-error, .form-errors { color: #8f2226; font-size: 14px; }
.validation-summary-valid { display: none; }
.form-errors:not(.validation-summary-valid) { background: #fdf1f1; border-left: 3px solid var(--accent); padding: 16px 20px; }
.consent { display: flex; align-items: start; gap: 12px; margin: 24px 0; font-size: 13px; line-height: 1.6; }
.consent input { flex-shrink: 0; width: 19px; height: 19px; margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-form button:disabled { opacity: .65; cursor: wait; }.confirmation { max-width: 850px; min-height: 55vh; }
.confirmation p { margin: 24px 0; }
@media (max-width: 650px) { .form-grid { grid-template-columns: 1fr; gap: 0; } .hero h1 { font-size: clamp(30px,7.4vw,42px); } .article-body { font-size: 16px; } .article-lead { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto !important; }
 *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; transition-duration: .2s !important; transition-delay: 0s !important; }
 .reveal-pending, .reveal-visible { opacity: 1; transform: none; }
 .button:hover, .product-card:hover, .model-card:hover, .product-card:hover img, .gallery-item:hover img { transform: none; }
}

/* Obere Leiste: Telefon und E-Mail nebeneinander; auf dem Handy statt des Orts */
.topbar-contact { display: flex; align-items: center; gap: 24px; }
.topbar .topbar-mail { color: #fff; font-weight: 500; }
.topbar .topbar-mail:hover { color: var(--accent-light); }
@media (max-width: 700px) {
  .topbar .container > span:first-child { display: none; }
  .topbar-contact { width: 100%; justify-content: space-between; gap: 10px; }
  .topbar-contact a { white-space: nowrap; font-size: 11.5px; letter-spacing: 0; gap: 7px; }
  .topbar .topbar-phone { letter-spacing: 0; }
}

/* Hauptmenü: Symbole und Kontaktkasten nur im Handy-Menü; aktuelle Seite hervorgehoben */
.nav-icon, .nav-mobile-contact { display: none; }
.nav-disclosure > summary.is-current { color: var(--accent); }
.header-row nav .nav-contact[aria-current] { color: #fff; } /* red button: keep the label readable */
@media (max-width: 1000px) {
  .header-row nav { gap: 0; padding: 6px 0 0; left: calc(50% - 50vw); right: calc(50% - 50vw); }
  .header-row nav > a, .header-row nav .nav-disclosure > summary {
    display: flex; align-items: center; gap: 16px; padding: 15px 24px; border-bottom: 1px solid var(--line);
    font-size: 17px; font-weight: 650; }
  .header-row nav .nav-icon { display: block; flex: none; width: 22px; height: 22px; color: var(--accent); }
  .header-row nav > a:not(.nav-contact)::after, .header-row nav .nav-disclosure > summary::after { display: none; }
  .header-row nav .nav-chevron { margin-left: auto; }
  .header-row nav > a[aria-current], .header-row nav .nav-disclosure > summary.is-current {
    background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); color: var(--accent); }
  .header-row nav .nav-contact, .header-row nav .nav-contact:hover {
    align-self: stretch; justify-content: flex-start; gap: 16px; padding: 15px 24px; border-radius: 0;
    background: none; color: var(--ink); }
  .header-row nav .nav-contact[aria-current] { background: var(--accent-soft); color: var(--accent); }
  .header-row nav .nav-contact > svg:last-child { display: none; }
  .header-row nav .dropdown { padding: 6px 24px 14px 62px; border-bottom: 1px solid var(--line); }
  .nav-mobile-contact { display: grid; gap: 14px; margin-top: 18px; padding: 24px; background: var(--dark); color: #fff; }
  .nav-mobile-contact strong { font-size: 16px; }
  .nav-mobile-contact a { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
  .nav-mobile-contact a:hover { color: var(--accent-light); }
  .nav-mobile-contact svg { flex: none; width: 20px; height: 20px; color: #f0a0a3; }
}

/* Instagram in der oberen Leiste; auf dem Handy nur als Symbol, Telefon/E-Mail dort ohne Symbole */
.topbar .topbar-insta { color: #fff; font-weight: 500; }
.topbar .topbar-insta:hover { color: var(--accent-light); }
@media (max-width: 700px) {
  .topbar-contact a:not(.topbar-insta) svg { display: none; }
  .topbar .topbar-insta span { display: none; }
  .topbar .topbar-insta svg { width: 16px; height: 16px; }
}
@media (max-width: 359px) { .topbar-contact a { font-size: 10.5px; } }

/* Fußzeile: dunkel, vier Spalten mit Symbolkästen und Pfeil-Links */
.footer { background: var(--dark); color: #b9c7cf; padding-top: 70px; }
.footer-grid { grid-template-columns: 1.35fr .8fr .9fr 1.1fr; gap: 48px; padding-bottom: 50px; }
.footer h3 { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.footer h3 em { font-style: normal; color: #f0a0a3; }
.footer p { color: #b9c7cf; font-size: 14px; line-height: 1.75; }
.footer p strong { color: #fff; font-weight: 700; }
.footer a { color: #d7e1e6; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer .footer-contact { display: grid; gap: 12px; margin-top: 22px; }
.footer-contact li, .footer-contact a { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.footer-contact strong { color: #fff; }
.footer-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid #ffffff26; border-radius: 6px;
  color: #f0a0a3; transition: background-color .25s, border-color .25s, color .25s; }
.footer-icon svg { width: 17px; height: 17px; }
.footer-contact a:hover .footer-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; transition: color .25s, transform .25s var(--ease-out); }
.footer-links a::before { content: '›'; color: #f0a0a3; font-weight: 700; font-size: 17px; line-height: 1; }
.footer .footer-links a:hover { color: #fff; }
.footer .footer-checks { display: grid; gap: 8px; margin: 16px 0 22px; }
.footer-checks li { display: flex; gap: 10px; font-size: 14px; color: #d7e1e6; }
.footer-checks li::before { content: '✓'; color: #f0a0a3; font-weight: 800; }
.footer .footer-cta .button { display: inline-flex; color: #fff; }
.footer-bottom { border-top-color: #ffffff1f; color: #8fa3ad; }
.legal-links a, .legal-links button { color: #b9c7cf; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .footer-links a:hover { transform: translateX(4px); } }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
@media (max-width: 650px) { .footer { padding-top: 50px; } .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Startseite: Über-uns-Kurzvorstellung nur als Text */
.about-preview.about-text-only { grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.about-text-only .about-intro { position: relative; padding-left: 26px; border-left: 3px solid var(--accent); }
.about-text-only .about-intro h2 { margin: 0; }
.about-text-only .about-body > p:first-child { margin-top: 0; }
.about-text-only .text-link { margin-top: 6px; }
@media (max-width: 1000px) { .about-preview.about-text-only { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 650px) { .about-text-only .about-intro { padding-left: 18px; } }

/* Feinschliff (Design Engineering): Druck-Feedback, kurze Übergänge, Hover nur mit Maus, sanftes Einblenden */
/* Pressables answer the press immediately: subtle scale, fast ease-out. */
.button, .contact-form button, .wizard-next, .wizard-back, .floating-contact, .back-to-top, .blog-slider-prev, .blog-slider-next,
.menu-toggle, .header-row nav .nav-contact, .hero-slider-controls button, .gallery-prev, .gallery-next, .dialog-close, .privacy-close, .privacy-reset, .choice {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s var(--ease-out), transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent; }
.button:active, .contact-form button:active, .wizard-next:not(:disabled):active, .wizard-back:active, .floating-contact:active, .back-to-top:active,
.blog-slider-prev:not(:disabled):active, .blog-slider-next:not(:disabled):active, .menu-toggle:active, .header-row nav .nav-contact:active,
.hero-slider-controls button:active, .gallery-prev:active, .gallery-next:active, .dialog-close:active, .privacy-close:active, .privacy-reset:active { transform: scale(.97); }
.choice:active { transform: scale(.98); }

/* Hover movement only where a real pointer exists; touch taps would otherwise leave cards lifted. */
.button:hover, .contact-form button:hover, .product-card:hover .card-image > img, .gallery-card:hover > img, .catalog-card:hover .catalog-image > img,
.service-select:hover, .reference-photo:hover > img, .product-card:hover, .model-card:hover, .product-card:hover img, .gallery-item:hover img { transform: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover, .contact-form button:hover { transform: translateY(-2px); }
  .button:active, .contact-form button:active { transform: translateY(0) scale(.97); }
  .product-card:hover, .model-card:hover { transform: translateY(-4px); }
  .product-card:hover .card-image > img, .product-card:hover img, .gallery-card:hover > img, .gallery-item:hover img,
  .catalog-card:hover .catalog-image > img, .reference-photo:hover > img { transform: scale(1.035); }
  .service-select:hover { transform: translateY(-2px); }
}
/* Decorative image zooms may be slower than UI, but share one strong curve. */
.product-card img, .gallery-item img, .gallery-card > img, .catalog-image > img, .reference-photo > img, .card-image > img,
.article-card img, .blog-slide-image img, .detail-hero-photo > img, .service-detail-photo > img, .product-photo-button > img {
  transition: transform .5s var(--ease-out); }
.header-row nav > a:not(.nav-contact)::after, .nav-disclosure > summary::after { transition: transform .22s var(--ease-out); }

/* Slider dots: animate transform instead of width (no layout work per frame). */
.blog-slider-dots span { width: 44px; transform: scaleX(.64); transform-origin: left center; transition: background-color .2s ease, transform .25s var(--ease-out); }
.blog-slider-dots [aria-current='true'] span { width: 44px; transform: scaleX(1); }

/* Entering elements start slightly smaller and half-transparent, never from nothing.
   Opacity starts at .5, not 0: if a tab stops painting mid-transition, nothing is left invisible. */
.back-to-top:not([hidden]) { opacity: 1; transform: none; }
@starting-style { .back-to-top:not([hidden]) { opacity: .5; transform: translateY(8px) scale(.95); } }
@media (max-width: 1000px) {
  .header-row nav.open { opacity: 1; transform: none; transition: opacity .2s var(--ease-out), transform .22s var(--ease-out); }
  @starting-style { .header-row nav.open { opacity: .5; transform: translateY(-6px); } }
}
@media (min-width: 1001px) {
  .nav-disclosure[open] > .dropdown { opacity: 1; transform: none; transform-origin: 40px top; transition: opacity .18s var(--ease-out), transform .2s var(--ease-out); }
  @starting-style { .nav-disclosure[open] > .dropdown { opacity: .5; transform: translateY(-4px) scale(.98); } }
}
/* Modal stays centred: scale from the middle. */
.gallery-dialog[open], .privacy-dialog[open] { opacity: 1; transform: none; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); }
@starting-style { .gallery-dialog[open], .privacy-dialog[open] { opacity: .5; transform: scale(.96); } }
.privacy-banner { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  .button:active, .contact-form button:active, .choice:active, .floating-contact:active, .back-to-top:active { transform: none; }
  @starting-style { .header-row nav.open, .nav-disclosure[open] > .dropdown, .gallery-dialog[open], .privacy-dialog[open], .back-to-top:not([hidden]) { transform: none; } }
}
/* Crane photo: keep the roof being built in frame, not just sky. */
img[src*="9b579b762c"] { object-position: 50% 72%; }

/* Größere Schrift am PC/Laptop: Fließtext 18px, kleine Texte nicht unter 13px. Handy bleibt unverändert. */
@media (min-width: 1001px) {
  .topbar { font-size: 13px; }
  .header-row nav, .header-row nav > a, .product-nav summary { font-size: 15.5px; }
  .eyebrow, .cta-band .eyebrow { font-size: 13px; }
  .button, .text-link, .card-link, .floating-contact { font-size: 15px; }
  .hero-inner > p:not(.eyebrow) { font-size: 19px; }
  .hero-trust { font-size: 14px; }
  .quick-links strong { font-size: 17px; }
  .quick-links div > span { font-size: 14px; }
  .about-preview p:not(.eyebrow), .section-heading > p:not(.eyebrow), .card-body > p, .process-grid p,
  .faq-list details > p, .additional-products > p:not(.eyebrow), .model-card p, .service-rows p,
  .about-editorial p:not(.eyebrow), .enquiry > p:not(.eyebrow), .blog-slide-body > p:not(.eyebrow) { font-size: 18px; }
  .faq-list summary { font-size: 18px; }
  .check-list, .card-body .check-list, .about-preview .check-list { font-size: 16px; }
  .page-intro > p:not(.eyebrow), .product-hero p:not(.eyebrow) { font-size: 19px; }
  .breadcrumb, .gallery-card small, .contact-item small, .wizard-label, .choice small, .owner-signature span { font-size: 13px; }
  .contact-info > p:not(.eyebrow), .field-grid label, .wizard-summary, .wizard-actions button, .contact-form label:not(.consent) { font-size: 15px; }
  .choice strong { font-size: 16px; }
  .article-card-body > p:not(.eyebrow) { font-size: 16px; }
  .article-body { font-size: 18px; }
  .article-meta, .article-toc a, .article-cta p { font-size: 15px; }
  .footer p, .footer a, .footer-contact li, .footer-contact a, .footer-links a, .footer-checks li { font-size: 15px; }
  .footer h3 { font-size: 16px; }
  .footer-bottom, .footer-bottom a, .source-note, .source-note a { font-size: 13px; }
}


/* Startseite, Slideshow (Vorbild: blickwert-immobilien.de): Foto über die ganze Breite, auf PC und Handy gleich aufgebaut.
   Unten links nur Zeile + Überschrift; Pfeile mittig links/rechts, Punkte unten Mitte, Pause unten rechts.
   Abgedunkelt wird nur links und unten, damit das Foto rechts und oben hell bleibt. */
.hero { display: flex; align-items: flex-end; min-height: 0; height: clamp(520px, 85vh, 860px); }
.hero-slides, .hero-shade { inset: 0; height: auto; }
.hero-slide { object-position: center 40%; }
.hero-shade { background:
  linear-gradient(90deg, rgba(12, 15, 17, .78) 0%, rgba(12, 15, 17, .5) 42%, rgba(12, 15, 17, .14) 76%, rgba(12, 15, 17, .04) 100%),
  linear-gradient(0deg, rgba(12, 15, 17, .66) 0%, rgba(12, 15, 17, 0) 46%); }
.hero-inner, .hero-inner.container { padding-top: 0; padding-bottom: clamp(78px, 11vh, 120px); padding-left: 24px; padding-right: 24px; }
.hero .eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; max-width: none; }
.hero .eyebrow::before { content: ''; flex: none; width: 52px; height: 2px; background: #f4b3b5; }
.hero h1, .hero .hero-inner h1 { font-size: clamp(1.7rem, 4.7vw, 4.3rem); line-height: 1.08; max-width: 920px; margin: 0;
  text-shadow: 0 2px 24px rgba(12, 15, 17, .45); }

/* Steuerung: identisch auf allen Größen */
.hero-slider-controls { inset: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none; pointer-events: none; }
.hero-slider-controls [data-slide-prev], .hero-slider-controls [data-slide-next], .hero-slider-controls [data-slide-pause] {
  position: absolute; width: 46px; min-width: 46px; height: 46px; padding: 0; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 0; background: rgba(12, 15, 17, .28); }
.hero-slider-controls [data-slide-prev], .hero-slider-controls [data-slide-next] { top: 50%; bottom: auto; transform: translateY(-50%); }
.hero-slider-controls [data-slide-prev] { left: 24px; right: auto; }
.hero-slider-controls [data-slide-next] { right: 24px; left: auto; }
.hero-slider-controls [data-slide-pause] { top: auto; bottom: 26px; right: 24px; left: auto; }
.hero-slider-controls .hero-dots { position: absolute; top: auto; bottom: 32px; left: 50%; transform: translateX(-50%); }
.hero-slider-controls [data-slide-prev]:active, .hero-slider-controls [data-slide-next]:active { transform: translateY(-50%) scale(.97); }

/* Handy & Tablet: gleiche Anordnung, nur kleiner */
@media (max-width: 1000px) {
  .hero { height: max(440px, 66vh); }
  .hero-inner, .hero-inner.container { padding-bottom: 92px; padding-left: 0; padding-right: 0; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .14em; gap: 12px; margin-bottom: 12px; }
  .hero .eyebrow::before { width: 34px; }
  .hero-slider-controls [data-slide-prev], .hero-slider-controls [data-slide-next] { width: 36px; min-width: 36px; height: 36px; }
  .hero-slider-controls [data-slide-prev] { left: 8px; }
  .hero-slider-controls [data-slide-next] { right: 8px; }
  .hero-slider-controls [data-slide-pause] { width: 40px; min-width: 40px; height: 40px; bottom: 26px; right: 16px; }
  .hero-slider-controls .hero-dots { bottom: 30px; }
}

/* Unter der Slideshow: Kurztext, Knöpfe und Vorteile auf hellem Grund */
.hero-intro { background: #fff; border-bottom: 1px solid var(--line); }
.hero-intro-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; grid-template-areas: 'text actions' 'trust actions';
  align-items: center; gap: 14px 48px; padding-top: 34px; padding-bottom: 34px; }
.hero-intro-inner > p { grid-area: text; margin: 0; max-width: 640px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.hero-intro .hero-actions { grid-area: actions; margin: 0; }
.hero-intro .hero-trust { grid-area: trust; margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.hero-intro .hero-trust svg { color: var(--accent); }
.hero-intro .button-outline { color: var(--ink); border-color: var(--line); background: #fff; backdrop-filter: none; }
.hero-intro .button-outline:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
@media (max-width: 1000px) {
  .hero-intro-inner { grid-template-columns: 1fr; grid-template-areas: 'text' 'actions' 'trust'; gap: 20px; padding-top: 28px; padding-bottom: 30px; }
  .hero-intro-inner > p { font-size: 16px; }
  .hero-intro .hero-trust { gap: 10px 18px; font-size: 13px; }
}
@media (max-width: 650px) {
  .hero-intro .hero-actions { display: grid; gap: 10px; }
  .hero-intro .hero-actions .button { justify-content: space-between; }
}
