/* Reinke Sicherheitstechnik, Webvisitenkarte
   Statisch, ohne externe Ressourcen. Mobile First. */

:root {
  --green: #97d467;          /* Logo-Grün */
  --green-dark: #3f7a1c;     /* lesbares Grün für Text und Links (Kontrast >= 4.5:1) */
  --green-soft: #eef8e6;
  --ink: #111611;
  --muted: #5b625b;
  --line: #e2e7df;
  --bg: #f5f7f3;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(17, 22, 17, .04), 0 12px 40px -12px rgba(17, 22, 17, .14);
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Preloader (nur mit JS sichtbar) ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.js .preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__bars { display: flex; align-items: flex-end; gap: 6px; height: 34px; }
.preloader__bars span {
  width: 7px;
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  animation: bar 1s var(--ease) infinite;
}
.preloader__bars span:nth-child(1) { height: 45%; }
.preloader__bars span:nth-child(2) { height: 65%; animation-delay: .12s; }
.preloader__bars span:nth-child(3) { height: 85%; animation-delay: .24s; }
.preloader__bars span:nth-child(4) { height: 100%; animation-delay: .36s; }
@keyframes bar {
  0%, 100% { transform: scaleY(.55); opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Dekor: Balken aus dem Logo ---------- */
.deco {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.deco span {
  position: absolute;
  background: var(--green);
  opacity: .12;
  border-radius: 3px;
}
.deco span:nth-child(1) { width: 14px; height: 120px; top: 6%;  right: 10%; }
.deco span:nth-child(2) { width: 14px; height: 90px;  top: 12%; right: calc(10% + 30px); }
.deco span:nth-child(3) { width: 14px; height: 60px;  top: 18%; right: calc(10% + 60px); }
.deco span:nth-child(4) { width: 90px; height: 90px;  bottom: 8%; left: -20px; }
.deco span:nth-child(5) { width: 50px; height: 50px;  bottom: 3%; left: 90px; }

/* ---------- Layout ---------- */
.site-header,
.site-main,
.site-footer {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header { padding-top: 20px; }
.site-header .brand { display: inline-block; }
.site-header .brand img { width: 150px; }

.site-main { flex: 1; padding-top: 28px; padding-bottom: 40px; }

/* ---------- Visitenkarte ---------- */
.home .site-main { display: grid; place-items: center; }

.card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 24px 28px;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--green);
}

.card__logo { width: min(320px, 82%); margin: 0 auto 28px; }

.card__name {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
}
.card__owner {
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
}

.card__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.card__list li { border-bottom: 1px solid var(--line); }

.card__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  color: var(--ink);
  text-decoration: none;
  font-style: normal;
}
a.card__item { border-radius: 10px; }
a.card__item:hover { background: var(--green-soft); color: var(--ink); }
a.card__item:hover .card__icon { background: var(--green); color: var(--ink); }

.card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.card__icon svg { width: 22px; height: 22px; }

.card__label {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.3;
}
.card__value { display: block; font-size: 1.0625rem; line-height: 1.4; }
.card__value--big { font-size: 1.375rem; font-weight: 700; letter-spacing: .01em; }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px;
}
.legal h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.legal .lead { margin: 0 0 24px; color: var(--muted); }
.legal h2 {
  margin: 32px 0 8px;
  font-size: 1.125rem;
  line-height: 1.3;
}
.legal h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--green);
  border-radius: 2px;
  vertical-align: 1px;
}
.legal h3 { margin: 20px 0 4px; font-size: 1rem; }
.legal p, .legal ul, .legal address { margin: 0 0 12px; }
.legal address { font-style: normal; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal .stand { margin-top: 32px; color: var(--muted); font-size: .875rem; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 700;
  text-decoration: none;
}
.back:hover { transform: translateX(-3px); }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound .code {
  margin: 0;
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
  color: var(--green);
}
.notfound .back { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: .875rem;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { color: var(--muted); text-decoration: none; padding: 6px 2px; }
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--green-dark); }
.agency-branding { color: var(--muted); font-size: .8125rem; }
.agency-branding a { color: var(--muted); }

/* ---------- Reveal-Animationen (nur mit JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

/* ---------- Ab Tablet ---------- */
@media (min-width: 640px) {
  .site-header { padding-top: 32px; }
  .site-header .brand img { width: 180px; }
  .site-main { padding-top: 40px; padding-bottom: 56px; }
  .card { padding: 48px 48px 36px; }
  .card__name { font-size: 1.625rem; }
  .legal { padding: 48px 56px; }
  .legal h1 { font-size: 2.125rem; }
  .deco span { opacity: .16; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .preloader, .deco, .skip-link { display: none !important; }
  body { background: #fff; }
  .card, .legal { box-shadow: none; border: 0; }
}
