/* hostwebhub – ein Klingelbrett aus gebürstetem Stahl an einer grünen Stiegenhaus-Wand.
   Jede App ist ein Namensschild mit Klingel, das Lämpchen leuchtet in der Farbe der App. */

@font-face {
  font-family: 'Overpass';
  src: url(/fonts/overpass-latin.woff2) format('woff2-variations');
  font-weight: 100 900; font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Overpass';
  src: url(/fonts/overpass-latin-ext.woff2) format('woff2-variations');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --wall: #123A33;
  --wall-light: #EAF2EE;
  --wall-mute: #A3C2B8;
  --steel-hi: #EEF1F3;
  --steel: #C4CACE;
  --steel-lo: #9AA2A8;
  --plate: #1A1E21;
  --ink: #14181B;
  --ink-soft: #3C454B;
  --ink-faint: #616B72;
  --led: #FFB000;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Overpass', system-ui, sans-serif;
  font-size: 1rem; line-height: 1.5;
  color: var(--wall-light);
  background-color: var(--wall);
  /* Verputz: zwei feine Punktraster und ein wenig Licht von oben rechts */
  background-image:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.3px),
    radial-gradient(rgba(0,0,0,.14) 1px, transparent 1.5px);
  background-size: auto, 5px 5px, 7px 7px;
  background-position: 0 0, 0 0, 2px 3px;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #FFC94D; outline-offset: 4px; border-radius: 8px; }
html[lang=de] [data-only=en], html[lang=en] [data-only=de] { display: none; }

/* ─── Wand mit Text und Klingelbrett ─── */
.wall {
  flex: 1;
  width: 100%; max-width: 1060px; margin: 0 auto;
  padding: clamp(32px, 7vw, 88px) clamp(16px, 4vw, 40px) 32px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
  align-items: start;
}
@media (min-width: 900px) {
  .wall { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: center; }
}
.lede {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800; line-height: 1;
  letter-spacing: -.025em;
  max-width: 11ch;
}
.sub { margin-top: 18px; font-size: 1.125rem; color: var(--wall-mute); max-width: 32ch; }

/* ─── Das Klingelbrett ─── */
.panel {
  position: relative;
  padding: 30px clamp(18px, 4vw, 30px) 34px;
  border-radius: 16px;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.22) 0 1px, rgba(0,0,0,.035) 1px 2px, transparent 2px 3px),
    linear-gradient(175deg, var(--steel-hi), var(--steel) 55%, #D6DADD);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -2px 0 rgba(0,0,0,.12),
    0 0 0 1px rgba(0,0,0,.35),
    0 28px 50px -18px rgba(0,0,0,.65);
}
.screw {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFFFF, #A9B0B5 55%, #6E767B);
  box-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.screw::after {
  content: ''; position: absolute; left: 2px; right: 2px; top: 5px; height: 2px;
  background: rgba(40,45,48,.65); transform: rotate(35deg);
}
.screw.tl { top: 10px; left: 10px; }
.screw.tr { top: 10px; right: 10px; }
.screw.tr::after { transform: rotate(-20deg); }
.screw.bl { bottom: 10px; left: 10px; }
.screw.bl::after { transform: rotate(80deg); }
.screw.br { bottom: 10px; right: 10px; }

.plate {
  background: var(--plate);
  border-radius: 6px;
  padding: 10px 14px 8px;
  text-align: center;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.75);
}
.plate h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; color: #F2F4F5; line-height: 1.2; }

/* Lautsprecher-Gitter der Gegensprechanlage */
.grille {
  width: 132px; height: 48px; margin: 18px auto 22px;
  border-radius: 10px;
  background: radial-gradient(circle, #2A2F33 2.2px, transparent 2.7px) 0 0 / 12px 12px;
  opacity: .9;
}

.doors { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.door {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  color: var(--ink); text-decoration: none;
  border-radius: 10px;
}
.door:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }

/* Namensschild hinter Plexiglas */
.label {
  display: flex; flex-direction: column;
  padding: 12px 14px 11px;
  border-radius: 6px;
  border: 1px solid #848D93;
  background:
    linear-gradient(158deg, rgba(255,255,255,.75) 0 28%, rgba(255,255,255,0) 28.5%),
    #FBFBFA;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.85);
}
.name { font-size: 1.375rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.badge {
  display: inline-block; vertical-align: 3px;
  font-size: .75rem; font-weight: 800; line-height: 1;
  color: #B0122E; border: 2px solid currentColor; border-radius: 4px;
  padding: 3px 5px 1px;
}
.desc { margin-top: 4px; font-size: .9375rem; line-height: 1.4; color: var(--ink-soft); }
.addr { margin-top: 6px; font-size: .8125rem; font-weight: 650; color: var(--ink-faint); overflow-wrap: anywhere; }

/* Klingelknopf mit Leuchtring */
.bell {
  position: relative; width: 58px; height: 58px; margin: 9px; border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #FFFFFF, #D3D8DB 42%, #9CA4A9);
  box-shadow: 0 0 0 4px #AEB5BA, 0 0 0 5px rgba(0,0,0,.4), 0 3px 2px 5px rgba(0,0,0,.18);
  transition: transform .08s, box-shadow .08s;
}
.bell::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--led) 40%, rgba(20,24,27,.35));
  transition: border-color .15s, box-shadow .15s;
}
.door:hover .bell::before, .door:focus-visible .bell::before, .door:active .bell::before {
  border-color: var(--led);
  box-shadow: 0 0 14px 2px var(--led), inset 0 0 6px var(--led);
}
.door:active .bell {
  transform: translateY(2px) scale(.96);
  box-shadow: 0 0 0 4px #AEB5BA, 0 0 0 5px rgba(0,0,0,.4), 0 1px 1px 5px rgba(0,0,0,.18);
}

@media (max-width: 480px) {
  .door { gap: 14px; }
  .bell { width: 46px; height: 46px; margin: 8px; }
}

.noscript { text-align: center; font-weight: 700; padding: 16px; }

/* ─── Fuß ─── */
.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.link { color: var(--wall-mute); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; padding: 6px 2px; }
.link:hover { color: var(--wall-light); }

/* ─── Impressum und Datenschutz ─── */
dialog { border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(6, 24, 20, .7); }
.doc { margin: auto; width: min(100% - 24px, 680px); max-height: min(100dvh - 24px, 900px); background: #F7F8F8; border-radius: 14px; padding: 0; }
.doc article { padding: 32px 24px 36px; }
.doc h2 { font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; padding-right: 44px; }
.doc h3 { font-size: 1.0625rem; font-weight: 800; margin: 20px 0 6px; }
.doc p { line-height: 1.6; max-width: 68ch; }
.doc a { color: #0E6B57; }
.doc-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 44px; height: 44px; border-radius: 50%; background: var(--plate); color: #fff; font-size: 26px; line-height: 1; }

/* ─── 404 ─── */
.lost { flex: 1; display: grid; place-items: center; padding: 40px 16px; }
.lost .panel { width: min(100%, 420px); text-align: center; }
.lost p { margin: 22px 0 18px; font-size: 1.125rem; font-weight: 650; }
.lost a { color: var(--ink); font-weight: 800; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; }
}
