/* ==========================================================================
   ARGE Becker Kiehl — Webvisitenkarte für becker-kiehl-ausbau.de
   Schriften liegen lokal, es wird nichts von fremden Servern geladen.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-stretch: 115%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex";
  src: url("fonts/plexsans-var.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #09397f;
  --blau-tief: #04204b;
  --rot: #e20c1a;
  --tinte: #16233d;
  --grau: #5c6982;
  --linie: #dfe3ea;

  --schrift-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --schrift-text: "Plex", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: clamp(1.25rem, 5vw, 3.5rem) 1.25rem;

  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinte);
  -webkit-font-smoothing: antialiased;

  /* Tiefblau aus dem Logo, mit einer Aufhellung hinter der Karte */
  background-color: var(--blau-tief);
  background-image:
    radial-gradient(120% 90% at 50% 22%, #0d4795 0%, #09397f 42%, #04204b 100%);
  background-attachment: fixed;
}

/* Feines Ständerwerk-Raster als Hintergrundtextur */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.075) 0 1px,
    transparent 1px 84px
  );
  -webkit-mask-image: radial-gradient(85% 70% at 50% 45%, #000 25%, transparent 100%);
  mask-image: radial-gradient(85% 70% at 50% 45%, #000 25%, transparent 100%);
}

/* --- Die Karte ----------------------------------------------------------- */

.karte {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  background: #fff;
  border-radius: 3px;
  padding: clamp(2rem, 6vw, 2.75rem);
  box-shadow:
    0 1px 2px rgba(2, 14, 36, 0.28),
    0 18px 45px -12px rgba(2, 14, 36, 0.55);
  animation: auflegen 520ms cubic-bezier(0.22, 0.7, 0.3, 1) both;
}

/* Roter Anschnitt an der Oberkante, wie bei der gedruckten Karte */
.karte::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rot);
  border-radius: 3px 3px 0 0;
}

@keyframes auflegen {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.karte__logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 1.6rem;
}

.karte h1 {
  font-family: var(--schrift-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.35;
  margin: 0 0 0.3rem;
}

.rolle {
  color: var(--grau);
  font-size: 0.94rem;
  margin: 0 0 1.5rem;
}

.karte hr {
  border: 0;
  border-top: 1px solid var(--linie);
  margin: 1.5rem 0;
}

address {
  font-style: normal;
  line-height: 1.65;
  margin: 0;
}

.zeilen {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1.15rem;
  margin: 0;
  font-size: 0.97rem;
}

.zeilen dt { color: var(--grau); }
.zeilen dd { margin: 0; }

@media (max-width: 460px) {
  .zeilen {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .zeilen dt {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-top: 0.7rem;
  }
  .zeilen dt:first-of-type { margin-top: 0; }
  .zeilen dd { line-height: 1.45; }
}

.karte a {
  color: var(--blau);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.karte a:hover { color: var(--rot); }

.gross {
  font-family: var(--schrift-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--blau);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.15rem;
}
.gross:hover { color: var(--rot); }

.betriebe {
  font-size: 0.88rem;
  color: var(--grau);
  line-height: 1.7;
  margin: 0;
}

.betriebe strong {
  display: block;
  font-weight: 600;
  color: var(--tinte);
}

.betriebe > span {
  display: block;
}
.betriebe > span + span { margin-top: 0.85rem; }

/* --- Zeile unter der Karte ----------------------------------------------- */

.rechtliches {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1.75rem;
  font-size: 0.85rem;
}

.rechtliches a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}
.rechtliches a:hover { color: #fff; text-decoration-color: #fff; }

:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 3px;
}

.sprung {
  position: absolute;
  left: -9999px;
  background: #fff;
  color: var(--blau);
  padding: 0.7rem 1.2rem;
  z-index: 10;
}
.sprung:focus { left: 1rem; top: 1rem; }

/* --- Rechtstexte --------------------------------------------------------- */

.karte--text {
  width: min(100%, 760px);
  text-align: left;
}

.karte--text h1 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 1.5rem;
}

.karte--text h2 {
  font-family: var(--schrift-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.7rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--linie);
}

.karte--text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.4rem;
}

.karte--text p, .karte--text li { max-width: 66ch; }
.karte--text p { margin: 0 0 1em; }
.karte--text ul { padding-left: 1.15rem; }
.karte--text li { margin-bottom: 0.3rem; }
.karte--text .zeilen { margin-bottom: 1.2rem; }

.zurueck {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* --- Rücksicht und Druck ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .karte { animation: none; }
}

@media print {
  body { background: #fff; display: block; padding: 0; }
  body::before { display: none; }
  .karte { box-shadow: none; width: auto; padding: 0; }
  .rechtliches, .sprung { display: none; }
  a { color: #000; }
}
