/* Grundlagen und Markenfarben. RGB-Werte aus den gelieferten SVG-Dateien. */
:root {
  --blue: #253563;
  --stripe-blue: #4169b2;
  --green: #01752e;
  --stripe-green: #1ba249;
  --yellow: #fdd903;
  --ink: #202927;
  --muted: #626b68;
  --paper: #ffffff;
  --warm: #f4f5ef;
  --line: #dde2db;
  --content-width: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; border-radius: 2px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { letter-spacing: -.045em; }
h2 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 600; }
h3 { font-size: 26px; letter-spacing: -.025em; font-weight: 600; }
.container { width: min(var(--content-width), calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 90px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.6; margin-bottom: 22px; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 20; padding: 12px 20px; background: white; color: var(--blue); }
.skip-link:focus { top: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.text-link:hover { color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 52px; padding: 13px 21px; font-size: 14px; font-weight: 600; transition: background .2s ease; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--green); }

/* Kopf und Navigation: im Dokumentfluss mit klebendem Kopfbereich. */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { width: 62px; height: 77px; object-fit: contain; }
.brand-name { display: block; color: var(--blue); font-size: 29px; font-weight: 700; letter-spacing: .035em; line-height: 1.1; }
.brand-description { display: block; font-size: 8px; letter-spacing: .13em; margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 600; }
.main-nav a { padding-block: 12px; }
.main-nav a:hover, .main-nav a[aria-current="location"] { color: var(--green); }
.main-nav .nav-contact { color: var(--blue); border: 1px solid var(--line); padding: 11px 18px; display: flex; gap: 30px; align-items: center; }
.nav-contact:hover { border-color: var(--green); }

/* Einstieg: Text und Bild bleiben auch ohne Skript sichtbar. */
.hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; align-items: center; padding-block: 66px 58px; }
.hero-copy { padding-block: 15px; }
.hero .eyebrow { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.status-dot, .color-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.hero h1 { font-size: clamp(40px, 4.3vw, 64px); font-weight: 600; line-height: 1.08; }
.hero h1 span { color: var(--blue); }
.hero-description { color: var(--muted); max-width: 450px; font-size: 16px; line-height: 1.8; margin-top: 27px; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 32px; flex-wrap: wrap; }
.hero-location { color: var(--muted); font-size: 11px; margin-top: 35px; }
.hero-location span { padding-inline: 10px; color: #a3aaa5; }
.hero-visual { position: relative; padding-bottom: 28px; }
.hero-photo { width: 100%; height: 400px; object-fit: cover; object-position: 38% center; }
.hero-visual figcaption { padding: 19px 22px; background: var(--blue); color: white; display: grid; gap: 4px; font-size: 12px; }
.image-label { font-size: 9px; font-weight: 700; letter-spacing: .13em; color: #e8ecf5; }
.photo-stripes { position: absolute; right: -16px; bottom: 9px; width: 57%; transform: skewX(-28deg); display: grid; gap: 4px; }
.photo-stripes span { height: 12px; }
.photo-stripes span:nth-child(1), .footer-stripes span:nth-child(1) { background: var(--stripe-blue); }
.photo-stripes span:nth-child(2), .footer-stripes span:nth-child(2) { background: var(--stripe-green); }
.photo-stripes span:nth-child(3), .footer-stripes span:nth-child(3) { background: var(--yellow); }
.brand-divider { width: 100%; overflow: hidden; }
.brand-divider img { width: 100%; min-width: 1000px; }
.expertise-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.expertise-bar span::before { content: '+'; margin-right: 12px; color: var(--green); font-size: 17px; }

/* Leistungen: nach Schwerpunkt geordnete Zeilen mit nativen, aufklappbaren Details. */
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 46px; }
.section-heading > p { color: var(--muted); font-size: 14px; max-width: 325px; }
.section-heading .eyebrow { color: var(--green); }
.service { display: grid; grid-template-columns: 250px minmax(0, 1fr) 44px; gap: 40px; padding-block: 32px; border-top: 1px solid var(--line); align-items: start; }
.service-featured { border-top: 3px solid var(--blue); }
.service-featured h3, .service-featured .service-category { color: var(--blue); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-image img { width: 100%; height: 174px; object-fit: cover; }
.service-category { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin-bottom: 13px; }
.color-dot.blue { background: var(--stripe-blue); }
.color-dot.green { background: var(--stripe-green); }
.color-dot.yellow { background: var(--yellow); }
.service-content > p:not(.service-category) { color: var(--muted); font-size: 14px; margin-top: 13px; max-width: 690px; }
.service-number { font-size: 13px; color: #8b938f; justify-self: end; }
details { font-size: 14px; margin-top: 15px; }
summary { cursor: pointer; list-style: none; display: inline-flex; gap: 20px; align-items: center; font-size: 12px; font-weight: 600; min-height: 28px; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--green); }
summary span { font-size: 18px; font-weight: 400; transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details p, details ul { color: var(--muted); margin-top: 12px; }
details ul { padding-left: 20px; }
details .text-link { margin-top: 12px; }

/* Persönlichkeit und Einsatzgebiet. */
.about-section { background: var(--warm); padding-block: 60px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 510px); justify-content: center; align-items: center; gap: 65px; }
.portrait { max-width: 420px; }
.portrait img { width: 100%; object-fit: cover; }
.portrait figcaption { padding-top: 19px; display: grid; gap: 3px; border-bottom: 1px solid #cfd6ce; padding-bottom: 19px; }
.portrait figcaption strong { font-size: 17px; font-weight: 600; }
.portrait figcaption span { font-size: 12px; color: var(--muted); }
.about-copy .eyebrow { color: var(--green); }
.about-copy h2 { font-size: clamp(28px, 2.5vw, 32px); }
.about-copy .eyebrow { margin-bottom: 14px; }
.about-lead { font-size: 18px; line-height: 1.6; margin-block: 18px 12px; }
.about-copy > p:not(.eyebrow):not(.about-lead) { color: var(--muted); font-size: 14px; margin-top: 13px; }
.about-facts { margin-top: 22px; padding-top: 16px; border-top: 1px solid #cfd6ce; display: flex; gap: 50px; }
.about-facts div { display: grid; gap: 3px; }
.about-facts strong { color: var(--blue); font-size: 18px; font-weight: 600; }
.about-facts span { font-size: 11px; color: var(--muted); }
.region-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.region-section .eyebrow { color: var(--green); }
.region-copy { color: var(--muted); font-size: 15px; padding-top: 37px; }
.region-copy p + p { margin-top: 15px; }
.region-copy .text-link { margin-top: 22px; color: var(--ink); }

/* Kontakt und Fußbereich. */
.contact-section { background: var(--blue); color: white; position: relative; overflow: hidden; padding-block: 76px 96px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.contact-section .eyebrow { color: #c9d4ed; }
.contact-section h2 { font-size: clamp(36px, 4vw, 54px); }
.contact-grid > div:first-child > p:last-child { font-size: 14px; color: #d2d9e8; max-width: 360px; margin-top: 24px; }
.contact-details { padding-top: 9px; }
.contact-link { display: grid; gap: 8px; padding-block: 17px 24px; border-bottom: 1px solid #53618a; }
.contact-link > span { font-size: 9px; letter-spacing: .12em; color: #d2d9e8; }
.contact-link strong { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: clamp(18px, 2.1vw, 27px); font-weight: 500; letter-spacing: -.025em; }
.contact-link:hover strong { color: var(--yellow); }
.contact-section a:focus-visible { outline-color: var(--yellow); }
address { margin-top: 28px; font-style: normal; font-size: 13px; color: #d2d9e8; line-height: 1.8; }
address strong { color: white; font-weight: 600; }
.contact-hint { font-size: 11px; line-height: 1.8; color: #c9d4ed; margin-top: 20px; max-width: 400px; }
.footer-stripes { display: grid; gap: 5px; width: 42%; position: absolute; right: -40px; bottom: 0; transform: skewX(-28deg); }
.footer-stripes span { height: 10px; }
.site-footer { min-height: 83px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 11px; }
.site-footer nav { display: flex; gap: 30px; }
.site-footer a:hover { color: var(--green); }

/* Gemeinsame Darstellung für die übernommenen Rechtstexte. */
.legal-content { max-width: 800px; padding-block: 65px 90px; overflow-wrap: anywhere; }
.legal-content h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 35px; }
.legal-content h2 { font-size: 25px; margin-block: 34px 15px; letter-spacing: -.02em; }
.legal-content h3 { font-size: 19px; margin-block: 28px 12px; }
.legal-content p { margin-top: 12px; color: var(--muted); }
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-content li { margin-top: 8px; }
.legal-back { margin-bottom: 30px; }

/* Tablet. */
@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 30px; }
  .hero h1 { font-size: 43px; }
  .hero-photo { height: 370px; }
  .hero-actions { gap: 18px; }
  .service { grid-template-columns: 210px minmax(0, 1fr) 25px; gap: 28px; }
  .about-grid, .region-section, .contact-grid { gap: 55px; }
  .main-nav { gap: 24px; }
}

/* Mobil: vollständige Navigation, keine versteckten Inhalte. */
@media (max-width: 760px) {
  html { scroll-padding-top: 142px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 115px; padding-block: 13px 11px; flex-direction: column; align-items: stretch; gap: 10px; }
  .brand img { width: 30px; height: 40px; }
  .brand-name { font-size: clamp(15px, 4.5vw, 23px); }
  .brand-description { font-size: 7px; }
  .main-nav { justify-content: space-between; gap: 10px; font-size: 12px; white-space: nowrap; }
  .main-nav a { padding-block: 6px; }
  .main-nav .nav-contact { border: 0; padding: 6px 0; gap: 8px; }
  .hero { grid-template-columns: 1fr; padding-block: 35px 24px; gap: 32px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(35px, 7.6vw, 56px); }
  .hero .eyebrow { font-size: 9px; margin-bottom: 19px; }
  .hero-description { margin-top: 22px; font-size: 15px; max-width: 520px; }
  .hero-actions { margin-top: 24px; gap: 20px; }
  .hero-location { margin-top: 24px; font-size: 10px; }
  .hero-photo { height: 290px; }
  .photo-stripes { right: 4px; width: 55%; }
  .brand-divider img { min-width: 800px; }
  .expertise-bar { gap: 13px; padding-block: 19px; flex-wrap: wrap; justify-content: flex-start; font-size: 10px; }
  .expertise-bar span::before { margin-right: 7px; font-size: 12px; }
  .section { padding-block: 55px; }
  .section-heading { align-items: start; flex-direction: column; gap: 18px; margin-bottom: 30px; }
  .section-heading > p { max-width: 450px; }
  .eyebrow { margin-bottom: 16px; font-size: 10px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  .service { grid-template-columns: 1fr; gap: 20px; padding-block: 26px; position: relative; }
  .service-image { max-width: 100%; }
  .service-image img { height: 205px; }
  .service-number { position: absolute; right: 12px; top: 37px; background: white; padding: 2px 8px; color: var(--blue); }
  .service-category { margin-bottom: 10px; }
  .about-section { padding-block: 55px; }
  .about-grid, .region-section, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .portrait { max-width: 360px; }
  .about-facts { gap: 35px; }
  .region-copy { padding-top: 0; }
  .contact-section { padding-block: 55px 76px; }
  .contact-section h2 { font-size: 43px; }
  .contact-link strong { font-size: 23px; }
  .footer-stripes { width: 65%; }
  .site-footer { padding-block: 24px; align-items: start; flex-direction: column; gap: 13px; }
  .site-footer nav { gap: 24px; }
  .legal-content { padding-block: 40px 60px; }
}
@media (max-width: 380px) {
  .main-nav { font-size: 11px; gap: 8px; }
  .main-nav .nav-contact { gap: 5px; }
  .contact-link strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header { position: static; }
  .hero-actions, .main-nav, .footer-stripes, .photo-stripes, .brand-divider { display: none; }
  .section, .about-section, .contact-section { padding-block: 25px; }
  .contact-section { background: white; color: black; }
  .contact-section p, .contact-section address, .contact-link > span, .contact-section address strong { color: black; }
  .service, .portrait { break-inside: avoid; }
}

/* Ausführliche Leistungsseiten: kurze Orientierung und gut lesbare Textspalte. */
.service-highlights { padding-left: 18px; color: var(--muted); font-size: 14px; margin-block: 18px; }
.service-highlights li + li { margin-top: 5px; }
.service-page-link { color: var(--blue); margin-top: 6px; }
.detail-hero { padding-block: 35px 64px; }
.detail-hero > .text-link { color: var(--muted); margin-bottom: 38px; }
.detail-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 60px; }
.detail-hero h1 { font-size: clamp(34px, 3.7vw, 53px); color: var(--blue); overflow-wrap: anywhere; }
.detail-hero .eyebrow { color: var(--green); }
.detail-lead { font-size: 18px; line-height: 1.7; color: var(--muted); margin-block: 25px 28px; }
.detail-hero-grid > img { width: 100%; height: 350px; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: 70px; align-items: start; border-top: 1px solid var(--line); padding-block: 55px 70px; }
.detail-sidebar { position: sticky; top: 135px; }
.detail-sidebar .eyebrow { margin-bottom: 15px; color: var(--green); }
.detail-sidebar nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.detail-sidebar nav a:hover { color: var(--green); }
.detail-sidebar > .text-link { margin-top: 25px; color: var(--blue); }
.detail-body { min-width: 0; }
.detail-body p, .detail-body li { color: var(--muted); line-height: 1.85; }
.detail-body p + p { margin-top: 17px; }
.detail-body strong { color: var(--ink); font-weight: 600; }
.detail-section { padding-top: 35px; margin-top: 35px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.detail-section h2 { font-size: clamp(26px, 2.5vw, 34px); letter-spacing: -.025em; line-height: 1.2; margin-bottom: 23px; }
.detail-section ul { padding-left: 22px; margin-block: 20px; }
.detail-section li + li { margin-top: 7px; }
.detail-cta { background: var(--warm); padding: 32px; margin-top: 45px; }
.detail-cta h2 { font-size: 30px; margin-bottom: 24px; }
.detail-cta .text-link { display: flex; margin-top: 20px; }
.related-services { border-top: 1px solid var(--line); padding-block: 35px 50px; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.related-services .eyebrow { flex-basis: 100%; margin: 0; color: var(--green); }
.related-services a { color: var(--blue); font-size: 15px; }
.related-services a:hover { color: var(--green); }
@media (max-width: 1050px) {
 .detail-hero-grid { gap: 32px; }
 .detail-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
 .detail-hero { padding-block: 25px 35px; }
 .detail-hero > .text-link { margin-bottom: 28px; }
 .detail-hero-grid { grid-template-columns: 1fr; gap: 30px; }
 .detail-hero-grid > img { height: 230px; }
 .detail-lead { font-size: 16px; }
 .detail-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 30px 45px; }
 .detail-sidebar { position: static; background: var(--warm); padding: 22px; }
 .detail-section { scroll-margin-top: 150px; margin-top: 28px; padding-top: 28px; }
 .detail-cta { padding: 24px; }
 .detail-cta h2 { font-size: 27px; }
}
@media print {
 .detail-sidebar, .related-services, .detail-cta { display: none; }
 .detail-layout { display: block; }
 .detail-hero-grid { display: block; }
 .detail-hero-grid > img { display: none; }
}

/* Leistungsbilder mit optionaler Kennzeichnung als Symbolbild. */
.detail-service-photo { width: 100%; height: 350px; object-fit: cover; }
.detail-image-caption { font-size: 11px; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) {
 .detail-service-photo { height: 230px; }
}
@media print {
 .detail-hero-grid > figure { display: none; }
}

/* Bildausschnitte auf die Prüfgeräte und Lötstellen ausrichten. */
.service-image img[src="assets/elektropruefung.jpg"],
.detail-hero-grid > img[src="assets/elektropruefung.jpg"] { object-position: 85% center; }
.service-image img[src="assets/dichtigkeitspruefung.jpg"],
.detail-hero-grid > img[src="assets/dichtigkeitspruefung.jpg"] { object-position: 40% center; }
