/* Gemeinsames Layout der Informationsseiten – abgestimmt auf studenten.html */
:root {
    --primary: #1e3d59;
    --primary-dark: #122b41;
    --secondary: #2f80ed;
    --accent: #2563eb;
    --light: #f5f7fa;
    --surface: #ffffff;
    --dark: #263447;
    --muted: #607084;
    --border: #dce5ee;
    --info: #eef6ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--dark);
    background: var(--light);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a { color: #1d4ed8; text-underline-offset: 0.16em; }
a:hover { color: var(--primary); }

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 20;
    padding: 0.65rem 0.85rem;
    color: #ffffff;
    background: var(--primary);
    border-radius: 0 0 6px 6px;
}

.skip-link:focus { top: 0; }

.site-header { padding: 0; }

.site-header .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
    gap: 2.5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4.25rem 1.5rem 3.75rem;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 0.65rem;
    color: #bfdbfe;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header h1 { max-width: 730px; margin: 0; }
.site-header p { max-width: 670px; margin: 1rem 0 0; }

.hero-facts {
    display: grid;
    gap: 0.8rem;
    padding: 1.25rem;
    color: #eaf2f8;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    backdrop-filter: blur(6px);
}

.hero-facts strong { display: block; color: #ffffff; font-size: 1.03rem; }
.hero-facts span { display: block; font-size: 0.91rem; }

header {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, #246b9b);
    border: 0;
    padding: 4.1rem 1.5rem 3.35rem;
    text-align: left;
}

header h1 {
    max-width: 980px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

header p {
    max-width: 980px;
    margin: 0.9rem auto 0;
    color: #e5edf4;
    font-size: 1.08rem;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.65rem 1rem;
    overflow-x: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(20, 43, 65, 0.05);
    text-align: initial;
}

nav a {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.45rem 0.6rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

nav a:hover,
nav a.active,
nav a[aria-current="page"] {
    color: #1d4ed8;
    background: #eff6ff;
}

.container {
    max-width: 980px;
    margin: 2.75rem auto 0;
    padding: 0 1.25rem;
}

.card {
    margin: 0 0 1.5rem;
    padding: clamp(1.25rem, 3.5vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(20, 43, 65, 0.045);
}

.card img {
    display: block;
    width: 100%;
    height: 230px;
    margin: 0 0 1.5rem;
    object-fit: cover;
    border-radius: 10px;
}

h2 {
    margin: 0 0 1rem;
    padding: 0;
    color: var(--primary);
    border: 0;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.25;
}

h3 {
    margin: 1.35rem 0 0.55rem;
    color: var(--primary);
    font-size: 1.15rem;
    line-height: 1.35;
}

h2 + p,
h3 + p { margin-top: 0; }
p { margin: 0.7rem 0; color: inherit; }
ul,
ol { margin: 0.75rem 0; padding-left: 1.25rem; color: inherit; }
li { margin: 0.45rem 0; }

.info-box,
.infobox,
.alert,
.formula-box {
    margin: 1.15rem 0;
    padding: 0.9rem 1rem;
    color: var(--dark);
    background: var(--info);
    border: 0;
    border-left: 4px solid var(--secondary);
    border-radius: 5px;
}

.info-box strong,
.infobox strong,
.alert strong,
.formula-box strong { color: var(--primary); }

.definition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.definition-card,
.schema-step {
    margin-bottom: 0;
    padding: 1.15rem 1.2rem;
    background: #f8fbff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--secondary);
    border-radius: 9px;
}

.definition-card h3,
.schema-step h4 { margin-top: 0; color: var(--primary); }

.badge {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    color: #ffffff;
    background: var(--secondary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

table,
table.csv-table,
table.praktikum-table {
    width: 100%;
    margin: 1.15rem 0;
    border-collapse: collapse;
    color: var(--dark);
    font-size: 0.93rem;
}

th,
td,
table.csv-table th,
table.csv-table td,
table.praktikum-table th,
table.praktikum-table td {
    padding: 0.8rem;
    vertical-align: top;
    border: 1px solid var(--border);
    text-align: left;
}

th,
table.csv-table th,
table.praktikum-table th {
    color: var(--primary);
    background: #eff6ff;
}

tr:nth-child(even) { background: #f8fbff; }

.form-group { margin-bottom: 1.1rem; }
label { display: block; margin-bottom: 0.45rem; color: var(--primary); font-size: 0.92rem; font-weight: 700; }
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.8rem;
    color: var(--dark);
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 7px;
    font: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 3px solid rgba(47, 128, 237, 0.18);
    border-color: var(--secondary);
    background: #ffffff;
}

button.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
    color: #ffffff;
    background: var(--secondary);
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

button.submit-btn:hover { background: #1d4ed8; }

footer {
    margin-top: 3.5rem;
    padding: 2.5rem 1rem;
    color: #dfe8ef;
    background: var(--primary-dark);
    border: 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p { margin: 0; color: inherit; }
footer a { color: #bfdbfe !important; }

@media (max-width: 700px) {
    .site-header .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 3rem; padding-bottom: 2.7rem; }
    .hero-facts { grid-template-columns: 1fr 1fr; }
    header { padding: 3rem 1rem 2.7rem; }
    nav { justify-content: flex-start; }
    .container { margin-top: 1.5rem; padding: 0 0.85rem; }
    .card { border-radius: 11px; }
    .card img { height: 190px; }
    table,
    table.csv-table,
    table.praktikum-table { display: block; overflow-x: auto; }
}

@media (max-width: 450px) {
    .hero-facts { grid-template-columns: 1fr; }
}
