/* ==========================================================================
   akfp.at · ein Stylesheet für alle Seiten

   Grundlage ist das Stylesheet von exceldok.de, Farben aus dem AKFP-Logo:
   Dunkelblau #002C72 (Schrift „AKFP.at“) und Orange #FF9B03 (Kugel).
   Reihenfolge: 1 Tokens · 2 Grundlage · 3 Kopf und Fuß · 4 Bausteine ·
   5 Startseite · 6 Unterseiten · 7 Kontaktblock · 8 schmale Bildschirme.

   Regeln: keine Animationen, keine Webfonts (Systemschrift, nichts lädt
   von fremden Servern), große Schrift und große Knöpfe, damit die Seite
   auch auf dem Telefon und für ältere Besucher gut bedienbar ist.
   ========================================================================== */

/* ── 1 Tokens ─────────────────────────────────────────────────────────── */
:root {
  --navy:        #002C72;   /* Marke, Überschriften, Knöpfe */
  --navy-dark:   #001E4F;   /* Hover */
  --orange:      #FF9B03;   /* Akzent aus dem Logo */
  --orange-tint: #FFF4E3;   /* helle Fläche mit Markenbezug */
  --ink-900:     #1B2433;   /* Text */
  --ink-700:     #354052;   /* Fließtext */
  --ink-500:     #5B6678;   /* Nebentext */
  --line:        #DDE2EA;
  --bg-50:       #F5F7FA;   /* Wechselhintergrund der Abschnitte */
  --paper:       #FFFFFF;
  --radius-sm:   6px;
  --radius:      12px;
  --max-w:       1180px;
  --text-w:      720px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 44px -26px rgba(0, 44, 114, .45);
}

/* ── 2 Grundlage ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.125rem;            /* 18 px, gut lesbar */
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.6rem; letter-spacing: -0.015em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.2rem; }
strong { color: var(--ink-900); font-weight: 600; }
ul, ol { list-style: none; }
[id] { scroll-margin-top: 90px; }   /* Sprungziele nicht unter dem festen Kopf */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-50); }
.head { max-width: 760px; margin-bottom: 40px; }
.head p { margin-top: 12px; font-size: 1.15rem; color: var(--ink-500); }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #B86A00;                 /* dunkles Orange, auf Weiß gut lesbar */
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 300; }
.skip-link:focus { left: 8px; }

/* ── 3 Kopf und Fuß ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 3px solid var(--orange);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-700); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-links .btn, .nav-links .btn:hover { color: #fff; text-decoration: none; }

.site-footer { background: var(--navy); color: #D3DCEB; padding: 56px 0 28px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-name { color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1F4A8C; font-size: .9rem; color: #A9B8D0; }

/* ── 4 Bausteine ──────────────────────────────────────────────────────── */
/* Knöpfe: zwei Arten, mindestens 52 px hoch (gut zu treffen auf dem Telefon) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: 1.05rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .98rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sym { flex: none; }

/* Häkchenliste */
.checks li { position: relative; padding-left: 34px; }
.checks li + li { margin-top: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .42em; width: 16px; height: 9px;
  border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg);
}

/* Bild neben Text */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.split-eng { gap: 40px; margin-bottom: 8px; }
.rund { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ── 5 Startseite ─────────────────────────────────────────────────────── */
.hero { padding: 72px 0 80px; background: var(--orange-tint); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 2.9rem; }
.hero-lead { margin-top: 18px; font-size: 1.25rem; color: var(--ink-700); max-width: 620px; }
.hero-foto img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-foto figcaption { margin-top: 10px; font-size: .95rem; color: var(--ink-500); }

.karten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.karte { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 26px 22px; }
.karte p { margin-top: 8px; font-size: 1.02rem; }

/* Nummerierte Schritte, Zähler in orangem Kreis */
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: schritt; }
.schritte li { counter-increment: schritt; position: relative; padding-top: 64px; }
.schritte li::before {
  content: counter(schritt); position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--navy);
  font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.schritte p { margin-top: 8px; }
.weiter { margin-top: 36px; font-weight: 600; }

/* ── 6 Unterseiten ────────────────────────────────────────────────────── */
.page-hero { background: var(--orange-tint); padding: 56px 0 48px; }
.page-hero .hero-lead { margin-top: 12px; }
.prose { max-width: var(--text-w); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 48px; font-size: 1.6rem; }
.prose h3 { margin-top: 0; }
.prose .split { max-width: none; }
.prose .schritte-eng { grid-template-columns: 1fr 1fr; gap: 28px 36px; margin-top: 24px; }
.prose .schritte-eng p { margin-top: 6px; }

.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.downloads li:first-child { border-top: 1px solid var(--line); }
.downloads a { font-weight: 600; }
.downloads span { font-size: .85rem; color: var(--ink-500); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }

/* Bildergalerie der Räume: einheitlich 4:3 zugeschnitten, Hochformate ebenso */
.prose .galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: none; width: min(1100px, calc(100vw - 56px)); }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.galerie figcaption { margin-top: 6px; font-size: .95rem; color: var(--ink-500); }
.split-eng .rund { max-height: 460px; object-fit: cover; }

/* Videos der Räume: zwei nebeneinander, auf dem Telefon untereinander */
.prose .videos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: none; width: min(1100px, calc(100vw - 56px)); }
.videos figure { margin: 0; }
.videos video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); }
.videos figcaption { margin-top: 6px; font-size: .95rem; color: var(--ink-500); }
.split p + p { margin-top: 14px; }

.fakten { width: 100%; border-collapse: collapse; }
.fakten th, .fakten td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fakten th { width: 34%; color: var(--ink-900); font-weight: 600; padding-right: 16px; }

/* ── 7 Kontaktblock ───────────────────────────────────────────────────── */
.contact { background: var(--navy); color: #E3E9F3; padding: 64px 0; }
.contact-inner { display: flex; align-items: center; gap: 40px; }
.contact-foto { width: 160px; height: 160px; border-radius: 50%; border: 4px solid var(--orange); flex: none; }
.contact h2 { color: #fff; }
.contact p { margin-top: 8px; font-size: 1.15rem; }
.contact-wege { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact .btn-primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.contact .btn-primary:hover { background: #FFB43F; border-color: #FFB43F; }
.contact .btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.contact .btn-ghost:hover { background: #fff; color: var(--navy); }
.contact .contact-fb { margin-top: 16px; font-size: 1rem; }
.contact-fb a { color: #fff; }

/* ── 8 schmale Bildschirme ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .karten { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-foto { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  /* Kopf: Logo oben, die vier Einträge darunter in einer Zeile, ohne Klappmenü */
  .site-header { position: static; }   /* auf dem Telefon nicht mitlaufen, spart Platz */
  .site-nav { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 40px; }
  .nav-links { gap: 6px 12px; flex-wrap: wrap; }
  .nav-links a { font-size: .9rem; }
  /* „Kontakt“ als normaler Eintrag, damit alle vier in eine Zeile passen */
  .nav-links .btn-sm, .nav-links .btn-sm:hover { min-height: 0; padding: 0; border: 0; background: none; color: var(--navy); font-size: .9rem; }
  .hero { padding: 40px 0 56px; }
  .karten, .schritte, .prose .schritte-eng { grid-template-columns: 1fr; }
  .prose .galerie { grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .prose .videos { grid-template-columns: 1fr; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .contact-foto { width: 112px; height: 112px; }
  .contact-wege .btn, .btn-row .btn { width: 100%; }
  .fakten th { width: 42%; }
}
