/* ============================================
   Kutscher & Wendtland — Erweiterung v1
   Handy-Leiste, Anfrageformular, Themenseiten.
   styles.css bleibt unverändert.
   ============================================ */

/* === HANDY-LEISTE (nur schmale Bildschirme) === */
.kw-bar { display: none; }
@media (max-width: 768px) {
  .kw-bar {
    display: flex;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 99;
    gap: 8px;
    padding: 6px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.16);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  .kw-bar.weg { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .kw-bar a {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .kw-bar-tel { background: var(--tinte); color: var(--weiss); }
  .kw-bar-anf { background: var(--weiss); color: var(--tinte); border: 1px solid var(--linie); }
  body { padding-bottom: 84px; }
  .menu-overlay.open ~ .kw-bar { display: none; }
}

/* === GEMEINSAM === */
.kw-eyebrow {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--akzent);
  font-weight: 600;
  margin-bottom: 16px;
}

/* === ANFRAGEFORMULAR === */
.anfrage-section {
  background: var(--weiss);
  padding: 12vh 48px;
  scroll-margin-top: 60px;
}
.anfrage-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.anfrage-kopf h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.anfrage-kopf p { font-size: 17px; line-height: 1.6; color: var(--grau); margin-bottom: 24px; }
.anfrage-kopf a { font-weight: 600; color: var(--tinte); text-decoration: none; border-bottom: 1px solid var(--akzent); }
.anfrage-form { display: flex; flex-direction: column; gap: 18px; }
.anfrage-form label.f-feld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tinte-2); flex: 1; }
.anfrage-form input[type=text],
.anfrage-form input[type=tel],
.anfrage-form input[type=email],
.anfrage-form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 16px; /* 16px verhindert Zoom auf dem iPhone */
  padding: 14px 16px;
  border: 1px solid var(--linie);
  border-radius: 12px;
  background: var(--bg);
  color: var(--tinte);
  width: 100%;
  -webkit-appearance: none;
}
.anfrage-form input:focus, .anfrage-form textarea:focus { outline: none; border-color: var(--akzent); background: var(--weiss); }
.anfrage-form textarea { resize: vertical; min-height: 110px; }
.f-reihe { display: flex; gap: 14px; }
.f-lab { font-size: 13px; font-weight: 600; color: var(--tinte-2); display: block; margin-bottom: 8px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips button {
  font: inherit; font-size: 14px;
  border: 1px solid var(--linie); background: var(--weiss); color: var(--tinte);
  border-radius: 100px; padding: 9px 15px; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.f-chips button.an { background: var(--tinte); color: var(--weiss); border-color: var(--tinte); }
.f-upload {
  display: flex; gap: 14px; align-items: center;
  border: 1.5px dashed #bbb; border-radius: 14px; padding: 16px;
  font-size: 15px; cursor: pointer; background: var(--weiss);
}
.f-upload small { color: var(--grau); }
.f-upload input { display: none; }
.f-up-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.f-bilder { display: flex; flex-wrap: wrap; gap: 8px; }
.f-bilder:empty { display: none; }
.f-bild { position: relative; width: 72px; height: 72px; border-radius: 10px; background-size: cover; background-position: center; }
.f-bild button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--tinte); color: var(--weiss); font-size: 13px; line-height: 22px; padding: 0; cursor: pointer;
}
.anfrage-form label.f-check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--grau); line-height: 1.45; cursor: pointer; }
.f-check input { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--tinte); }
.f-check a { color: var(--tinte); }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.anfrage-form .pill-btn { width: 100%; }
.anfrage-form .pill-btn[disabled] { opacity: 0.5; pointer-events: none; }
.f-meldung { font-size: 15px; line-height: 1.5; border-radius: 12px; padding: 14px 16px; display: none; }
.f-meldung.fehler { display: block; background: #fbeaea; color: #8a1f1f; }
.anfrage-danke { display: none; padding: 32px; border-radius: 16px; background: var(--bg); }
.anfrage-danke h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.anfrage-danke p { font-size: 16px; line-height: 1.6; color: var(--grau); }
.anfrage-form.gesendet { display: none; }
.anfrage-form.gesendet + .anfrage-danke { display: block; }

/* === THEMENSEITE === */
.t-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20vh 48px 10vh;
}
.t-hero h1 {
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 28px;
}
.t-hero-text > p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--tinte-2); max-width: 560px; margin-bottom: 32px; }
.t-hero-text > p strong { font-weight: 600; color: var(--tinte); }
.t-hero-bild { aspect-ratio: 4/5; }
.t-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.t-cta .pill-btn { min-width: 0; }
.t-fakten { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--linie); padding-top: 22px; }
.t-fakten li { font-size: 13px; color: var(--grau); max-width: 160px; line-height: 1.4; }
.t-fakten b { display: block; font-size: 17px; color: var(--tinte); font-weight: 600; }
.t-sek { padding: 12vh 48px; background: var(--bg); }
.t-grau { background: var(--bg-2); }
.t-inner { max-width: 1200px; margin: 0 auto; }
.t-sek h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 40px; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-karte { background: var(--weiss); border: 1px solid var(--linie-2); border-radius: 16px; padding: 28px; }
.t-karte h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.t-karte p { font-size: 15px; color: var(--grau); line-height: 1.55; }
.t-projekte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-proj { text-decoration: none; color: inherit; display: block; }
.t-proj-bild {
  aspect-ratio: 4/3; border-radius: 16px; margin-bottom: 16px;
  background-size: cover; background-position: center; background-color: var(--linie);
  filter: grayscale(1) contrast(1.05);
}
.t-proj h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.t-proj p { font-size: 15px; color: var(--grau); line-height: 1.55; }
.t-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.t-text { font-size: 17px; line-height: 1.65; color: var(--tinte-2); margin-bottom: 20px; }
.t-link { font-weight: 600; font-size: 15px; color: var(--tinte); border-bottom: 1px solid var(--akzent); text-decoration: none; }
.t-bezirke { display: flex; flex-wrap: wrap; gap: 8px; }
.t-bezirke span { background: var(--weiss); border: 1px solid var(--linie); border-radius: 100px; padding: 8px 14px; font-size: 14px; }

