/* fitnessit.ch, Schriften lokal (Barlow Condensed, Inter: SIL Open Font License) */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --accent: #ff5a1f;
  --accent-dark: #e04810;
  --teal: #0fb5a4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.55rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--accent); cursor: pointer; font: 600 1rem var(--body); transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { background: var(--bg-soft); border-color: var(--ink-soft); }
.btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; border-color: #b91c1c; }
.btn-small { padding: .45em 1em; font-size: .9rem; }

/* Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-family: var(--head); font-size: 1.6rem; font-weight: 600; }
.brand strong { color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--accent); }

/* Hero */
.hero { position: relative; min-height: 78vh; display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.7) 45%, rgba(15,23,42,.15) 100%); }
.hero-inner { position: relative; padding: 120px 0 90px; max-width: 760px; margin-left: max(16px, (100% - 1180px) / 2); }
.hero h1 { color: #fff; }
.lead { font-size: 1.2rem; color: inherit; opacity: .9; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: .45em; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: #ffd2c2; background: rgba(255,90,31,.2); padding: .4em .9em; border-radius: 999px; margin: 0 0 18px; }
.eyebrow.dark { color: var(--accent-dark); background: #fff1eb; }

/* Vorteilsleiste */
.strip { background: var(--ink); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; }
.strip-item { display: flex; gap: 14px; align-items: flex-start; }
.strip-item svg { color: var(--accent); flex: none; margin-top: 3px; }
.strip-item strong { display: block; font-size: 1rem; }
.strip-item span { font-size: .9rem; opacity: .75; }

/* Abschnitte */
.section { padding: 90px 0; }
.section-lead { color: var(--ink-soft); max-width: 640px; font-size: 1.1rem; margin-bottom: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.link-more { display: inline-flex; align-items: center; gap: .35em; color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.empty { color: var(--ink-soft); background: var(--bg-soft); padding: 24px; border-radius: var(--radius); }

/* Leistungskarten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.13); }
.card-media { position: relative; aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-icon { position: absolute; left: 20px; bottom: -26px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,90,31,.4); }
.card-icon.static { position: static; margin-bottom: 18px; background: var(--teal); box-shadow: 0 8px 20px rgba(15,181,164,.35); }
.card-body { padding: 42px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); margin: 0 0 18px; flex: 1; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; font-weight: 600; background: var(--bg-soft); color: var(--ink-soft); padding: .3em .8em; border-radius: 999px; }
.card-more { background: linear-gradient(160deg, #0f172a, #1e293b); color: #fff; border: none; }
.card-more .card-body { padding-top: 32px; justify-content: center; }
.card-more p { color: #cbd5e1; flex: 0; }
.card-more .btn { align-self: flex-start; }

/* Bildband und Ablauf */
.band { background: var(--bg-soft); padding-bottom: 90px; }
.band-images { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 340px; }
.band-images img { width: 100%; height: 100%; object-fit: cover; }
.band-text { padding-top: 70px; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; counter-increment: s; }
.steps li::after { content: counter(s); position: absolute; top: 14px; right: 22px; font-family: var(--head); font-size: 3.4rem; font-weight: 700; color: #eef1f6; }
.steps strong { display: block; font-family: var(--head); font-size: 1.5rem; margin: 14px 0 6px; }
.steps span:last-child { color: var(--ink-soft); }
.step-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e6faf7; color: var(--teal); position: relative; z-index: 1; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.news-card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.news-card:hover { transform: translateY(-4px); }
.news-media { aspect-ratio: 16 / 9; background: var(--bg-soft); }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-body time, .article time { font-size: .85rem; font-weight: 600; color: var(--accent-dark); }
.news-body h3 { margin: 6px 0 8px; }
.news-body p { color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.page-head { position: relative; color: #fff; padding: 110px 0 60px; overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,23,42,.92), rgba(15,23,42,.55)); z-index: 1; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin: 0; }
.article { padding: 60px 0 90px; }
.article .back { display: inline-block; margin-bottom: 24px; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.article h1 { margin-top: 8px; }
.article .lead { color: var(--ink-soft); }
.article-img { border-radius: var(--radius); margin: 24px 0 8px; width: 100%; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 2rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose a { color: var(--accent-dark); }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-left: 4px solid var(--accent); color: var(--ink-soft); background: var(--bg-soft); border-radius: 0 12px 12px 0; }

/* Kontakt */
.contact { background: linear-gradient(120deg, var(--accent) 0%, #ff8a3d 100%); color: #fff; padding: 80px 0; }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.contact p { font-size: 1.15rem; opacity: .95; max-width: 560px; }
.contact-card { display: flex; align-items: center; gap: 18px; background: #fff; color: var(--ink); text-decoration: none; padding: 24px 28px; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.15); transition: transform .2s; }
.contact-card:hover { transform: translateY(-3px); }
.contact-card small { display: block; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.contact-card strong { font-size: 1.3rem; }
.contact-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: #fff1eb; color: var(--accent); flex: none; }

/* Fusszeile */
.footer { background: var(--ink); color: #cbd5e1; padding: 50px 0 26px; }
.footer .brand { color: #fff; font-size: 1.4rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid #1e293b; font-size: .82rem; color: #94a3b8; }

/* Meldungen und Admin */
.flashes { margin-top: 18px; }
.flash { padding: 12px 18px; border-radius: 12px; margin: 0 0 8px; font-weight: 600; }
.flash-ok { background: #e6faf7; color: #0b6e64; }
.flash-error { background: #fef2f2; color: #b91c1c; }
.admin { padding-top: 40px; }
.admin h1 { font-size: 2.4rem; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-bar a { text-decoration: none; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.login { max-width: 420px; margin: 40px auto; }
.panel label { display: grid; gap: 6px; font-weight: 600; }
.panel input[type=text], .panel input[type=password], .panel textarea { font: 400 1rem var(--body); padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.panel textarea { resize: vertical; }
.panel input:focus, .panel textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.panel .check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hint { margin: -8px 0 0; color: var(--ink-soft); font-size: .9rem; }
.hint code { background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; }
.image-field { display: grid; gap: 10px; padding: 16px; background: var(--bg-soft); border-radius: 12px; }
.image-field img { max-width: 280px; border-radius: 10px; }
.image-field label { display: grid; }
.form-actions { display: flex; gap: 12px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { background: var(--bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.admin-table .actions { display: flex; gap: 8px; justify-content: flex-end; }
.badge { font-size: .8rem; font-weight: 600; padding: .25em .8em; border-radius: 999px; background: var(--bg-soft); color: var(--ink-soft); }
.badge.ok { background: #e6faf7; color: #0b6e64; }

/* Mobil */
@media (max-width: 900px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .band-images { grid-template-columns: 1fr 1fr; height: 240px; }
  .band-images img:last-child { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: .9rem; }
  .nav a:not(.btn) { font-size: .92rem; }
  .brand { font-size: 1.35rem; }
  .strip-grid { grid-template-columns: 1fr; }
  .cards, .news-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-shade { background: linear-gradient(180deg, rgba(15,23,42,.7) 0%, rgba(15,23,42,.9) 100%); }
  .hero-inner { padding: 90px 0 60px; }
  .band-images { grid-template-columns: 1fr; height: 200px; }
  .band-images img:nth-child(2) { display: none; }
  .admin-table thead { display: none; }
  .admin-table tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .admin-table td { border: none; padding: 4px 16px; }
  .admin-table .actions { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .nav a[href$="#leistungen"] { display: none; }
}
