/* Glas Tinter – statisches Stylesheet
   Werte übernommen aus dem bisherigen Divi-Layout (et-cache) */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #0d3880;
  --blau-hell: #236299;
  --gelb: #ffed00;
  --text: #555;
  --ueberschrift: #333;
  --breite: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #c9d6e8;
  -webkit-font-smoothing: antialiased;
}

/* Fester Glas-Hintergrund für die ganze Seite (funktioniert auch auf iOS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #c9d6e8 url("../img/hintergrund-glas.jpg") center / cover no-repeat;
}
@media (max-width: 1024px) {
  body::before { background-image: url("../img/hintergrund-glas-1024.jpg"); }
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blau); }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ueberschrift); line-height: 1.25; font-weight: 600; }

.sprite { position: absolute; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--gelb); color: var(--blau); padding: .5em 1em; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }

/* ---------- Kopfleiste ---------- */
.topbar {
  background: var(--blau);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.topbar ul {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .25em 1.6em;
  margin: 0 auto; padding: .75em 16px;
  list-style: none; max-width: var(--breite);
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gelb); }

.site-header { display: flex; justify-content: center; padding: 20px 16px 0; }
.site-header img { width: 200px; }
@media (max-width: 767px) { .site-header img { width: 140px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 16px 26px;
  font-size: 20px; font-weight: 600; letter-spacing: 1px;
  text-decoration: none; line-height: 1.3;
  transition: background-color .3s ease;
}
.btn-blau { background: var(--blau); color: #fff; }
.btn-blau:hover { background: rgba(13, 56, 128, .61); }
.btn-gelb { background: var(--gelb); color: var(--blau); }
.btn-gelb:hover { background: rgba(255, 237, 0, .74); }
.btn-rahmen {
  border: 2px solid var(--blau); color: var(--blau);
  font-weight: 700; border-radius: 3px; padding: 10px 22px;
}
.btn-rahmen:hover { background: rgba(255, 255, 255, .35); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: rgba(13, 56, 128, .59);
  padding: 2vh 16px calc(11vh + 3vw);
}
.hero h1 {
  max-width: 1200px; margin: 40px auto 20px;
  text-align: center;
  font-size: 74px; line-height: 1.2; letter-spacing: 1px;
  color: var(--gelb);
  text-shadow: 0 .1em .1em rgba(0, 0, 0, .4);
}
.hero-buttons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3%;
  max-width: var(--breite); margin: 0 auto;
  justify-items: center;
}
.nur-mobil { display: none; }

.leistungen {
  max-width: 1355px;
  margin: 70px auto 30px;
  padding: 40px;
  background: rgba(255, 255, 255, .21);
  border: 8px ridge rgba(255, 255, 255, .24);
  box-shadow: inset 0 0 55px rgba(0, 0, 0, .24);
  mix-blend-mode: hard-light;
  filter: saturate(79%);
  scroll-margin-top: 20px;
}
.leistungen ul {
  columns: 2; column-gap: 40px;
  margin: 0; padding: 0; list-style: none;
}
.leistungen li {
  break-inside: avoid;
  text-align: center;
  color: #fff;
  font-size: 20px; font-weight: 600; line-height: 2;
  margin-bottom: 15px;
}

.cta {
  max-width: 608px; margin: 0 auto;
  padding: 40px 60px;
  background: rgba(255, 237, 0, .87);
  text-align: center;
}
.cta h2 { color: var(--blau); font-weight: 800; font-size: 26px; margin-bottom: 20px; }

.welle {
  position: absolute; left: 0; bottom: 0;
  width: 100%;
  transform: scaleY(-1);
}
.hero .welle { height: 3vw; }

/* ---------- blaues Band ---------- */
.band {
  position: relative;
  background: var(--blau);
  height: calc(140px + 43px);
}
.band .welle { height: 43px; }

/* ---------- Glasschaden ---------- */
.schaden { background: rgba(255, 255, 255, .6); padding: 54px 16px; }
.schaden-inner {
  max-width: var(--breite); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%;
  align-items: center;
}
.schaden-text { text-align: center; }
.schaden-text h2 { font-size: 35px; line-height: 1.4; margin: 0; }
.schaden-text p { font-size: 22px; font-weight: 600; color: var(--ueberschrift); margin: 0 0 24px; }
.schaden-text .btn-blau:hover { background: var(--blau-hell); }

.logo-karte {
  margin-top: -100px;
  background: #fff;
  border: 12px ridge rgba(183, 183, 183, .22);
  box-shadow: 0 60px 80px -30px rgba(0, 0, 0, .29);
  padding: 30px;
}
.logo-karte img { margin: 0 auto; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.inhalt {
  position: relative;
  background: #fff;
  margin: 30px 0 90px;
  padding: 54px 16px;
}
.inhalt .welle { height: 43px; bottom: -42px; transform: scaleY(1); }
.inhalt article { max-width: var(--breite); margin: 0 auto; line-height: 2; overflow-wrap: break-word; }
.inhalt h1 { font-size: 34px; color: var(--blau); }
.inhalt h2 { font-size: 26px; margin-top: 1.4em; }
.inhalt h3 { font-size: 20px; margin-top: 1.2em; }
.inhalt h4 { font-size: 17px; margin: 1em 0 .3em; color: var(--ueberschrift); }
.inhalt p, .inhalt ul { margin: 0 0 1em; }
.platzhalter { background: #fff3a0; padding: 0 .3em; }

/* ---------- Fußbereich ---------- */
.footer-kontakt { background: rgba(255, 237, 0, .93); padding: 54px 16px; }
.footer-kontakt .raster {
  max-width: var(--breite); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5.5%;
  align-items: center;
  color: var(--blau);
}
.footer-kontakt img { width: 220px; }
.footer-kontakt h2 { color: var(--blau); font-size: 22px; margin-bottom: .4em; }
.footer-kontakt p { margin: 0 0 1em; }
.footer-kontakt a { color: var(--blau); }
.karte-link {
  justify-self: center;
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px;
  border: 2px solid var(--blau); border-radius: 50%;
  color: var(--blau);
  transition: background-color .3s ease;
}
.karte-link:hover { background: rgba(255, 255, 255, .45); }
.karte-link .icon { width: 50px; height: 50px; }

.footer-recht { background: var(--blau); padding: 22px 16px; }
.footer-recht ul {
  display: flex; justify-content: center; gap: 60px;
  margin: 0; padding: 0; list-style: none;
}
.footer-recht a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-recht a:hover, .footer-recht a[aria-current] { color: var(--gelb); }

/* ---------- dezente Einblend-Animation (ersetzt Divi et_animated) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .einblenden { animation: einblenden .9s ease both; }
  .einblenden-2 { animation-delay: .2s; }
  .einblenden-3 { animation-delay: .4s; }
  @keyframes einblenden {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 4vh; padding-bottom: calc(10vh + 3vw); }
  .hero h1 { font-size: 35px; }
  .nur-mobil { display: flex; justify-content: center; margin-top: 30px; }
  .schaden-text h2 { font-size: 30px; }
  .logo-karte { margin-top: 0; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 767px) {
  .hero h1 { font-size: 30px; margin-top: 20px; }
  .hero-buttons { grid-template-columns: 1fr; gap: 16px; }
  .btn { font-size: 18px; }
  .leistungen { padding: 24px 16px; margin-top: 40px; }
  .leistungen ul { columns: 1; }
  .leistungen li { font-size: 18px; margin-bottom: 6px; }
  .cta { padding: 20px 16px; }
  .cta h2 { font-size: 18px; }
  .cta .btn { font-size: 16px; }
  .band { height: 100px; }
  .schaden-inner, .footer-kontakt .raster { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .schaden-text h2 { font-size: 25px; }
  .logo-karte { max-width: 320px; margin: 0 auto; padding: 20px; }
  .footer-kontakt img { margin: 0 auto; width: 180px; }
  .inhalt h1 { font-size: 28px; }
  .inhalt h2 { font-size: 22px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 26px; }
}