/* === MOBIL === */
@media (max-width: 1000px) {
  .anfrage-section { padding: 8vh 22px; }
  .anfrage-inner { grid-template-columns: 1fr; gap: 36px; }
  .f-reihe { flex-direction: column; }
  .t-hero { grid-template-columns: 1fr; padding: 13vh 22px 6vh; gap: 28px; }
  .t-hero-bild { aspect-ratio: 4/3; order: -1; }
  .t-hero h1 { margin-bottom: 18px; }
  .t-sek { padding: 8vh 22px; }
  .t-grid, .t-projekte { grid-template-columns: 1fr; gap: 12px; }
  .t-projekte { gap: 32px; }
  .t-zwei { grid-template-columns: 1fr; gap: 56px; }
  .t-fakten { gap: 18px; }
}
@media (max-width: 768px) {
  .t-cta { display: none; } /* übernimmt die Leiste unten */
}

/* === HANDY: Kopfzeile ruhiger, Startbild über der Leiste === */
@media (max-width: 768px) {
  .hero-content { bottom: calc(8vh + 80px); }
}
@media (max-width: 480px) {
  .header { padding: 16px 18px; }
  .header-lang { white-space: nowrap; font-size: 11px; }
  .header-lang span { margin: 0 4px; }
  .logo { font-size: 17px; }
  .header-right { gap: 12px; }
}

/* === KONTAKTSEITE: Formular direkt unter der Überschrift === */
.anfrage-kontakt { padding-top: 6vh; }
@media (max-width: 1000px) { .anfrage-kontakt { padding-top: 3vh; } }
@media (max-width: 768px) {
  .page-hero:has(+ .anfrage-kontakt) { padding: 12vh 22px 3vh; }
  .page-hero:has(+ .anfrage-kontakt) .page-hero-title { margin-bottom: 18px; }
  .anfrage-kontakt .anfrage-kopf h2 { margin-bottom: 14px; }
  .anfrage-kontakt .anfrage-kopf p:first-of-type { display: none; }
  .anfrage-kontakt .anfrage-inner { gap: 20px; }
}
