/* ============================================================
   physIO – Marketing Website
   ============================================================ */

:root {
    --primary:       #1d4ed8;
    --primary-dark:  #1e3a8a;
    --primary-light: #3b82f6;
    --accent:        #059669;
    --accent-light:  #10b981;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --bg-alt:        #f0f6ff;
    --bg-dark:       #0f172a;
    --border:        #e2e8f0;
    --card-shadow:   0 4px 24px rgba(30, 58, 138, .10);
    --radius:        14px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ── Navbar ── */
.navbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: .9rem 0;
    transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark) !important;
    letter-spacing: -.5px;
}
.navbar-brand span { color: var(--accent); }
.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    padding: .4rem .9rem !important;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--bg-alt); color: var(--primary) !important; }

/* ── Buttons ── */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: .8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(29,78,216,.35);
    display: inline-block;
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29,78,216,.45);
}

.btn-outline-custom {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
    padding: .75rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background .2s, border-color .2s;
    display: inline-block;
}
.btn-outline-custom:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}

/* ── Hero ── */
#hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59,130,246,.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(5,150,105,.12) 0%, transparent 50%);
}
#hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -.5px;
}
.hero-title span { color: #93c5fd; }

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,.78);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-usps {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.8rem;
}
.hero-usp {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.08);
    border-radius: 100px;
    padding: .3rem .9rem;
}
.hero-usp i { color: var(--accent-light); }

