/* Verbindungsseite «Kontaktbogen» (19.11.2026). Flach, eckig, modern: keine Schatten, keine
   Verläufe als Fläche, keine Rundungen. Werte je Mandant über Variablen, Vertrag in
   referenzen/richtungsvertrag.md. */
@font-face { font-family: "Inter"; src: url("/instagram/assets/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --grund: #fbfaf6; --flaeche: #f2f0e9; --text: #1d1d1b; --leise: #5f5d57; --linie: #e3e0d7; --marke: #b9b5aa;
  --akzent: #d97a33; --akzent-hover: #c86c27; --akzent-text: #1d1d1b; --akzent-tief: #a85a1d;
  --kopf-h: 64px; --rand: clamp(16px, 4vw, 56px);
}
.m-nirography {
  color-scheme: dark;
  --grund: #0b0b0b; --flaeche: #131312; --text: #f4f4f2; --leise: #a3a39d; --linie: #2a2a28; --marke: #55554f;
  --akzent: #e52421; --akzent-hover: #c91d1a; --akzent-text: #ffffff; --akzent-tief: #ff6b5e;
}

/* Keine sichtbaren Scrollbalken (MKurti-Regel seit 16.11.2026) */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { background: var(--grund); }
body {
  margin: 0; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--grund); color: var(--text);
  font: 400 15px/1.55 "Inter", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
h1, p, dl, dd, ol { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; }
svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 5; height: var(--kopf-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--rand); background: var(--grund); border-bottom: 1px solid var(--linie);
}
.marke { display: inline-flex; align-items: center; height: 44px; }
.marke img { height: 100%; width: auto; display: block; }
.m-mkurti .marke img { height: 36px; }
.wortmarke { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.zurueck { font-size: 14px; color: var(--leise); text-decoration: none; padding: 10px 0; }
.zurueck:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Bühne: Bogen links, Spalte rechts */
.buehne { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr); }

/* Kontaktbogen */
.bogen { background: var(--flaeche); border-right: 1px solid var(--linie); padding: 48px var(--rand); display: flex; align-items: center; }
.bogen-innen { width: 100%; max-width: max(300px, calc(100svh - 360px)); margin: 0 auto; }
.bogen-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--linie); font-size: 13px; }
.bogen-kopf strong { font-weight: 500; }
.bogen-kopf span { color: var(--leise); font-variant-numeric: tabular-nums; }
.felder { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bild { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--grund); }
.bild img { width: 100%; height: 100%; object-fit: cover; display: block; animation: ein 0.4s ease-out both; }
a.bild:hover img { opacity: 0.88; }
a.bild:hover { outline: 2px solid var(--akzent); outline-offset: -2px; }
.feld:nth-child(2) img { animation-delay: 50ms; } .feld:nth-child(3) img { animation-delay: 100ms; }
.feld:nth-child(4) img { animation-delay: 150ms; } .feld:nth-child(5) img { animation-delay: 200ms; }
.feld:nth-child(6) img { animation-delay: 250ms; } .feld:nth-child(7) img { animation-delay: 300ms; }
.feld:nth-child(8) img { animation-delay: 350ms; } .feld:nth-child(9) img { animation-delay: 400ms; }
@keyframes ein { from { opacity: 0; } }
.art { position: absolute; top: 0; left: 0; padding: 3px 7px; font-size: 11px; font-weight: 500; background: var(--grund); color: var(--text); }
/* Leeres Feld: nur Schnittmarken an den Ecken */
.leer {
  display: grid; place-items: center; padding: 16px; text-align: center;
  --m: linear-gradient(var(--marke), var(--marke));
  background:
    var(--m) left 10px top 10px / 14px 1px no-repeat, var(--m) left 10px top 10px / 1px 14px no-repeat,
    var(--m) right 10px top 10px / 14px 1px no-repeat, var(--m) right 10px top 10px / 1px 14px no-repeat,
    var(--m) left 10px bottom 10px / 14px 1px no-repeat, var(--m) left 10px bottom 10px / 1px 14px no-repeat,
    var(--m) right 10px bottom 10px / 14px 1px no-repeat, var(--m) right 10px bottom 10px / 1px 14px no-repeat,
    var(--grund);
}
.frei { background: transparent; border: 1px solid var(--linie); }
.leer span { font-size: 12px; color: var(--leise); line-height: 1.4; }
.feld-text { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--leise); font-variant-numeric: tabular-nums; min-height: 16px; }

