/* Rahmen der neuen Marke fuer die Unterseiten. Erzeugt aus stil.css von immobilien-unterseiten.js. */
/* Feldbrecht Immobilien, Musterseite, Fassung 2 (18.09.2026). Marke „Schluessel dreht".
   Reines CSS, keine fremde Anfrage, Schriften lokal.

   FARBEN, fuenf Stueck plus Abstufungen, alle Paarungen gerechnet (18.09.2026):
     Text    #20262b auf Kalk #f3eee6      13,24:1   auf Sand #e7dfd1  11,56:1
     Backstein #8f3a2a auf Kalk             6,48:1   auf Sand  5,66:1   auf Karte 7,06:1
     Gedimmt #55606a auf Kalk               5,56:1   auf Sand  4,86:1
     Weiss auf Schiefer #2a3138            13,17:1   Hellgrau #b9c2ca auf Schiefer 7,29:1
     Licht #f2c46b auf Schiefer             8,08:1   Tief #1b2025 auf Licht 10,07:1
     Weiss auf Backstein                    7,48:1   Licht-hell #f7d896 auf Backstein 5,42:1
     Weiss auf Schiefer-tief #1b2025       16,41:1   Hellgrau auf Schiefer-tief 9,09:1
   Hausregel: Der Lichtton ist „Licht im Fenster". Er steht nur auf dunklem
   Grund (Schiefer, Backstein), nie als Schrift auf Kalk.

   RADIUS-SYSTEM, architektonisch: Flaechen 2 px, klein 4 px, Knoepfe 6 px.
   Wiederkehrende Motive: Backsteinverband (Fugenlinien, kein Verlauf),
   Planzeichnung (Masslinien), Hausnummern als Emaille-Schildchen. */