/* ── Hero Mockup ── */
.hero-mockup {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.mockup-bar {
    background: rgba(255,255,255,.08);
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #22c55e; }
.mockup-url {
    flex: 1;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    padding: .25rem .7rem;
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    margin-left: .5rem;
}
.mockup-content { padding: 1.2rem; }
.mockup-nav {
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: .6rem 1rem;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: .78rem;
    color: rgba(255,255,255,.6);
}
.mockup-nav span.active { color: #93c5fd; font-weight: 600; }
.mockup-table-row {
    background: rgba(255,255,255,.05);
    border-radius: 6px;
    padding: .5rem .8rem;
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
}
.mockup-table-row .badge-pill {
    font-size: .65rem;
    padding: .15rem .5rem;
    border-radius: 100px;
    margin-left: auto;
}
.mockup-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; flex-shrink: 0;
}

/* ── Section titles ── */
.section-label {
    display: inline-block;
    background: rgba(29,78,216,.1);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.section-label.green {
    background: rgba(5,150,105,.1);
    color: var(--accent);
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-bottom: .7rem;
}
.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 3rem;
}

/* ── Feature Cards ── */
#features { padding: 100px 0; }

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: transparent;
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}
.feature-icon.blue  { background: rgba(29,78,216,.1);  color: var(--primary); }
.feature-icon.green { background: rgba(5,150,105,.1);  color: var(--accent); }
.feature-icon.teal  { background: rgba(14,165,233,.1); color: #0ea5e9; }
.feature-icon.purple{ background: rgba(124,58,237,.1); color: #7c3aed; }
.feature-icon.amber { background: rgba(217,119,6,.1);  color: #d97706; }
.feature-icon.rose  { background: rgba(225,29,72,.1);  color: #e11d48; }

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}
.feature-card p {
    font-size: .92rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Detail Sections ── */
.detail-section {
    padding: 90px 0;
}
.detail-section.bg-alt { background: var(--bg-alt); }

.detail-visual {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.detail-visual-inner {
    padding: 1.8rem;
}
.detail-visual-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.2rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
}
.detail-visual-header i { color: var(--primary); }

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .4rem 0;
    font-size: .95rem;
}
.check-list li i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: .15rem;
    flex-shrink: 0;
}

/* ── Anamnese visual – drawing mockup ── */
.drawing-mockup {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.drawing-mockup-header {
    padding: .7rem 1.2rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.drawing-canvas-area {
    padding: 1rem;
    display: flex;
    justify-content: center;
    background: #fafafa;
}
.drawing-canvas-area svg {
    border-radius: 8px;
    border: 1px solid var(--border);
}
.drawing-toolbar {
    padding: .6rem 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: .5rem;
    align-items: center;
}
.draw-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    padding: .3rem .75rem;
    border-radius: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: default;
}
.color-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #c0392b;
    border: 1px solid rgba(0,0,0,.15);
}

/* ── Field rows (fake form rows) ── */
.fake-form-row {
    display: flex;
    gap: .6rem;
    margin-bottom: .6rem;
}
.fake-field {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .55rem .8rem;
    font-size: .78rem;
    color: var(--text-muted);
    flex: 1;
}
.fake-field.small { flex: 0 0 30%; }
.fake-field.medium { flex: 0 0 45%; }

/* ── Rezept visual ── */
.rezept-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 100px;
    margin-left: auto;
}
.badge-privat  { background: #dbeafe; color: #1d4ed8; }
.badge-gkv     { background: #dcfce7; color: #15803d; }
.badge-selbst  { background: #fef3c7; color: #92400e; }
.badge-bg      { background: #fce7f3; color: #9d174d; }

.rezept-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: .5rem;
    font-size: .8rem;
    color: var(--text);
    background: #fff;
}
.rezept-row .rname { font-weight: 600; }
.rezept-row .rdate { color: var(--text-muted); font-size: .75rem; }

/* ── Sicherheit ── */
#sicherheit {
    background: var(--bg-dark);
    color: #fff;
    padding: 90px 0;
}
#sicherheit .section-label {
    background: rgba(59,130,246,.15);
    color: #93c5fd;
}
#sicherheit .section-title { color: #fff; }
#sicherheit .section-sub { color: rgba(255,255,255,.55); }

.security-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 1.6rem;
    height: 100%;
    transition: background .2s, border-color .2s;
}
.security-card:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
}
.security-card .feature-icon.blue {
    background: rgba(59,130,246,.15);
    color: #93c5fd;
}
.security-card .feature-icon.green {
    background: rgba(16,185,129,.15);
    color: var(--accent-light);
}
.security-card .feature-icon.purple {
    background: rgba(167,139,250,.15);
    color: #a78bfa;
}
.security-card .feature-icon.amber {
    background: rgba(251,191,36,.15);
    color: #fbbf24;
}
.security-card h4 { color: #fff; font-size: 1rem; }
.security-card p  { color: rgba(255,255,255,.6); font-size: .88rem; margin: 0; }

.dir-tree {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    font-family: 'Courier New', monospace;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    line-height: 1.8;
}
.dir-tree .dir  { color: #93c5fd; }
.dir-tree .file { color: rgba(255,255,255,.5); }
.dir-tree .comment { color: #64748b; }
.dir-tree .highlight { color: #34d399; font-weight: 700; }

/* ── Installation ── */
#installation { padding: 90px 0; }

.step-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow .2s;
}
.step-card:hover { box-shadow: var(--card-shadow); }
.step-number {
    width: 38px; height: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
    flex-shrink: 0;
}
.step-card h5 { font-size: 1rem; margin-bottom: .3rem; }
.step-card p  { font-size: .88rem; color: var(--text-muted); margin: 0; }

.code-block {
    background: #1e293b;
    color: #7dd3fc;
    border-radius: 8px;
    padding: .6rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: .82rem;
    margin-top: .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.code-block i { color: #475569; }

/* ── Requirements ── */
#anforderungen { background: var(--bg-alt); padding: 80px 0; }

.req-table {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}
.req-table table { margin: 0; }
.req-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    padding: .9rem 1.2rem;
}
.req-table tbody td {
    padding: .8rem 1.2rem;
    font-size: .9rem;
    border-color: var(--border);
}
.req-table tbody tr:hover { background: var(--bg-alt); }
.req-table code {
    background: rgba(29,78,216,.08);
    color: var(--primary);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-size: .82rem;
}

/* ── Stats strip ── */
.stats-strip {
    background: var(--primary);
    color: #fff;
    padding: 50px 0;
}
.stat-item { text-align: center; }
.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: .3rem;
}
.stat-label {
    font-size: .88rem;
    color: rgba(255,255,255,.7);
}

/* ── Footer ── */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.6);
    padding: 50px 0 30px;
}
.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .4rem;
}
.footer-brand span { color: var(--accent-light); }
.footer-desc { font-size: .88rem; max-width: 300px; }
.footer-link {
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    display: block;
    margin-bottom: .4rem;
    transition: color .15s;
}
.footer-link:hover { color: #fff; }
.footer-col-title {
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}
.footer-divider {
    border-color: rgba(255,255,255,.08);
    margin: 2rem 0 1.2rem;
}
.footer-bottom {
    font-size: .8rem;
    color: rgba(255,255,255,.35);
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Scan badges ── */
.badge-pill {
    font-size: .65rem;
    padding: .15rem .5rem;
    border-radius: 100px;
}
.badge-pill.badge-privat { background: #dbeafe; color: #1d4ed8; }
.badge-pill.badge-gkv    { background: #dcfce7; color: #15803d; }
.badge-pill.badge-selbst { background: #fef3c7; color: #92400e; }
.badge-pill.badge-bg     { background: #fce7f3; color: #9d174d; }

/* ── Responsive ── */
@media (max-width: 991px) {
    #hero { padding: 80px 0 60px; }
    .hero-mockup { margin-top: 2.5rem; }
    .detail-section .row { gap: 2rem; }
}
@media (max-width: 767px) {
    .stat-item { margin-bottom: 1.5rem; }
    .hero-usps { gap: .4rem; }
    .hero-usp  { font-size: .82rem; }
}
