/* ============================================================
   Elektrotechnik Hörandl – zentrale Gestaltung
   ============================================================ */
:root {
  --navy: #10233f;
  --navy-deep: #09172b;
  --blue: #174f8a;
  --yellow: #f5c842;
  --yellow-dark: #d6a600;
  --white: #fff;
  --off-white: #f5f7fa;
  --text: #24354a;
  --muted: #647287;
  --border: #dce3eb;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(16, 35, 63, .1);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--text); background: var(--white); font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.65; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; color: var(--white); background: var(--navy); border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Typografie und wiederverwendbare Elemente */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.13; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(2.8rem, 6vw, 5.25rem); letter-spacing: -.055em; }
h1 em { color: var(--blue); font-style: normal; }
h2 { margin-bottom: 24px; font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -.04em; }
h3 { font-size: 1.3rem; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 3px; background: var(--yellow); }
.eyebrow.light { color: #cdd9e8; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 54px; padding: 0 24px; border: 0; border-radius: 7px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .25s, background .25s, box-shadow .25s; }
.button-primary { color: var(--navy-deep); background: var(--yellow); box-shadow: 0 10px 25px rgba(245, 200, 66, .24); }
.button-primary:hover { background: #ffd65d; box-shadow: 0 14px 30px rgba(245, 200, 66, .34); transform: translateY(-2px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 52px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); }
.section-heading.centered { display: block; max-width: 720px; margin: 0 auto 55px; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }

/* Header und Navigation */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--navy); background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(16,35,63,.08); backdrop-filter: blur(12px); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 25px rgba(9,23,43,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.logo-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy-deep); background: var(--yellow); border-radius: 5px 13px 5px 13px; font-size: 1.35rem; font-weight: 900; }
.logo strong, .logo small { display: block; line-height: 1.05; }
.logo strong { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.logo small { margin-top: 3px; font-size: 1.25rem; font-weight: 800; }
.main-nav ul { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.main-nav a { font-size: .93rem; font-weight: 700; text-decoration: none; }
.main-nav a:not(.nav-cta):hover { color: var(--blue); }
.main-nav .nav-cta { padding: 11px 18px; color: var(--white); background: var(--navy); border-radius: 6px; }
.nav-toggle { display: none; width: 46px; height: 42px; padding: 9px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: transform .25s, opacity .25s; }

/* Hero */
.hero { position: relative; min-height: 750px; padding: 180px 0 95px; overflow: hidden; background: linear-gradient(110deg, #f8fafc 0%, #f8fafc 60%, #edf3f8 60%); }
.hero::before { position: absolute; inset: auto auto -130px -100px; width: 380px; height: 380px; content: ""; border: 1px solid rgba(23,79,138,.12); border-radius: 50%; }
.hero-glow { position: absolute; top: 80px; right: 5%; width: 400px; height: 400px; background: rgba(245,200,66,.14); border-radius: 50%; filter: blur(80px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.45fr .75fr; align-items: center; gap: 65px; }
.hero-text { max-width: 690px; margin-bottom: 35px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.text-link { color: var(--navy); font-weight: 800; text-decoration: none; }
.text-link span { margin-left: 8px; color: var(--blue); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin: 52px 0 0; padding: 0; color: var(--muted); font-size: .88rem; list-style: none; }
.hero-trust span { display: inline-grid; width: 21px; height: 21px; margin-right: 6px; place-items: center; color: var(--navy); background: var(--yellow); border-radius: 50%; font-weight: 900; }
.hero-visual { position: relative; display: grid; min-height: 410px; place-items: center; }
.hero-visual::before { position: absolute; width: 360px; height: 360px; content: ""; border: 1px solid rgba(23,79,138,.2); border-radius: 50%; box-shadow: inset 0 0 0 45px rgba(255,255,255,.35); }
.circuit-lines { position: absolute; inset: 20px; background: linear-gradient(90deg, transparent 49.7%, rgba(23,79,138,.12) 50%, transparent 50.3%), linear-gradient(0deg, transparent 49.7%, rgba(23,79,138,.12) 50%, transparent 50.3%); transform: rotate(18deg); }
.energy-card { position: relative; width: min(310px, 90%); padding: 45px 35px; color: var(--white); background: var(--navy); border-radius: 20px; box-shadow: 25px 30px 60px rgba(9,23,43,.25); transform: rotate(-3deg); }
.energy-card::after { position: absolute; top: 0; right: 0; width: 65px; height: 65px; content: ""; background: var(--yellow); clip-path: polygon(100% 0, 0 0, 100% 100%); border-radius: 0 20px 0 0; }
.energy-icon { display: grid; width: 72px; height: 72px; margin-bottom: 45px; place-items: center; color: var(--navy); background: var(--yellow); border-radius: 50%; font-size: 2.4rem; font-weight: 900; }
.energy-card p { margin-bottom: 5px; color: #afbdd0; font-size: .85rem; }
.energy-card strong { font-size: 1.45rem; }
.status-card { position: absolute; right: -15px; bottom: 30px; padding: 14px 19px; color: var(--navy); background: var(--white); border-radius: 8px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 800; }
.status-card span { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: #2eaa72; border-radius: 50%; box-shadow: 0 0 0 5px rgba(46,170,114,.14); }

/* Leistungen */
.services { background: var(--white); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 300px; padding: 34px; overflow: hidden; background: var(--off-white); border: 1px solid transparent; border-radius: var(--radius); transition: transform .3s, box-shadow .3s, border-color .3s; }
.service-card:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-7px); }
.card-number { position: absolute; top: 25px; right: 28px; color: #bac5d1; font-size: .76rem; font-weight: 800; }
.service-icon { display: grid; width: 52px; height: 52px; margin-bottom: 30px; place-items: center; color: var(--navy); background: var(--yellow); border-radius: 8px 16px 8px 16px; font-size: 1.5rem; font-weight: 900; }
.service-card h3 { margin-bottom: 13px; }
.service-card p { color: var(--muted); font-size: .94rem; }
.service-card a { position: absolute; bottom: 30px; color: var(--blue); font-size: .88rem; font-weight: 800; text-decoration: none; }
.service-card a span { display: inline-block; margin-left: 8px; transition: transform .2s; }
.service-card a:hover span { transform: translateX(5px); }

/* Über uns */
.about { background: var(--off-white); overflow: hidden; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(60px, 9vw, 120px); }
.about-visual { position: relative; min-height: 480px; background: var(--navy); border-radius: 28px 6px 28px 6px; box-shadow: var(--shadow); }
.about-visual::before, .about-visual::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.about-visual::before { inset: 55px; }
.about-visual::after { inset: 110px; }
.about-panel { position: absolute; right: -35px; bottom: 45px; z-index: 1; width: 220px; padding: 30px; background: var(--yellow); border-radius: 5px 20px 5px 20px; box-shadow: var(--shadow); }
.about-panel span { display: block; color: var(--navy); font-size: 2.8rem; font-weight: 900; line-height: 1; }
.about-panel p { margin: 8px 0 0; color: var(--navy); font-size: .9rem; font-weight: 700; }
.spark { position: absolute; color: var(--yellow); font-size: 2rem; font-weight: 200; }
.spark-one { top: 80px; left: 70px; }.spark-two { right: 75px; bottom: 145px; }
.about-content > p:not(.eyebrow) { color: var(--muted); }
.about-content blockquote { margin: 32px 0 0; padding: 16px 0 16px 24px; color: var(--navy); border-left: 4px solid var(--yellow); font-size: 1.05rem; font-weight: 800; }

/* Vorteile */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit { display: flex; gap: 24px; padding: 30px; border: 1px solid var(--border); border-radius: 12px; }
.benefit > span { flex: 0 0 auto; color: var(--yellow-dark); font-weight: 900; }
.benefit h3 { margin-bottom: 7px; }
.benefit p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Kontaktformular */
.contact { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.contact::before { position: absolute; right: -160px; bottom: -200px; width: 500px; height: 500px; content: ""; border: 70px solid rgba(255,255,255,.025); border-radius: 50%; }
.contact-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 9vw, 110px); }
.contact h2 { color: var(--white); }
.contact-copy > p:not(.eyebrow) { max-width: 450px; color: #b8c6d8; }
.contact-detail { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.contact-detail > span { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; color: var(--navy); background: var(--yellow); border-radius: 50%; font-weight: 900; }
.contact-detail small, .contact-detail a { display: block; }
.contact-detail small { color: #94a8c1; font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; }
.contact-detail a { color: var(--white); font-weight: 700; text-decoration: none; }
.contact-form { padding: 38px; color: var(--text); background: var(--white); border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0,0,0,.2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 6px; color: var(--navy); font-size: .84rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; color: var(--text); background: var(--off-white); border: 1px solid var(--border); border-radius: 6px; transition: border .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(23,79,138,.12); }
.field.invalid input, .field.invalid textarea { border-color: #b52c37; }
.error { display: none; margin-top: 5px; color: #a61927; font-size: .78rem; }
.field.invalid .error, .checkbox-error.visible { display: block; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: .79rem; }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); }
.checkbox button { padding: 0; color: var(--blue); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.submit-button { width: 100%; margin-top: 19px; }
.form-status { margin: 15px 0 0; color: #18764d; font-size: .88rem; font-weight: 700; text-align: center; }

/* Footer und Dialoge */
.site-footer { color: #aebdd0; background: var(--navy-deep); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-top { padding-top: 45px; padding-bottom: 35px; }
.footer-top p { margin: 0; font-size: .9rem; }
.logo-footer { color: var(--white); }
.back-to-top { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); background: var(--yellow); border-radius: 50%; font-weight: 900; text-decoration: none; }
.footer-bottom { padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom button { padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }
.footer-bottom button:hover { color: var(--white); }
.legal-dialog { width: min(620px, calc(100% - 32px)); padding: 30px; color: var(--text); border: 0; border-radius: 14px; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.legal-dialog::backdrop { background: rgba(9,23,43,.75); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-head h2 { margin-bottom: 20px; font-size: 2rem; }
.dialog-close { align-self: flex-start; padding: 0 8px; background: none; border: 0; font-size: 2rem; cursor: pointer; }

/* Beim Scrollen eingeblendete Inhalte */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Tablet */
@media (max-width: 900px) {
  .section { padding: 85px 0; }
  .nav-toggle { display: block; z-index: 2; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 78px 0 auto; max-height: 0; overflow: hidden; background: var(--white); box-shadow: 0 18px 30px rgba(9,23,43,.1); visibility: hidden; transition: max-height .35s, visibility .35s; }
  .main-nav.open { max-height: 400px; visibility: visible; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; padding: 20px; }
  .main-nav a { display: block; padding: 13px 15px; }
  .main-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero { min-height: auto; padding-top: 145px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-content .eyebrow, .hero-actions, .hero-trust { justify-content: center; }
  .hero-text, h1 { margin-inline: auto; }
  .hero-visual { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { width: min(520px, calc(100% - 30px)); min-height: 380px; }
  .contact-copy { max-width: 650px; }
}

/* Smartphone */
@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 70px 0; }
  .header-inner { min-height: 70px; }
  .main-nav { top: 70px; }
  .hero { padding: 125px 0 70px; }
  h1 { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 20px; }
  .hero-trust { align-items: flex-start; flex-direction: column; width: fit-content; margin: 38px auto 0; text-align: left; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 35px; }
  .card-grid, .benefit-grid, .form-row { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; }
  .about-visual { min-height: 310px; }
  .about-panel { right: -15px; bottom: 25px; width: 180px; padding: 22px; }
  .about-panel span { font-size: 2.2rem; }
  .contact-form { padding: 25px 20px; }
  .contact-detail a { font-size: .88rem; overflow-wrap: anywhere; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-top > p { display: none; }
  .back-to-top { position: absolute; right: 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column-reverse; gap: 15px; }
}

/* Bewegung reduzieren, wenn dies im Betriebssystem gewünscht ist */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
