/* ===========================================================
   Teamnavi - eigenstaendiges Mini-Stylesheet fuer teamnavi.net
   (nur Startseite + Impressum, unabhaengig von der App selbst)
   =========================================================== */

:root {
    --brand: #1f4e79;
    --brand-light: #dce6f1;
    --border: #d0d0d0;
    --text: #222;
    --muted: #777;
    --danger: #b00020;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    margin: 0;
    background: #f7f8fa;
}

a { color: var(--brand); }

h1 { font-size: 1.5rem; margin: 0.4em 0; }
h2 { font-size: 1.2rem; margin-top: 1.6em; }

.muted { color: var(--muted); }

.content { padding: 1.2rem 1.5rem 3rem; max-width: 1400px; margin: 0 auto; }

/* --- Startseite --- */
.landing-page { max-width: 640px; }
.landing-hero { text-align: center; padding: 3.5rem 1rem 2.5rem; }
.landing-logo { width: 96px; height: 96px; margin-bottom: 1.2rem; }
.landing-hero h1 { font-size: 2rem; margin: 0 0 0.8rem; color: var(--brand); }
.landing-tagline {
    color: var(--muted); font-size: 1.05rem; line-height: 1.55;
    max-width: 480px; margin: 0 auto;
}

/* --- Globaler Seiten-Footer (Impressum-Link) --- */
.app-footer { text-align: center; padding: 1.2rem; font-size: 0.8rem; }
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--brand); text-decoration: underline; }

/* --- Impressum: Mini-Captcha vor Anschrift/E-Mail --- */
.impressum-page { max-width: 640px; background: #fff; padding: 1.5rem 1.8rem; border-radius: 8px; margin: 2rem auto; }
#impressum-contact-result { margin-top: 0.4rem; }

/* --- Buttons / Alerts (nur fuer das Captcha-Formular benoetigt) --- */
.btn {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.btn:hover { background: #f0f0f0; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: #163a58; }

.alert { padding: 0.6rem 1rem; border-radius: 6px; margin: 0.6rem 0; }
.alert-error { background: #fde8e8; color: var(--danger); border: 1px solid #f3b8b8; }

/* --- Startseite: Link zur Funktionsseite --- */
.landing-cta { margin-top: 1.6rem; }

/* --- Kopfzeile der Unterseiten --- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.7rem 1.5rem; background: var(--brand); color: #fff; }
.site-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.site-header nav { display: flex; gap: 1.2rem; }
.site-header nav a { color: #fff; opacity: 0.85; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { opacity: 1; text-decoration: underline; }

/* --- Funktionsseite --- */
.features-page { max-width: 1180px; }
.features-intro { text-align: center; max-width: 760px; margin: 1.5rem auto 2.5rem; }
.features-intro h1 { font-size: 2rem; color: var(--brand); }
.features-intro p { font-size: 1.08rem; line-height: 1.6; color: #444; }
.features-toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.6rem; margin-top: 1.2rem; }
.features-toc a { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--brand-light);
    color: var(--brand); text-decoration: none; font-size: 0.92rem; }
.features-toc a:hover { background: #c9d9ea; }

.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; align-items: center;
    background: #fff; border-radius: 12px; padding: 1.8rem; margin: 0 0 1.6rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); scroll-margin-top: 1rem; }
/* .feature-flip: Bild links, Text rechts - das Bild behält die breite Spalte */
.feature-flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.feature-flip .feature-text { order: 2; }
.feature-text h2 { margin-top: 0; color: var(--brand); font-size: 1.35rem; }
.feature-text p, .feature-text li { line-height: 1.55; }
.feature-text ul { padding-left: 1.2rem; margin: 0.6rem 0 0; }
.feature-text li { margin-bottom: 0.35rem; }
.feature-shot img, .phone-shots img { display: block; width: 100%; height: auto; border-radius: 8px;
    border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(31, 78, 121, 0.12); }
.feature-shot:hover img, .phone-shots a:hover img { box-shadow: 0 8px 24px rgba(31, 78, 121, 0.22); }
.feature-narrow { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.feature-narrow .feature-shot { max-width: 440px; justify-self: center; }
.feature-mobile { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.phone-shots { display: flex; gap: 1rem; justify-content: center; }
.phone-shots a { flex: 0 1 200px; }
.phone-shots img { border-radius: 20px; }

.features-grid-section { margin: 2.4rem 0 1rem; scroll-margin-top: 1rem; }
.features-grid-section h2 { color: var(--brand); text-align: center; font-size: 1.35rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.features-grid > div { background: #fff; border-radius: 10px; padding: 1rem 1.2rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.features-grid h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--brand); }
.features-grid p { margin: 0; line-height: 1.5; color: #444; font-size: 0.95rem; }
.features-note { text-align: center; font-size: 0.85rem; margin-top: 2rem; }

@media (max-width: 860px) {
    .feature, .feature-narrow, .feature-mobile, .feature-flip { grid-template-columns: 1fr; padding: 1.2rem; }
    .feature-flip .feature-text { order: 0; }
    .site-header { padding: 0.6rem 1rem; }
}

.landing-info { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.4rem; margin: 0 1rem 2rem; text-align: left; }
.landing-info h2 { font-size: 1.05rem; margin: 0.8rem 0 0.3rem; }
.landing-info h2:first-child { margin-top: 0.2rem; }
.landing-info p { margin: 0 0 0.6rem; line-height: 1.5; }
.status-badge { display: inline-block; margin: 0 0 1rem; padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.85rem;
    font-weight: 600; background: #fff3d6; color: #8a6100; border: 1px solid #f0d58a; }
.app-version { color: var(--muted); }