/* Rechte Spalte */
.spalte { padding: 48px var(--rand); display: flex; flex-direction: column; justify-content: center; gap: 28px; max-width: 620px; }
.plakette { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--leise); }
.plakette::before { content: ""; width: 8px; height: 8px; background: var(--marke); }
.plakette.ist-ok { color: var(--akzent-tief); }
.plakette.ist-ok::before { background: var(--akzent); }
.m-nirography .plakette.ist-ok { color: var(--text); }
.m-nirography .plakette.ist-ok::before { background: var(--text); }
h1 { font-size: clamp(30px, 2.9vw, 44px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 14px 0 12px; }
.lead { font-size: 16px; color: var(--leise); max-width: 44ch; }
.meldung { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--akzent); background: var(--flaeche); font-size: 14px; }
.meldung strong { display: block; font-weight: 600; margin-bottom: 2px; }
.meldung p { color: var(--leise); }

.profil { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.ig { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--linie); color: var(--text); }
.profil strong { display: block; font-weight: 500; font-size: 16px; overflow-wrap: anywhere; }
.profil small { display: block; font-size: 12px; color: var(--leise); }

.schritte { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 20px; }
.schritte li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.schritte li > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--linie); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.schritte strong { font-weight: 500; font-size: 15px; }
.schritte p { font-size: 13px; color: var(--leise); }

.angaben { margin-top: 4px; }
.angaben div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.angaben dt { color: var(--leise); }
.angaben dd { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.angaben small { display: block; font-size: 12px; color: var(--leise); }

.knopf {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 52px; padding: 0 20px; border: 1px solid var(--akzent); background: var(--akzent); color: var(--akzent-text);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: transform 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
}
.knopf:hover { background: var(--akzent-hover); border-color: var(--akzent-hover); }
.knopf:active { transform: scale(0.97); }
.knopf.neben { background: transparent; border-color: var(--text); color: var(--text); }
.knopf.neben:hover { background: var(--text); color: var(--grund); }
.knopf:disabled { opacity: 0.45; cursor: default; transform: none; }
.hinweis { margin-top: 10px; font-size: 12px; color: var(--leise); }

/* Fuss */
.fuss { display: flex; justify-content: space-between; gap: 24px; padding: 16px var(--rand); border-top: 1px solid var(--linie); font-size: 12px; color: var(--leise); }
.fuss a { color: var(--text); }

/* Telefon und schmale Fenster */
@media (max-width: 860px) {
  :root { --kopf-h: 60px; }
  .hat-leiste { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .marke { height: 34px; } .m-mkurti .marke img { height: 28px; }
  .buehne { display: flex; flex-direction: column; }
  .spalte { display: contents; }
  .status { order: 1; padding: 28px var(--rand) 24px; }
  .bogen { order: 2; border-right: 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 20px var(--rand); }
  .bogen-innen { max-width: none; }
  .bogen-kopf { margin-bottom: 14px; padding-bottom: 10px; }
  .felder { gap: 12px 8px; }
  .feld:nth-child(n+7) { display: none; }
  .frei { background: transparent; border: 1px solid var(--linie); }
.leer span { font-size: 11px; }
  .leer { padding: 10px; }
  .rest { order: 3; padding: 20px var(--rand) 8px; }
  h1 { font-size: 30px; margin: 10px 0 8px; }
  .lead { font-size: 15px; }
  .aktion { order: 4; padding: 20px var(--rand) 28px; }
  .profil { border-top: 0; padding-top: 4px; }
  .aktion.fest {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; flex-direction: column-reverse;
    padding: 12px var(--rand) calc(12px + env(safe-area-inset-bottom)); background: var(--grund); border-top: 1px solid var(--linie);
  }
  .knopf { width: 100%; }
  .aktion.fest .hinweis { margin: 0 0 8px; text-align: center; }
  .fuss { flex-direction: column; gap: 6px; padding-bottom: 20px; }
}
@media (min-width: 861px) and (max-height: 920px) {
  .bogen, .spalte { padding-top: 28px; padding-bottom: 28px; }
  .spalte { gap: 18px; }
  h1 { margin: 10px 0 8px; }
  .meldung { margin-top: 12px; padding: 10px 14px; }
  .profil { padding: 12px 0; }
  .schritte { gap: 10px; margin-top: 14px; }
  .angaben div { padding: 9px 0; }
}
@media (max-width: 860px) and (min-width: 600px) { .status, .rest { max-width: 620px; } }

@media (prefers-reduced-motion: reduce) {
  .bild img { animation: none; }
  .knopf { transition: none; }
  .knopf:active { transform: none; }
}
