/* Europatastatur – modernes Erscheinungsbild
   Zielgruppe: Linguisten und EDV-Administratoren
   Inhalt unverändert, Layout und Typografie neu. */

:root {
    --bg:            #f5f7fb;
    --surface:       #ffffff;
    --surface-soft:  #eef2f8;
    --border:        #dde3ec;
    --border-strong: #c5cdd9;
    --text:          #1f2937;
    --text-strong:   #0f172a;
    --text-muted:    #5b6473;
    --accent:        #1e40af;
    --accent-hover:  #1d4ed8;
    --accent-soft:   #e6ecf8;
    --visited:       #6b21a8;
    --header-bg:     #1e293b;
    --header-text:   #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --radius: 10px;
    --radius-sm: 6px;
    --maxw: 1180px;
    --sidebar-w: 280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

a:hover, a:focus {
    color: var(--accent-hover);
    border-bottom-color: currentColor;
}

a:visited { color: var(--visited); }
a:visited:hover { color: var(--visited); }

/* Header / Titelbalken */
.site-header {
    background: linear-gradient(180deg, #1e293b 0%, #233149 100%);
    color: var(--header-text);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-sm);
}

.site-header .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header .brand {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--header-text);
}

.site-header .brand a {
    color: inherit;
    border-bottom: none;
}

.site-header .brand .sub {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 0.2rem;
    letter-spacing: 0.02em;
}

/* Layout-Grid */
.layout {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.8rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar / Navigation */
.sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.1rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 1.5rem;
}

.sidebar nav h2 {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-strong);
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding: 0 0.4rem 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.sidebar nav ul + h2 { margin-top: 1.9rem; }
.sidebar nav h2 + h2 { margin-top: 1.9rem; }

.sidebar ul {
    list-style: none;
    margin: 0 0 0.4rem;
    padding: 0;
}

.sidebar li { margin: 0; }

.sidebar a {
    display: block;
    padding: 0.5rem 0.55rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    border-bottom: none;
    font-size: 0.94rem;
    line-height: 1.35;
}

.sidebar a:hover, .sidebar a:focus {
    background: var(--accent-soft);
    color: var(--accent);
}

.sidebar a.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.sidebar a .hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.1rem;
}

.sidebar a:hover .hint, .sidebar a.is-active .hint { color: var(--accent); }

/* Inhaltsbereich */
.content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.25rem 2.25rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.content h1, .content h2 {
    color: var(--text-strong);
    line-height: 1.25;
    margin-top: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.content h1 {
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    margin-bottom: 1.2rem;
}

.content h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    margin-bottom: 1.1rem;
}

.content h1 small, .content h2 small {
    display: block;
    font-size: 0.7em;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.35rem;
    letter-spacing: 0;
}

.content h3 {
    font-size: 1.15rem;
    color: var(--text-strong);
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.content p { margin: 0 0 1rem; }

.content ul, .content ol {
    margin: 0 0 1rem 1.4rem;
    padding: 0;
}

.content li { margin-bottom: 0.4rem; }

.content small { color: var(--text-muted); }

/* Schaubild-Box */
.diagram {
    margin: 1.2rem 0 1.5rem;
    text-align: left;
}

.diagram a {
    display: inline-block;
    border-bottom: none;
    border-radius: var(--radius-sm);
    padding: 6px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.diagram a:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.diagram img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.diagram .caption {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Download-Box (Treiber, Schaubild-PDF) */
.download {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    margin: 1.2rem 0;
}

.download .head {
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
}

.download .note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
}

.download p { margin: 0.35rem 0; }

.download .variant-label {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.93rem;
}

/* Inline-Hinweis */
.notice {
    background: #fff8e6;
    border: 1px solid #f4d98a;
    border-left: 3px solid #c79215;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin: 1rem 0;
    font-size: 0.96rem;
}

.notice strong { color: #8a5d00; }

/* Footer-Links unten jeder Inhaltsseite */
.page-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.page-footer a { color: var(--accent); }

/* Übersichts-Kacheln auf der Startseite */
.intro-lead {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
    max-width: 60ch;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.2rem 0 0.4rem;
}

.tile {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tile:hover, .tile:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.tile .tile-title {
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.tile .tile-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tile.tile-muted .tile-title { color: var(--text-strong); }

/* Responsive */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 2rem;
        gap: 1rem;
    }
    .sidebar { position: static; padding: 0.6rem 0.8rem; }
    .sidebar details {
        margin: 0;
    }
    .content { padding: 1.3rem 1.2rem 1.5rem; }
    .site-header .wrap { padding: 1.1rem 1rem; }
}

/* Print: kompakter, ohne Sidebar-Hintergrund */
@media print {
    .site-header, .sidebar { background: transparent; box-shadow: none; border: none; }
    .layout { display: block; padding: 0; }
    .content { border: none; box-shadow: none; padding: 0; }
}
