/* pat-homepage: modernisiertes PAT-Erscheinungsbild (Logo, Navigation und Fußzeile wie die alte Homepage, ohne Fremdressourcen). */
:root {
  --brand: #3498db;
  --accent: #1f6fb2;
  --accent-dark: #17598f;
  --ink: #2b2f33;
  --muted: #5f666d;
  --line: #e3e7eb;
  --soft: #f4f6f8;
  --footer: #272727;
  --footer-deep: #1d1d1d;
  --ok: #2e9d57;
  --no: #c0392b;
  --radius: 10px;
  --max: 68rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; line-height: 1.65; color: var(--ink); background: #fff;
}
main { flex: 1 0 auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.25; color: #1f2327; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; z-index: 10; background: #fff; padding: .5rem .75rem; }

/* Kopfzeile */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { font-size: 1.3rem; font-style: italic; font-weight: 700; color: #666; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--brand); }
.brand:hover { color: #555; }
.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: #555; padding: .55rem .75rem; border-radius: 6px;
}
.nav a:hover { color: var(--accent); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav a.nav-login { color: #fff; background: var(--accent); margin-left: .5rem; border-radius: 6px; box-shadow: none; }
.nav a.nav-login:hover { background: var(--accent-dark); color: #fff; }

/* Startseite */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.16), transparent 11rem),
    radial-gradient(circle at 92% 80%, rgba(255,255,255,.10), transparent 8rem),
    radial-gradient(circle at 58% 105%, rgba(120,190,240,.30), transparent 14rem),
    radial-gradient(circle at 8% 10%, rgba(255,255,255,.07), transparent 9rem),
    linear-gradient(135deg, #172b3e 0%, #1f5482 55%, #2a7fc0 100%);
}
.hero .wrap { padding-top: 5rem; padding-bottom: 5rem; }
.hero-label {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .25rem .8rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin: 1rem 0 .75rem; max-width: 20ch; }
.hero p { font-size: 1.125rem; max-width: 38rem; margin: 0 0 .5rem; color: rgba(255,255,255,.9); }
.hero .address { font-weight: 700; color: #fff; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 8px; background: var(--accent); color: #fff;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button.light { background: #fff; color: #17598f; }
.button.light:hover { background: #eaf3fb; color: #17598f; }
.hero .hint { font-size: .95rem; color: rgba(255,255,255,.78); margin: 0; }

.facts { padding: 3.5rem 0 4rem; }
.facts h2 { font-size: 1.5rem; margin: 0 0 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; background: #fff; }
.card h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.card p { margin: 0; color: var(--muted); }
.card .icon {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: #eaf3fb; color: var(--accent); margin-bottom: .75rem;
}

/* Unterseiten */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.page-head h1 { margin: 0; font-size: 1.6rem; font-weight: 600; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.content { padding: 2.5rem 0 4rem; }
.prose > * { max-width: 48rem; }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose address { font-style: normal; margin-bottom: 1rem; }
.prose a { overflow-wrap: anywhere; }
.prose h2[id] { scroll-margin-top: 6rem; }
.prose .toc { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: .85rem; text-decoration: none; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
.toc a:hover { border-color: var(--brand); color: var(--accent); }
.note { color: var(--muted); font-size: .9rem; }

/* Preisliste */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-head { background: var(--brand); color: #fff; padding: 1.1rem 1.35rem; }
.plan-head h2 { color: #fff; margin: 0; font-size: 1.3rem; }
.plan-head p { margin: .15rem 0 0; font-size: .85rem; opacity: .9; }
.plan-price { padding: 1.1rem 1.35rem; }
.plan-price strong { font-size: 2rem; }
.plan-price span { color: var(--muted); font-size: .9rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.features { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 32rem; }
.features th, .features td { padding: .65rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
.features th:first-child, .features td:first-child { text-align: left; }
.features thead th { background: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.features tbody th { font-weight: 400; }
.features tr.group th { background: var(--soft); font-weight: 700; color: #1f2327; font-size: 1rem; }
.features tr:last-child td, .features tr:last-child th { border-bottom: 0; }
.yes, .no { font-weight: 700; }
.yes { color: var(--ok); }
.no { color: var(--no); }
.details { margin-top: 2.5rem; }

/* Fußzeile */
.site-footer { background: var(--footer); color: #c9c9c9; font-size: .95rem; margin-top: auto; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-top: 2.75rem; padding-bottom: 2.25rem; }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 .9rem; }
.site-footer p { margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .3rem 0; border-bottom: 1px solid #353535; }
.site-footer li:last-child { border-bottom: 0; }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright { background: var(--footer-deep); color: #9a9a9a; font-size: .85rem; }
.copyright .wrap { padding-top: 1rem; padding-bottom: 1rem; }

@media (max-width: 720px) {
  .site-header .wrap { padding-top: .6rem; padding-bottom: .6rem; min-height: 0; }
  .nav { width: 100%; gap: .25rem; }
  .nav a { padding: .5rem .6rem; letter-spacing: .03em; }
  .nav a:first-child { margin-left: -.6rem; }
  .nav a.nav-login { margin-left: auto; padding: .5rem .9rem; }
  .hero .wrap { padding-top: 3rem; padding-bottom: 3.25rem; }
  .plans { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .plan-head { padding: .8rem .9rem; }
  .plan-head h2 { font-size: 1.05rem; }
  .plan-head p { line-height: 1.35; margin-top: .3rem; }
  .plan-price { padding: .8rem .9rem; }
  .plan-price strong { font-size: 1.45rem; }
  .plan-price span { display: block; }
  table.features { min-width: 0; font-size: .875rem; }
  .features th, .features td { padding: .55rem .5rem; }
  .features th:first-child, .features td:first-child { padding-left: .8rem; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media print {
  .site-header, .site-footer, .copyright, .toc { display: none; }
  .page-head { background: none; border: 0; }
}
