/* ===========================================================
   Fitnessstudios Graz - Stylesheet
   Eigenes CSS, mobile-first. Keine Frameworks.
   =========================================================== */

:root {
    --bg:        #ffffff;
    --bg-soft:   #f5f6f8;
    --bg-dark:   #13171a;
    --ink:       #1b1d22;
    --ink-soft:  #565b66;
    --line:      #e3e6ea;
    --accent:    #9ae600;
    --accent-dk: #4d7c0f;
    --accent-sf: #eefcd2;
    --gold:      #bef264;
    --radius:    14px;
    --shadow:    0 6px 24px rgba(20,22,27,.08);
    --shadow-lg: 0 18px 48px rgba(20,22,27,.16);
    --maxw:      1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
    line-height: 1.15;
    letter-spacing: -.01em;
    font-weight: 800;
}

a { color: var(--accent-dk); }
a:hover { color: #65a30d; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section h2 { font-size: 2rem; margin: 0 0 6px; }
.section .lead { color: var(--ink-soft); max-width: 680px; margin: 0 0 36px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--accent-dk); }
.nav .btn { padding: 9px 18px; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; background: var(--accent); color: #13171a;
    text-decoration: none; font-weight: 700; padding: 13px 24px;
    border-radius: 100px; border: 0; cursor: pointer; font-size: 1rem;
    transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(90deg, rgba(19,23,26,.97) 0%, rgba(19,23,26,.88) 34%, rgba(19,23,26,.55) 68%, rgba(19,23,26,.30) 100%),
        url('/img/hero.jpg') center right / cover no-repeat;
    background-color: #13171a;
    color: #fff;
}
.hero .wrap { padding-top: 84px; padding-bottom: 88px; }
.hero .eyebrow {
    display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 18px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.18rem; color: #c7ccd6; max-width: 56ch; margin: 0 0 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 38px; margin-top: 52px; flex-wrap: wrap; }
.hero .stats div b { display: block; font-family: "Archivo", sans-serif; font-size: 2rem; color: #fff; }
.hero .stats div span { color: #9aa1ad; font-size: .92rem; }

/* Desktop: Hero auf max. 400px Höhe begrenzen und Inhalt verdichten */
@media (min-width: 881px) {
    .hero { max-height: 400px; overflow: hidden; }
    .hero .wrap { padding-top: 26px; padding-bottom: 26px; }
    .hero .eyebrow { margin-bottom: 8px; }
    .hero h1 { font-size: 2.1rem; margin: 0 0 10px; max-width: none; white-space: nowrap; }
    .hero p { font-size: 1rem; line-height: 1.55; margin: 0 0 16px; max-width: 70ch; }
    .hero .cta-row .btn { padding: 11px 22px; }
    .hero .stats { margin-top: 14px; gap: 30px; }
    .hero .stats div b { font-size: 1.5rem; }
}

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.cat {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 22px; box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat h3 { font-size: 1.18rem; margin: 0 0 8px; }
.cat p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.cat a.more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .92rem; text-decoration: none; }

/* ---------- Spotlight ---------- */
.spot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 22px; }
.spot {
    position: relative; background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.spot .badge {
    position: absolute; top: 18px; right: 18px; background: var(--accent-sf); color: var(--accent-dk);
    font-weight: 700; font-size: .74rem; padding: 5px 11px; border-radius: 100px; letter-spacing: .03em;
}
.spot .tag { font-size: .78rem; font-weight: 700; color: var(--accent-dk); text-transform: uppercase; letter-spacing: .06em; }
.spot h3 { font-size: 1.35rem; margin: 8px 0 4px; }
.spot .addr { color: var(--ink-soft); font-size: .95rem; margin: 0 0 16px; }
.spot ul { list-style: none; padding: 0; margin: 0 0 18px; }
.spot ul li { padding-left: 26px; position: relative; margin-bottom: 7px; font-size: .97rem; }
.spot ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dk); font-weight: 800; }
.spot .links a { font-weight: 700; text-decoration: none; margin-right: 16px; font-size: .95rem; }

/* ---------- Directory table ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.toolbar input, .toolbar select {
    font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.toolbar input { flex: 1; min-width: 220px; }
.toolbar .count { color: var(--ink-soft); font-size: .92rem; margin-left: auto; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.dir { width: 100%; border-collapse: collapse; }
table.dir th, table.dir td { text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.dir td a[href^="tel:"] { white-space: nowrap; }
table.dir thead th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
table.dir tbody tr:last-child td { border-bottom: 0; }
table.dir tbody tr:hover { background: #f6fce9; }
.s-name { font-weight: 700; }
.s-betreiber { display: block; font-weight: 400; color: var(--ink-soft); font-size: .84rem; margin-top: 2px; }
.s-type { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--bg-soft); color: var(--ink-soft); white-space: nowrap; }
.s-addr { font-size: .95rem; }
.s-plz { color: var(--ink-soft); }
table.dir a { font-weight: 600; text-decoration: none; word-break: break-word; }
.muted { color: var(--ink-soft); }

.weitere { margin-top: 30px; }
.weitere summary { cursor: pointer; font-weight: 700; }
.weitere ul { columns: 2; column-gap: 36px; margin: 16px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: .94rem; }
.weitere li { margin-bottom: 6px; }

/* ---------- Guide / prose ---------- */
.prose { max-width: 760px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 8px; }
.prose p { margin: 0 0 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: #fff; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-dk); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #c1c7d0; padding: 56px 0 28px; }
.site-footer a { color: #c1c7d0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; letter-spacing: .03em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; font-size: .95rem; }
.foot-brand b { color: #fff; font-family: "Archivo", sans-serif; font-size: 1.15rem; }
.foot-brand p { font-size: .92rem; color: #8b919c; max-width: 34ch; }
.foot-bottom { border-top: 1px solid #262a31; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: #8b919c; }
.foot-bottom a { margin-left: 18px; }

/* ---------- Breadcrumb / legal ---------- */
.crumb { font-size: .9rem; color: var(--ink-soft); padding: 18px 0 0; }
.crumb a { text-decoration: none; }
.legal { max-width: 800px; }
.legal h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.legal h1 { font-size: 2.2rem; }
.legal p, .legal li { color: #353a44; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    /* Tabelle -> Karten (früh, damit nichts abgeschnitten wird) */
    table.dir thead { display: none; }
    table.dir, table.dir tbody, table.dir tr, table.dir td { display: block; width: 100%; }
    table.dir tr { border-bottom: 1px solid var(--line); padding: 10px 6px; }
    table.dir td { border: 0; padding: 5px 16px; }
    table.dir tbody tr:hover { background: transparent; }
    .s-name { font-size: 1.08rem; }
    .s-type { margin: 4px 0; }
}
@media (max-width: 820px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .nav { gap: 16px; }
}
@media (max-width: 680px) {
    body { font-size: 16px; }
    .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .nav.open { display: flex; }
    .nav a { padding: 10px 0; }
    .nav .btn { text-align: center; }
    .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 1.3rem; }
    .foot-grid { grid-template-columns: 1fr; }
    .weitere ul { columns: 1; }
    .hero {
        background:
            linear-gradient(180deg, rgba(19,23,26,.80) 0%, rgba(19,23,26,.90) 100%),
            url('/img/hero.jpg') center / cover no-repeat;
        background-color: #13171a;
    }
}
