/* ikeytz Apple-System — gleiche Tokens wie www / maps (tailwind + globals.css) */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --haze: #f5f5f7;
  --accent: #0066cc;
  --accent-hover: #005bb8;
  --urgent: #34c759;
  --urgent-hover: #2db84e;
  --bg: #ffffff;
  --line: rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px -8px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 4px 8px rgba(0, 0, 0, 0.04), 0 24px 48px -12px rgba(0, 0, 0, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2rem, 680px);
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
}

/* Header — wie www sticky glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-bar {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 28px;
  height: 28px;
  display: block;
}

.brand .wordmark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.header-phones {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 13px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-phones a {
  color: rgba(29, 29, 31, 0.85);
  font-weight: 400;
}

.header-phones a:hover {
  color: var(--ink);
}

.header-sep {
  color: rgba(0, 0, 0, 0.2);
  user-select: none;
}

/* Hero glow — globals.css .hero-glow */
.hero-glow {
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(0, 113, 227, 0.1), transparent 60%),
    radial-gradient(50% 45% at 85% 0%, rgba(255, 59, 48, 0.06), transparent 60%),
    #ffffff;
}

main {
  padding: 0 0 4rem;
}

.hero-band {
  position: relative;
  overflow: hidden;
}

.hero {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
  text-align: center;
  padding: 5.5rem 0 5rem;
}

@media (min-width: 768px) {
  .hero {
    width: min(100% - 3rem, 880px);
    padding: 7rem 0 7.5rem;
  }
}

.hero-logo {
  width: min(200px, 48vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.45);
  animation: pulseDot 1.8s ease-out infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 199, 89, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
  }
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.hero h1 {
  margin-top: 1.75rem;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  max-width: 18ch;
  margin-inline: auto;
}

.tagline {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(29, 29, 31, 0.8);
}

.offer {
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.1875rem);
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.7);
}

.lead {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}

/* Phone CTAs — 1:1 www PhoneLinks variant=buttons */
.phone-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: min(100%, 13.5rem);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .phone-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
  }
}

.phone-btn {
  flex-direction: column !important;
  min-width: 200px;
  padding: 0.9rem 2rem !important;
  min-height: auto;
}

.phone-btn-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary.phone-btn .phone-btn-label {
  color: rgba(255, 255, 255, 0.7);
}

.btn-secondary.phone-btn .phone-btn-label {
  color: var(--muted);
}

.phone-btn-num {
  margin-top: 0.15rem;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.hero-links {
  margin: 1.25rem 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-links a {
  font-weight: 500;
  color: var(--accent);
}

.hero-links a:hover {
  text-decoration: underline;
}

.hero-links span {
  margin: 0 0.45rem;
  color: rgba(29, 29, 31, 0.2);
}

.content-stack {
  padding-bottom: 1rem;
}

.section-gap {
  margin-top: 2rem !important;
}

/* Floating — wie www WhatsAppButton */
.call-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .call-dock {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

.call-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1rem 0 0.875rem;
  border-radius: 9999px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s var(--ease);
}

.call-chip:hover {
  color: #fff !important;
  transform: scale(1.03);
}

.call-chip:active {
  transform: scale(0.97);
}

.call-chip-handy {
  background: #34c759;
}

.call-chip-festnetz {
  background: #007aff;
}

.call-ico {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  body {
    padding-bottom: 9.5rem;
  }

  .list-page .pager:last-of-type {
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
  }
}

/* Buttons — globals .btn-primary / .btn-secondary */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  background: #1d1d1f;
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 24px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: #000;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 18px 32px -8px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.045);
  color: #1d1d1f !important;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f !important;
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 0.5rem 0 2rem;
}

.section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section > .hint {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  margin: 0 0 1.15rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}

.nap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--haze);
  overflow: hidden;
}

.nap-list li {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.98rem;
}

.nap-list li:last-child {
  border-bottom: none;
}

.nap-list strong {
  display: inline-block;
  min-width: 7.5rem;
  font-weight: 600;
  color: var(--muted);
}

/* Thematisches Seitenverzeichnis */
.toc-group {
  margin: 0 0 1.75rem;
}

.toc-group h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.toc-group > .hint {
  margin: 0 0 0.85rem;
}

.toc-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--haze);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.toc-nav li {
  border-bottom: 1px solid var(--line);
}

.toc-nav li:last-child {
  border-bottom: none;
}

.toc-nav a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.95rem 1.15rem;
  color: var(--ink);
  min-height: 2.75rem;
  transition: background 0.2s ease;
}

.toc-nav a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--ink);
}

.toc-nav strong {
  flex: 1 1 12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
}

.toc-nav a > span:not(.lang) {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  margin-inline-start: auto;
}

/* Sprachcode auf jeder Taste / jedem Listenlink */
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.btn-primary .lang,
.call-chip .lang {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-secondary .lang {
  background: rgba(0, 0, 0, 0.08);
}

.pager a {
  gap: 0.45rem;
}

.list-page h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
}

.list-page h1 .h1-text {
  text-align: left;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.link-list .link-label {
  flex: 1;
  text-align: left;
}

.card-nav a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.card-nav a .lang {
  margin-bottom: 0.15rem;
}

.card-nav strong {
  flex: 1 1 auto;
}

.card-nav span:not(.lang) {
  flex: 1 1 100%;
}

/* surface-card — wie www */
.surface-card {
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--haze);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.nav-grid,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-grid li,
.link-list li {
  border-bottom: 1px solid var(--line);
}

.nav-grid li:last-child,
.link-list li:last-child {
  border-bottom: none;
}

.nav-grid a,
.link-list a {
  display: block;
  padding: 0.95rem 1.15rem;
  color: var(--ink);
  font-weight: 500;
  background: transparent;
  min-height: 2.75rem;
  transition: background 0.2s ease;
}

.nav-grid a:hover,
.link-list a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--accent);
}

.card-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.card-nav a {
  display: block;
  padding: 1.15rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--haze);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.card-nav a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.card-nav strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.card-nav span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.list-page .pager {
  position: relative;
  z-index: 2;
}

.list-page .pager:first-of-type {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.meta-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

/* Footer — Layout wie www Footer.js */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--haze);
  padding: 3.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.footer-inner {
  width: min(100% - 3rem, 1200px);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

.footer-brand .brand {
  margin-bottom: 0.75rem;
}

.footer-blurb {
  margin: 0.75rem 0 0;
  max-width: 240px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.footer-h {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.footer-h a {
  color: var(--ink);
}

.footer-h a:hover {
  color: var(--accent);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-list li {
  margin: 0 0 0.5rem;
}

.footer-list a {
  color: var(--muted);
}

.footer-list a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--ink);
}

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