/* ==========================================================================
   BBV Architekten – Übergangsseite
   Farben, Abstände und Schriftgrößen zentral hier anpassen.
   ========================================================================== */

:root {
  --farbe-text: #ffffff;
  --farbe-text-gedeckt: rgba(255, 255, 255, 0.88);
  --farbe-linie: rgba(255, 255, 255, 0.85);
  --farbe-fallback: #1b2733;      /* Hintergrund, solange das Bild lädt */
  --seitenrand: clamp(1.75rem, 5vw, 5.5rem);
  --schrift: "Helvetica Neue", Helvetica, Inter, "Segoe UI", system-ui,
             -apple-system, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--farbe-fallback);
  color: var(--farbe-text);
  font-family: var(--schrift);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Hintergrundbild ------------------------------------------------------ */

.hintergrund {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.hintergrund img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;   /* rückt das Haus nach rechts, Text bleibt frei */
  display: block;
}

/* Abdunklung, damit der weiße Text sicher lesbar bleibt */
.hintergrund::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(11, 20, 29, 0.92) 0%,
      rgba(13, 23, 33, 0.84) 26%,
      rgba(16, 28, 39, 0.55) 52%,
      rgba(18, 30, 42, 0.22) 78%,
      rgba(18, 30, 42, 0.10) 100%),
    linear-gradient(to bottom,
      rgba(10, 18, 27, 0.38) 0%,
      rgba(10, 18, 27, 0.05) 42%,
      rgba(10, 18, 27, 0.30) 100%);
}

/* --- Grundgerüst ---------------------------------------------------------- */

.seite {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--seitenrand) clamp(1.5rem, 3vw, 2.5rem);
}

.inhalt { max-width: 46rem; }

/* --- Kopfbereich ---------------------------------------------------------- */

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.einleitung {
  margin: clamp(1rem, 2vw, 1.6rem) 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
  line-height: 1.4;
  color: var(--farbe-text-gedeckt);
}

/* Zeilenumbrüche wie in der Vorlage – nur auf breiten Bildschirmen */
.umbruch { display: none; }

/* --- Kontaktbereich ------------------------------------------------------- */

.kontakt {
  margin-top: auto;
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.trennlinie {
  width: 4.5rem;
  height: 2px;
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  border: 0;
  background: var(--farbe-linie);
}

.kontaktliste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.kontaktliste a {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
  color: var(--farbe-text);
  text-decoration: none;
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  transition: opacity 0.2s ease;
}

.kontaktliste a:hover,
.kontaktliste a:focus-visible { opacity: 0.72; }

.kontaktliste a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 4px;
}

.symbol {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(2.75rem, 4.4vw, 3.5rem);
  aspect-ratio: 1;
  border: 2px solid var(--farbe-linie);
  border-radius: 50%;
}

.symbol svg {
  width: 45%;
  height: auto;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Fußzeile ------------------------------------------------------------- */

.fusszeile {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.fusszeile a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}

.fusszeile a:hover,
.fusszeile a:focus-visible { color: #fff; border-bottom-color: #fff; }

/* --- Unterseiten (Impressum, Datenschutz) --------------------------------- */

.textseite {
  max-width: 44rem;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.textseite h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.textseite h2 {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0.5rem;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.textseite p,
.textseite li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--farbe-text-gedeckt);
}

.textseite p { margin: 0 0 0.9rem; }
.textseite ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.textseite a { color: #fff; }

.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--farbe-text-gedeckt);
  text-decoration: none;
  font-size: 0.95rem;
}

.zurueck:hover { color: #fff; }

/* Unterseiten sind textlastig – Hintergrund dort stärker abdunkeln */
.textseite-body .hintergrund::after {
  background: linear-gradient(150deg,
    rgba(14, 24, 34, 0.94) 0%,
    rgba(16, 28, 40, 0.88) 55%,
    rgba(20, 33, 46, 0.78) 100%);
}

.platzhalter {
  color: #ffd9a3;
  font-style: italic;
}

/* --- Breakpoints ---------------------------------------------------------- */

@media (min-width: 62rem) {
  .umbruch { display: inline; }
  .hintergrund img { object-position: 50% 50%; }
}

/* Schmale Bildschirme: Text liegt über der ganzen Bildbreite,
   deshalb hier zusätzlich abdunkeln. */
@media (max-width: 61.99rem) {
  .hintergrund::after {
    background:
      linear-gradient(to bottom,
        rgba(10, 18, 27, 0.72) 0%,
        rgba(10, 18, 27, 0.42) 38%,
        rgba(10, 18, 27, 0.62) 66%,
        rgba(10, 18, 27, 0.86) 100%);
  }
}

@media (max-width: 30rem) {
  .kontaktliste a { gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
