/* KaSi Immobilien – statische Neuumsetzung (ohne WordPress)
   Werte übernommen aus dem Elementor-Kit "Griyo" (Kit 641) */

@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  --kasi: #1C1C1B;          /* Primär / "Kasi Farbe" */
  --green: #15B96A;
  --title: #2E2E2E;
  --body: #808080;
  --field: #CCCCCC;
  --soft: #F5F5F5;
  --light: #FAFAFA;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 56px 160px rgba(0, 0, 0, .12);
  --container: 1400px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 16px; font-weight: 300; line-height: 32px;
  color: var(--body); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kasi); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--title); font-weight: 800; margin: 0 0 16px; }
h1 { font-size: 72px; line-height: 96px; }
h2 { font-size: 64px; line-height: 88px; }
h3 { font-size: 48px; line-height: 64px; }
h4 { font-size: 32px; line-height: 48px; }
h5 { font-size: 24px; line-height: 32px; }
h6 { font-size: 16px; line-height: 24px; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border: 0; border-radius: var(--radius);
  background: var(--title); color: var(--white);
  font: 600 16px/32px "Poppins", sans-serif; text-align: center;
  cursor: pointer; transition: background .3s;
}
.btn:hover, .btn:focus-visible { background: var(--kasi); color: var(--white); text-decoration: none; }

/* ---------- Header (schwebende Karte über dem Hero) ---------- */
.site-header { position: relative; z-index: 10; padding: 24px 0; }
.site-header .bar {
  margin: 10px; padding: 16px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 24px;
}
.logo img { width: 240px; max-width: 100%; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.nav a { display: block; padding: 0 16px; color: var(--body); font-weight: 600; line-height: 32px; }
.nav a:hover, .nav a:focus-visible { color: var(--kasi); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--kasi); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--title); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Startseite: Header liegt über dem Hero */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- Hero mit Slideshow + Ken Burns ---------- */
.hero { position: relative; overflow: hidden; background: #000; color: var(--soft); }
.hero-slides, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides img { object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides img.is-active { opacity: 1; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.3); } }
.hero::after { content: ""; position: absolute; inset: 0; background: #000; opacity: .5; }
.hero-inner { position: relative; z-index: 1; padding: 350px 0 340px; text-align: center; }
.hero h1 { color: var(--soft); font-size: 48px; line-height: 64px; max-width: 600px; margin: 0 auto; }

/* ---------- ETG24-Portalkarte ---------- */
.portal { margin-top: -50px; position: relative; z-index: 2; }
.portal .card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; text-align: center;
}
.portal h2 { font-size: 24px; line-height: 32px; margin: 16px 0; }
.portal .btn { margin-bottom: 24px; }
.portal .qr { width: 154px; margin: 0 auto 8px; }

/* ---------- Leistungs-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards article {
  padding: 24px; border-radius: var(--radius);
  transition: background .6s, box-shadow .6s;
}
.cards article:hover { background: var(--white); box-shadow: var(--shadow); }
.cards img { width: 100%; height: 224px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.cards h3 { font-size: 24px; line-height: 32px; margin: 0; }

/* ---------- Service ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.service-img img { width: 90%; height: 736px; object-fit: cover; border-radius: var(--radius); }
.features { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; }
.features li { display: flex; align-items: center; gap: 16px; }
.features .ico {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: var(--soft); color: var(--kasi); display: grid; place-items: center;
}
.features .ico svg { width: 24px; height: 24px; }
.features h4 { font-size: 24px; line-height: 32px; margin: 0 0 2px; }
.features p { margin: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info { padding-left: 80px; scroll-margin-top: 24px; }
.contact-info h2 { font-size: 32px; line-height: 48px; }
.info-box { background: var(--light); border-radius: var(--radius); padding: 40px; display: grid; gap: 24px; }
.info-item { display: flex; align-items: center; gap: 16px; }
.info-item svg { flex: none; width: 24px; height: 24px; color: var(--kasi); }
.info-item h3 { font-size: 24px; line-height: 32px; margin: 0 0 2px; }
.info-item p { margin: 0; }
.info-item a { font-weight: 300; color: inherit; }

/* Formulare */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; margin-bottom: 4px; color: var(--title); font-size: 14px; line-height: 24px; font-weight: 400; }
.form input, .form textarea {
  width: 100%; padding: 16px; border: 1px solid transparent; border-radius: 8px;
  background: var(--light); color: var(--title);
  font: 300 14px/24px "Poppins", sans-serif; transition: border-color .5s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--field); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--title); }
.form textarea { min-height: 160px; resize: vertical; }
.form .consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 24px; color: var(--body); }
.form .consent input { width: auto; margin-top: 5px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; margin: 8px 0 0; font-weight: 400; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px solid var(--kasi); padding: 80px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer h2 { font-size: 24px; line-height: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.site-footer li { display: flex; gap: 8px; align-items: flex-start; }
.site-footer li svg { flex: none; width: 20px; height: 20px; margin-top: 6px; color: var(--kasi); }
.site-footer a { color: var(--body); font-weight: 300; }
.site-footer a:hover { color: var(--kasi); }
.site-footer .btn, .site-footer .btn:hover { color: var(--white); font-weight: 600; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #E5E5E5; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 40px 0 80px; }
.legal .container { max-width: 900px; }
.legal h1 { font-size: 48px; line-height: 64px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; line-height: 32px; margin: 40px 0 12px; }
.legal p, .legal li { color: #555; }
.legal ul { padding-left: 24px; margin: 0 0 16px; }
.legal a { word-break: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header-cta { display: none; }
  .hero-inner { padding: 300px 0 260px; }
  .contact-info { padding-left: 0; }
  .service-img img { height: 520px; width: 100%; }
}
@media (max-width: 860px) {
  .site-header { padding: 8px 0; }
  .site-header .bar { flex-wrap: wrap; padding: 8px 8px 8px 16px; position: relative; }
  .logo { flex: 1; }
  .logo img { width: 180px; }
  .nav-toggle { display: block; }
  .nav { display: none; flex-basis: 100%; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav a { padding: 8px 16px; border-radius: 12px; }
  .nav a:hover { background: var(--kasi); color: var(--white); }
  .cards, .service, .contact, .footer-grid { grid-template-columns: 1fr; }
  .section, .site-footer { padding: 40px 0; }
  .service-img img { height: 240px; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .hero-inner { padding: 220px 0 200px; }
  .hero h1 { font-size: 32px; line-height: 48px; }
  .portal h2 { font-size: 20px; line-height: 30px; }
  .portal .btn { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .info-box { padding: 24px; }
  .legal h1 { font-size: 32px; line-height: 44px; }
  h3 { font-size: 32px; line-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img.is-active { animation: none; }
}

.h-section { font-size: 48px; line-height: 64px; }
@media (max-width: 767px) { .h-section { font-size: 32px; line-height: 48px; } }
