/* Elektro Wieland Füssen – Stylesheet
   Werte (Farben, Größen, Abstände) aus der alten Mobirise-Seite übernommen. */

/* ---------- Schriften (selbst gehostet, keine externen Dienste) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/open-sans-v34-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/open-sans-v34-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/open-sans-v34-latin-700.woff2") format("woff2");
}

/* ---------- Design-Variablen ---------- */
:root {
  --red: #e2001a;
  --red-dark: #950011;
  --text: #232323;
  --muted: #6e6e6e;          /* alt: #767676 – minimal dunkler für Kontrast auf #f9f9f9 */
  --bg: #ffffff;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --font: "Open Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1140px;
  --gutter: 16px;
  --section-y: clamp(60px, 9vw, 90px);
  --fs-display-1: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);   /* 48px Desktop */
  --fs-display-2: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);   /* 48px Desktop */
  --fs-display-5: clamp(1.175rem, 1rem + 0.8vw, 1.5rem); /* 24px Desktop */
  --fs-display-7: 1.2rem;                                /* 19.2px */
  --focus: 3px solid #1a73e8;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(740px + 2 * var(--gutter)); }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--white);
  color: var(--text);
  border-radius: 3px;
}
.skip-link:focus { top: 1rem; }

.display-2 {
  font-size: var(--fs-display-2);
  font-weight: 300;
  line-height: 1.25;
  padding-bottom: 1rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9em;
  margin: .4rem .8rem;
  padding: 1rem 3rem;
  border: 2px solid transparent;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .3s ease-in-out, border-color .3s ease-in-out, color .3s ease-in-out;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 1.6rem; height: 1.6rem; }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--white); color: var(--text); }
.hero :focus-visible { outline-color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 3rem;
  color: var(--white);
  background: #b9b1a6;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Effekt Startbild (nur CSS, kein JS): "Light Sweep" – ein heller, weicher Lichtstreifen
   wandert schräg von oben links nach unten rechts über das Bild,
   einmal direkt nach dem Laden. Bei "Bewegung reduzieren" kein Effekt. */
@media (prefers-reduced-motion: no-preference) {
  .hero::after {
    background-image: linear-gradient(135deg,
      transparent 44%,
      rgba(255, 255, 255, .12) 47.5%,
      rgba(255, 255, 255, .42) 50%,
      rgba(255, 255, 255, .12) 52.5%,
      transparent 56%);
    background-size: 300% 300%;
    background-repeat: no-repeat;
    background-position: 100% 100%;
    animation: hero-sweep 1.8s cubic-bezier(.35, 0, .25, 1) .1s 1 both;
  }
}
@keyframes hero-sweep {
  from { background-position: 100% 100%; }
  to   { background-position: 0% 0%; }
}
.hero::after {               /* Abdunklung wie bisher (20 %) */
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, .25);
  z-index: -1;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo { width: 100%; max-width: 500px; padding-bottom: 2rem; }
.hero-logo img { width: 100%; }
.hero h1 .h1-sub { display: block; font-size: var(--fs-display-5); font-weight: 400; padding-top: .4rem; }
.hero h1 {
  font-size: var(--fs-display-1);
  font-weight: 300;
  line-height: 1.3;
  padding-bottom: 1rem;
  margin-bottom: .5rem;
  text-wrap: balance;
}
.hero-text {
  font-size: var(--fs-display-5);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; margin-inline: -.8rem; }

@media (min-width: 768px) {
  .btn { font-size: 1rem; }
}
@media (min-width: 992px) {
  .hero-inner { flex-direction: row; text-align: left; }
  .hero-logo { flex: 1 1 50%; max-width: none; padding: 0 4rem 0 0; }
  .hero-content { flex: 1 1 50%; }
  .hero h1 { line-height: 1.2; }
  .hero-buttons { justify-content: flex-start; }
}

/* ---------- Intro ---------- */
.intro { padding-block: var(--section-y); background: var(--bg); }
.subtitle {
  font-size: var(--fs-display-5);
  font-weight: 300;
  line-height: 1.3;
  color: var(--muted);
  margin: 0 0 .5rem;
}

/* ---------- Leistungen ---------- */
.services { padding-block: var(--section-y); background: var(--bg-light); }
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1rem;
}
.service-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.service-grid .icon { width: clamp(64px, 18vw, 96px); height: clamp(64px, 18vw, 96px); color: var(--red); stroke-width: 1.25; }
.service-grid h3 {
  font-size: var(--fs-display-5);
  line-height: 1.3;
  padding-top: 1.5rem;
  hyphens: manual;
}
@media (max-width: 575px) {
  .service-grid h3 { font-size: 1.05rem; }
}
@media (min-width: 992px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7rem 2rem; padding-block: 16px 60px; }
}

/* ---------- Logo-Band ---------- */
.logo-band { padding-block: clamp(60px, 10vw, 120px); background: var(--bg); }
.logo-band img { width: min(300px, 80%); margin-inline: auto; }