@font-face {
  font-family: "Newsreader";
  src: url("schriften/newsreader-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("schriften/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("schriften/source-sans-3-variable.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

@view-transition { navigation: auto; }
/* R36: Der Browser unterdrueckt den Seitenwechsel nicht von selbst, wenn Bewegung abbestellt ist. */
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; }}

:root {
  --schiefer: #2a3138;
  --schiefer-tief: #1b2025;
  --kalk: #f3eee6;
  --sand: #e7dfd1;
  --karte: #fbf8f2;
  --backstein: #8f3a2a;
  --backstein-tief: #6f2a1d;
  --licht: #f2c46b;
  --licht-hell: #f7d896;
  --text: #20262b;
  --gedimmt: #55606a;
  --hellgrau: #b9c2ca;
  --linie: #cfc5b3;
  --linie-dunkel: rgba(243, 238, 230, .2);

  --r-flaeche: 2px;
  --r-klein: 4px;
  --r-knopf: 6px;

  --rand: clamp(1.1rem, 4vw, 2.5rem);
  --laufweite: 74rem;
  --feder: cubic-bezier(.34, 1.56, .64, 1);
  --nw-leiste-h: 55px;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --brot: "Source Sans 3", "Segoe UI", sans-serif;

  /* Backsteinverband im Laeuferverband: nur Fugenlinien, keine Verlaeufe. */
  --verband: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='56'%3E%3Cpath d='M0 1H96M0 29H96M24 1V29M72 1V29M0 29V57M48 29V57M96 29V57' stroke='%23a5503d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  /* Planpapier: feines Raster */
  --planpapier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M24 0V24H0' stroke='%23e2d9c8' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

.sprung {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  background: var(--schiefer-tief); color: #fff; padding: .7rem 1rem; border-radius: var(--r-klein);
}
.sprung:focus { top: calc(var(--nw-leiste-h) + .6rem); color: #fff; }

/* ---------- Musterleiste (R109, R60) ---------- */
.nw-musterleiste {
  position: sticky; top: 0; z-index: 60;
  background: var(--schiefer-tief); color: #fff; font-size: .875rem; padding: .25rem 0;
}
.nw-musterleiste .mitte { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; align-items: center; justify-content: space-between; }
.nw-musterleiste .nw-links { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; }
.nw-musterleiste a {
  color: #fff; display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 .7rem; border-radius: var(--r-knopf);
}
.nw-musterleiste a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nw-musterleiste a.nw-cta { background: var(--kalk); color: var(--schiefer-tief); text-decoration: none; font-weight: 700; }
.nw-musterleiste a.nw-cta:hover { background: var(--licht); color: var(--schiefer-tief); }
.nw-musterleiste .nw-ki { color: var(--licht); font-weight: 700; }
.nw-musterleiste .nw-lang { display: none; }
@media (min-width: 64em) { .nw-musterleiste .nw-lang { display: inline; }}
@media (max-width: 47.99em) {
  .nw-musterleiste .nw-mittel { display: none; }
  .nw-musterleiste { font-size: .8125rem; }
  .nw-musterleiste .mitte { gap: 0 .4rem; }
  .nw-musterleiste a { padding: 0 .5rem; }}
@media print { .nw-musterleiste { display: none; }}

/* ---------- KI-Kennzeichen am Bild (R109) ---------- */
:where(:has(> .ki-zeichen)) { position: relative; }
.ki-zeichen {
  position: absolute; top: .6rem; left: .6rem; z-index: 3;
  background: var(--schiefer-tief); color: #fff; font-size: .75rem; line-height: 1;
  padding: .32rem .6rem; border-radius: var(--r-klein); letter-spacing: .02em; pointer-events: none;
}

.ki-bild { position: relative; display: block; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: var(--nw-leiste-h); z-index: 40;
  background: var(--kalk); border-bottom: 1px solid var(--schiefer);
  transition: box-shadow .25s ease;
}
.kopf.gescrollt { box-shadow: 0 8px 24px rgba(27, 32, 37, .14); }
.kopf-innen { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.marke { display: inline-flex; align-items: center; gap: .75rem; color: var(--schiefer); text-decoration: none; min-height: 48px; margin-right: auto; }
.marke:hover { color: var(--schiefer-tief); }
.marke-zeichen { flex: none; width: 44px; height: 44px; overflow: visible; }
.marke-bart { fill: var(--backstein); transform-box: view-box; transform-origin: 14px 30.5px; }
.marke-name { display: grid; line-height: 1.1; }
.marke-name b { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.marke-name b i { font-weight: 400; color: var(--backstein); }
.marke-name small { font-size: .78rem; color: var(--gedimmt); letter-spacing: .05em; text-transform: uppercase; }
.menue { display: flex; gap: .25rem; }
.menue a {
  white-space: nowrap; display: inline-flex; align-items: center; min-height: 48px; padding: 0 .9rem;
  color: var(--text); text-decoration: none; font-weight: 600; border-radius: var(--r-knopf);
  border-bottom: 3px solid transparent;
}
.menue a:hover { background: var(--sand); color: var(--schiefer-tief); }
.menue a[aria-current="page"] { border-bottom-color: var(--backstein); border-radius: var(--r-knopf) var(--r-knopf) 0 0; }
.kopf-tel {
  white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: 0 1.2rem;
  background: var(--schiefer); color: #fff; font-weight: 700; text-decoration: none; border-radius: var(--r-knopf);
}
.kopf-tel:hover { background: var(--backstein); color: #fff; }
.burger { display: none; }
@media (max-width: 75em) { .kopf-tel span { display: none; }}

@media (max-width: 63.99em) {
  .burger {
    display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none;
    background: var(--kalk); border: 2px solid var(--schiefer); border-radius: var(--r-knopf); cursor: pointer;
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 22px; height: 2px; background: var(--schiefer); position: relative;
    transition: transform .3s var(--feder), background .2s;
  }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; } .burger span::after { top: 7px; }
  .menue-offen .burger span { background: transparent; }
  .menue-offen .burger span::before { transform: translateY(7px) rotate(45deg); }
  .menue-offen .burger span::after { transform: translateY(-7px) rotate(-45deg); }
  .menue {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--schiefer); padding: .5rem var(--rand) 1rem;
  }
  .menue-offen .menue { display: flex; }
  .menue a { color: #fff; min-height: 56px; border-radius: 0; border-bottom: 1px solid var(--linie-dunkel); font-size: 1.15rem; }
  .menue a:hover { background: var(--schiefer-tief); color: #fff; }
  .menue a[aria-current="page"] { border-bottom-color: var(--licht); border-radius: 0; }}
@media (max-width: 30em) {
  .marke-name small { display: none; }
  .marke-name b { font-size: 1.05rem; }
  .marke-zeichen { width: 38px; height: 38px; }
  .kopf-tel { padding: 0 .8rem; font-size: .95rem; }
  .kopf-innen { gap: .5rem; min-height: 68px; }}
@media (max-width: 25em) { .kopf-tel { display: none; }}

/* ---------- Knoepfe und Kleinteile ---------- */
.knopf, .knopf-zweit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.5rem;
  font-family: var(--brot); font-weight: 700; font-size: 1.05rem; text-decoration: none; text-align: center;
  border-radius: var(--r-knopf); border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--feder), background .2s, color .2s, border-color .2s;
}
.knopf { background: var(--backstein); color: #fff; }
.knopf:hover { background: var(--schiefer-tief); color: #fff; transform: translateY(-2px); }
.knopf-zweit { border-color: currentColor; color: var(--schiefer); background: transparent; }
.knopf-zweit:hover { background: var(--schiefer); color: #fff; border-color: var(--schiefer); transform: translateY(-2px); }
.knopf:active, .knopf-zweit:active { transform: scale(.97); }
/* Auf dunklem Grund ist der Hauptknopf das „Licht im Fenster". */
.hero .knopf, .abschnitt-schiefer .knopf { background: var(--licht); color: var(--schiefer-tief); }
.hero .knopf:hover, .abschnitt-schiefer .knopf:hover { background: #fff; color: var(--schiefer-tief); }
.hero .knopf-zweit, .abschnitt-schiefer .knopf-zweit { color: #fff; }
.hero .knopf-zweit:hover, .abschnitt-schiefer .knopf-zweit:hover { background: #fff; color: var(--schiefer-tief); border-color: #fff; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.textlink { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.textlink::after { content: "\2192"; margin-left: .45rem; transition: transform .25s var(--feder); }
.textlink:hover::after { transform: translateX(5px); }
/* Hausnummer als Emaille-Schildchen: dunkles Feld, heller Rand innen. */
.hausnr {
  display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none;
  background: var(--schiefer); color: #fff; border-radius: var(--r-klein);
  box-shadow: inset 0 0 0 2px var(--schiefer), inset 0 0 0 3.5px rgba(255, 255, 255, .85);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; line-height: 1;
}
.hausnr-licht { background: var(--licht); color: var(--schiefer-tief); box-shadow: inset 0 0 0 2px var(--licht), inset 0 0 0 3.5px rgba(27, 32, 37, .7); }
.hausnr-weiss { background: var(--kalk); color: var(--backstein-tief); box-shadow: inset 0 0 0 2px var(--kalk), inset 0 0 0 3.5px rgba(111, 42, 29, .8); }
.sz-tuer-bild .ki-zeichen { top: auto; left: auto; right: .6rem; bottom: .6rem; z-index: 1; }
.sz-abend-eintrag .ki-zeichen { top: .4rem; left: .4rem; font-size: .62rem; padding: .22rem .4rem; }
.ueber-bild-klein .ki-zeichen { font-size: .62rem; padding: .22rem .4rem; }

/* ---------- Fuss ---------- */
.fuss { background: var(--schiefer-tief); color: var(--hellgrau); padding-block: 3.5rem 2rem; }
.fuss a, .fuss .fuss-knopf { color: #fff; display: inline-flex; align-items: center; min-height: 48px; }
.fuss a:hover, .fuss .fuss-knopf:hover { color: var(--licht); }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.fuss-marke { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: #fff; margin-bottom: .8rem; }
.fuss-marke .marke-bart { fill: var(--licht); }
.fuss h2 { font-family: var(--brot); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--licht); margin-bottom: .4rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss address { font-style: normal; line-height: 1.5; }
.fuss-knopf { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.fuss-schluss { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--linie-dunkel); }
.musterhinweis { font-size: .9rem; max-width: 80ch; margin: 0; }
@media (max-width: 47.99em) { .fuss-raster { grid-template-columns: 1fr; }}

dialog { border: 0; border-radius: var(--r-flaeche); padding: 2rem; max-width: min(34rem, calc(100vw - 2rem)); color: var(--text); background: var(--karte); }
dialog::backdrop { background: rgba(27, 32, 37, .7); }
dialog h2 { font-size: 1.5rem; }

/* ---------- Markenbewegung: Der Schluesselbart dreht sich einmal (wie ein
   Schluessel im Schloss, um die Schaftachse) und bei Beruehrung erneut. ---------- */
@media (prefers-reduced-motion: no-preference) {
  .kopf .marke-bart { animation: marke-schliesst 1.3s cubic-bezier(.5, 0, .2, 1) .5s 1 both; }
  .marke:hover .marke-bart, .marke:focus-visible .marke-bart { animation: marke-schliesst-kurz .7s cubic-bezier(.5, 0, .2, 1) 1; }}
@keyframes marke-schliesst { 0%, 100% { transform: scaleY(1); } 45%, 60% { transform: scaleY(.12); } }
@keyframes marke-schliesst-kurz { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.12); } }

/* =====================================================================
   AUSBAU UEBER DIE BILDSCHIRMBREITEN, 18.09.2026 (Hugo: „baue die seiten noch
   auf verschiedenen bildschirmbreiten"). Gemessen mit breiten.mjs:
   360, 480, 600, 768, 1024, 1280, 1920, 740 quer.
   ===================================================================== */

/* --- Musterleiste bleibt einzeilig (brach bei 768 und 1024 px um) */
@media (min-width: 64em) and (max-width: 79.99em) { .nw-musterleiste .nw-lang { display: none; }}
@media (max-width: 59.99em) { .nw-musterleiste .nw-mittel { display: none; }}

/* --- Handy im Querformat: Leisten belegten 37 % des Fensters. Der Kopf laeuft
   dort mit der Seite weg, die Musterleiste bleibt. */
@media (max-height: 30em) and (orientation: landscape) { .kopf { position: static; }}
/* Grosse Bildschirme: die Seite waechst mit (wie in stil.css) */
@media (min-width: 100em) { html { font-size: 112.5%; } }
@media (min-width: 120em) { html { font-size: 125%; } }
@media (min-width: 150em) { html { font-size: 140%; } }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.012em; }
body { font-family: var(--brot); background: var(--kalk); }
:focus-visible { outline: 3px solid var(--backstein); outline-offset: 3px; }
.abschnitt-dunkel .knopf { background: var(--licht); color: var(--schiefer-tief); }
.abschnitt-dunkel .knopf:hover { background: #fff; color: var(--schiefer-tief); }
.abschnitt-dunkel .knopf-zweit { color: #fff; }
.abschnitt-dunkel .knopf-zweit:hover { background: #fff; color: var(--schiefer-tief); border-color: #fff; }
