/*
 * Das Design von www.kelziholz.de, uebernommen fuer links.kelziholz.de --
 * gleiche Werte wie kunde.kelziholz.de (kunde.css) und workbench.kelzi.org
 * (workbench-web.css), damit alle kelziholz-Seiten nach demselben Laden
 * aussehen.
 *
 *   Schrift        Quicksand, durchgehend, auch in den Ueberschriften
 *   Grund          reines Weiss, Wechselband #F7F7F7
 *   Text           reines Schwarz, Sekundaertext #3C3C3C und #767676
 *   Akzent         Sand #DDD0C0 -- die einzige Farbe im ganzen Design
 *   Schaltflaechen schwarz auf weiss, Pillenform
 *   Ueberschriften gross und leicht (Schnitt 500), ohne Sperrung
 *   Flaechen       keine Schatten, kaum Rundung
 *
 * Quicksand liegt in schrift/ auf diesem Server, nicht bei fonts.googleapis.com --
 * auf einer oeffentlichen Seite uebertraegt das sonst die IP jedes Besuchers
 * an Google, und dafuer gibt es keine Einwilligung.
 */

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/schrift/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/schrift/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #000000;
  --ink-2: #3c3c3c;
  --muted: #767676;
  --sand: #ddd0c0;
  --ground: #f7f7f7;
  --karte: #ffffff;
  --linie: #e9e9e9;
  --linie-stark: #cfcfcf;
  --r: 4px;
  --pille: 999px;
  --serif: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ffffff;
    --ink-2: #bdbdbd;
    --muted: #9a9a9a;
    --sand: #6a5f51;
    --ground: #0e0e0e;
    --karte: #161616;
    --linie: #2a2a2a;
    --linie-stark: #3e3e3e;
  }
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background: var(--ground);
  font-family: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}

body.portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6vw 5vw 2rem;
}

.wrap { width: 100%; max-width: 480px; text-align: center; }

h1 { font-family: var(--serif); font-weight: 500; font-size: 1.85rem; letter-spacing: 0; margin: 0 0 0.35rem; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 2rem 0 0.75rem; }

.untertitel { color: var(--muted); margin: 0 0 2.2rem; font-size: 1.02rem; }

.linkliste {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.knopf {
  display: inline-block;
  border: 0;
  border-radius: var(--pille);
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: var(--karte);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s ease;
}

.knopf:hover, .knopf:focus-visible { opacity: 0.85; }

.knopf.still {
  background: var(--karte);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--linie-stark);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.social-icons a {
  display: flex;
  color: var(--muted);
  transition: color 0.15s ease;
}

.social-icons a:hover, .social-icons a:focus-visible { color: var(--ink); }

.social-icons svg { width: 24px; height: 24px; fill: currentColor; }

.rechtliches {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.rechtliches a { color: inherit; }

/* -------------------------------------------------------------- Admin */

body.admin { display: block; }

.admin-kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--karte);
  border-bottom: 1px solid var(--linie);
}

.admin-kopf .marke { font-weight: 700; text-decoration: none; color: inherit; }
.admin-kopf nav { display: flex; align-items: center; gap: 1rem; }
.admin-kopf nav a { color: var(--muted); text-decoration: none; }
.admin-kopf nav a.an { color: var(--ink); font-weight: 700; }
.admin-kopf nav form { margin: 0; }
.admin-kopf nav button {
  border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; padding: 0;
}

.admin-inhalt { max-width: 720px; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem); }

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.zaehler {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.zaehler-zahl { font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.zaehler-text { color: var(--muted); }

label { display: block; margin-bottom: 0.9rem; font-size: 0.9rem; color: var(--muted); }
label.schalter { display: flex; align-items: center; gap: 0.5rem; }

input[type="text"], input[type="url"], input[type="email"], select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--linie-stark);
  border-radius: var(--r);
  background: var(--karte);
  color: var(--ink);
  font: inherit;
}

.icon-vorschau {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-vorschau svg { width: 20px; height: 20px; fill: currentColor; }

label.schalter input { width: auto; margin: 0; }

.meldung, .fehler {
  border-radius: var(--r);
  padding: 0.8rem 1rem;
  margin: 0 0 1.25rem;
}
.meldung { background: rgba(60, 130, 80, 0.14); }
.fehler { background: rgba(170, 60, 40, 0.16); }

.anmeldung { text-align: left; }
.anmeldung h1 { text-align: center; }
.anmeldung .knopf { width: 100%; }

.linkzeile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--linie);
}
.linkzeile:last-child { border-bottom: none; }

.linkzeile .details { flex: 1 1 auto; min-width: 0; }
.linkzeile .details strong { display: block; }
.linkzeile .details span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.linkzeile.aus { opacity: 0.5; }

.linkzeile-knoepfe {
  display: flex;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.linkzeile-knoepfe form { margin: 0; }
.linkzeile-knoepfe button {
  border: 1px solid var(--linie-stark);
  background: var(--karte);
  color: var(--ink);
  border-radius: var(--r);
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.linkzeile-knoepfe button:hover { border-color: var(--ink); }

details.link-bearbeiten { margin-top: 0.6rem; }
details.link-bearbeiten summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  list-style: none;
}
details.link-bearbeiten summary::-webkit-details-marker { display: none; }
details.link-bearbeiten .karte { margin-top: 0.6rem; margin-bottom: 0; }

.passkeyliste {
  list-style: none;
  margin: 0;
  padding: 0;
}
.passkeyliste li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--linie);
}
.passkeyliste li:last-child { border-bottom: none; }
.passkeyliste span { color: var(--muted); font-size: 0.85rem; }