/* ---------- Kontakt ---------- */
.contact { padding-block: var(--section-y); background: var(--bg-light); }
.contact .subtitle { margin-bottom: 3.5rem; }
/* Kontakt im gleichen Stil wie die Leistungen: große rote Liniensymbole, Text darunter */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  font-style: normal; max-width: 1000px; margin: 0 auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.contact-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  background: var(--white); border: 2px solid var(--red); border-radius: 18px;   /* rot eingerahmt wie das Logo */
  color: var(--muted); text-decoration: none;
  transition: box-shadow .25s ease;
}
a.contact-item:hover, a.contact-item:focus-visible { box-shadow: 0 10px 28px rgba(226, 0, 26, .14); }
.contact-item .icon { width: clamp(52px, 14vw, 72px); height: clamp(52px, 14vw, 72px); color: var(--red); stroke-width: 1.25; transition: transform .25s ease; }
.contact-label { padding-top: 1.25rem; font-size: var(--fs-display-5); line-height: 1.3; color: var(--text); }
.contact-value { padding-top: .5rem; font-size: 1rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; font-weight: 300; }
a.contact-item .contact-value { color: var(--red); font-weight: 400; }
a.contact-item:hover .icon, a.contact-item:focus-visible .icon { transform: translateY(-4px); }
a.contact-item:hover .contact-value, a.contact-item:focus-visible .contact-value { text-decoration: underline; text-underline-offset: 3px; }

.contact-owner { margin: 4rem auto 0; color: var(--muted); line-height: 1.6; font-weight: 300; }
.contact-owner strong { color: var(--text); font-weight: 700; }

/* ---------- Claim (rotes Band) ---------- */
.claim { padding-block: 75px 60px; background: var(--red); color: var(--white); }
.claim p {
  font-size: var(--fs-display-5);
  line-height: 1.3;
  margin: 0 0 1.5rem;
}

/* ---------- SEO-Text Leistungen & Region ---------- */
.seo-text { padding-block: 90px 110px; background: var(--bg); color: var(--muted); }
.seo-text .container.narrow { max-width: 860px; }
.seo-text h2 { color: var(--text); margin-bottom: 1rem; }
.seo-text .lead { font-size: var(--fs-display-7); line-height: 1.6; font-weight: 300; margin: 0 auto 2.5rem; }
.seo-text h3 { font-size: var(--fs-display-5); font-weight: 400; line-height: 1.3; color: var(--text); margin: 3.5rem 0 1.1rem; }
.seo-text h4 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 .4rem; }
.seo-text p, .seo-text li { line-height: 1.7; }
.seo-text p { margin: 0 0 1rem; }
.region-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.region-grid > div { background: var(--bg-light); border-left: 3px solid var(--red); padding: 1.1rem 1.25rem .4rem; border-radius: 0 6px 6px 0; }
@media (min-width: 768px) {
  .region-grid { grid-template-columns: 1fr 1fr; }
  .region-grid .region-wide { grid-column: 1 / -1; }
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .85rem; }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .55rem; height: .9rem; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.faq details { border-bottom: 1px solid #e3e3e3; }
.faq details:first-child { border-top: 1px solid #e3e3e3; }
.faq summary { cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; color: var(--text); font-weight: 400; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.05rem; font-size: 1.5rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.35rem; }
.seo-text a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; }
.seo-text .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; margin: 4.5rem 0 0; }
.seo-text .cta .btn { margin: 0; min-width: 16rem; }
.btn-ghost { background: transparent; border-color: var(--red); color: var(--red); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--red); color: var(--white); }

/* ---------- Impressum / Datenschutz ---------- */
.legal { padding-block: 60px; background: var(--bg); color: var(--muted); font-weight: 300; }
.legal h1,
.home .legal > .container > h2 {
  font-size: var(--fs-display-5);
  line-height: 1.3;
  color: var(--muted);
  padding-bottom: 1rem;
  margin-bottom: .5rem;
}
.legal h2, .legal h3, .legal h4 { font-size: 1rem; line-height: 1.4; color: var(--text); font-weight: 400; }
.legal :is(h2, h3, h4) { margin-top: 1.6em; }
.legal > .container > h2 + :is(h3, p),
.legal h1 + :is(h2, p),
.legal :is(h2, h3) + h3,
.legal :is(h2, h3) + h4 { margin-top: .4em; }
.legal p, .legal li { font-size: 1rem; line-height: 1.5; margin: 0 0 .9em; }
.legal ul { padding-left: 1.25rem; margin: 0 0 .9em; }
.legal li { margin: 0; }
.legal a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
.legal strong { font-weight: 700; }
.legal-page { padding-block: 40px 80px; }
.legal-page h1 { font-size: var(--fs-display-2); font-weight: 300; color: var(--text); }
.back { margin-top: 2.5rem; }

/* ---------- Unterseiten-Kopf ---------- */
.subheader { background: var(--bg-light); border-bottom: 4px solid var(--red); padding-block: 24px; }
.subheader-logo { display: inline-block; }
.subheader-logo img { width: clamp(180px, 40vw, 260px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--red); color: var(--white); padding-block: 36px 40px; text-align: center; }
.site-footer a { color: var(--white); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 2.5rem; font-size: .95rem; margin-bottom: 1rem; }
.footer-nav a { padding: .35rem .25rem; }
.footer-credit { font-size: var(--fs-display-7); margin: 0; }
.footer-credit a { display: inline-block; padding: .3rem 0; }
.site-footer :focus-visible { outline-color: var(--white); }

/* ---------- Nach-oben-Button ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 100px;
  background: rgba(0, 0, 0, .45);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 50;
}
.to-top svg { width: 1.5rem; height: 1.5rem; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--red); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .hero::after, .to-top, .skip-link, .hero-buttons { display: none; }
  .hero { min-height: 0; color: var(--text); }
  .hero-bg { display: none; }
}
