/* Shared styles for zimmerklar.de. System fonts only, no external resources. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent: #0e7c8b;
    --accent-strong: #0a6672;
    --accent-soft: #e3f4f6;
    --text: #17242a;
    --text-secondary: #5a6b72;
    --bg: #ffffff;
    --bg-soft: #f4f8f9;
    --card: #ffffff;
    --border: #dde7ea;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(16, 40, 48, .05), 0 8px 24px rgba(16, 40, 48, .06);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #40c2c7;
        --accent-strong: #6fd6da;
        --accent-soft: #123338;
        --text: #eef4f5;
        --text-secondary: #a3b4b9;
        --bg: #0f1719;
        --bg-soft: #142024;
        --card: #18262a;
        --border: #263a40;
        --shadow: none;
    }
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

.container { max-width: 760px; margin: 0 auto; padding: 0 20px 48px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .inner {
    max-width: 760px; margin: 0 auto; padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.lang-switch { display: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--bg-soft); }
.js .lang-switch { display: inline-flex; }
.lang-switch button {
    font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em;
    border: 0; background: transparent; color: var(--text-secondary);
    padding: 5px 12px; border-radius: 999px; cursor: pointer; min-width: 44px; min-height: 32px;
}
.lang-switch button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Language blocks: both visible without JS, one at a time with JS */
.lang-block + .lang-block { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 8px; }
.js .lang-block[hidden] { display: none; }
.js .lang-block + .lang-block { border-top: 0; margin-top: 0; padding-top: 0; }

/* Typography */
h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 40px 0 12px; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin: 40px 0 12px; }
h3 { font-size: 18px; line-height: 1.35; margin: 24px 0 8px; }
p, li { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--accent); }
strong { font-weight: 650; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.date { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.tagline { color: var(--text-secondary); font-size: 20px; line-height: 1.4; margin-bottom: 20px; }

/* Legal pages: section headings get a subtle rule for scanning */
.legal h2 { padding-top: 20px; border-top: 1px solid var(--border); }
.legal h1 + .date + h2, .legal h1 + h2 { border-top: 0; padding-top: 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: 999px;
    background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}
.btn:hover { color: var(--bg); opacity: .9; }
.btn svg { width: 18px; height: 18px; }

/* Landing */
.hero { text-align: center; padding: 40px 0 8px; }
.hero .app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(14, 124, 139, .3); }
.hero h1 { margin-top: 20px; }
.hero .tagline { font-size: clamp(19px, 3.6vw, 23px); color: var(--accent); font-weight: 600; }
.hero .lead { color: var(--text-secondary); max-width: 620px; margin: 0 auto 26px; text-align: left; }

.features { list-style: none; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li {
    margin: 0; padding: 14px 16px 14px 48px; position: relative;
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; line-height: 1.45;
}
.features li::before {
    content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 6px;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.plans { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 8px; box-shadow: var(--shadow); }
.plan h3 { margin-top: 0; }
.plan.premium { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--card) 60%); }
.plan ul { margin-left: 20px; }
.price-note { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 22px 4px; margin-top: 16px; }
.price-note p:last-child { color: var(--text-secondary); font-size: 15px; }

.callout { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 22px 8px; }
.callout h2 { margin-top: 0; }

.cta { text-align: center; margin: 36px 0 8px; }

/* FAQ accordion */
details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); margin-bottom: 10px; }
summary {
    list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; position: relative; line-height: 1.4;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -6px;
    border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .15s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
details > p { padding: 0 16px 6px; color: var(--text-secondary); }

/* Footer */
.footer-nav {
    border-top: 1px solid var(--border); margin-top: 48px; padding-top: 18px;
    display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px;
}
.footer-nav a { color: var(--text-secondary); text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.copyright { color: var(--text-secondary); font-size: 13px; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } summary::after { transition: none; } }
