/* Studium und Steuer – Gestaltung angelehnt an den Flyer: kräftiges Blau, Weiß, klare Überschriften */
:root {
  --blue: #386ec0;
  --blue-dark: #24539a;
  --blue-deep: #1b3f78;
  --bg: #ffffff;
  --bg-tint: #f5f6fc;
  --text: #1c2433;
  --muted: #4a5568;
  --line: #d9deea;
  --gold: #e8960c;
  --star-off: #cfd5df;
  --danger: #b42318;
  --ok: #1f7a3f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 63, 120, .06), 0 8px 24px rgba(27, 63, 120, .07);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: .15em; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid #f2a20c; outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.2; color: var(--blue-deep); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.small { font-size: .9rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; }

/* Kopf */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; text-decoration: none; padding: .5rem 1rem; border-radius: 6px; }
.brand:hover { background: var(--blue-dark); color: #fff; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 600; padding: .4rem 0; display: inline-block; }
.main-nav a:hover { color: var(--blue); }
@media (max-width: 640px) {
  .site-header { position: static; }
  .header-inner { padding-top: .5rem; padding-bottom: .5rem; }
  .main-nav ul { gap: .1rem 1rem; font-size: .95rem; }
}

/* Titelbereich */
.hero { position: relative; background: var(--blue); }
/* Bildausschnitt: Die Person sitzt im unteren Bilddrittel – bei breiten Bildschirmen nach unten verschieben */
.hero-img img { width: 100%; height: clamp(260px, 42vw, 680px); object-fit: cover; object-position: 62% 85%; }
.hero-badge { position: absolute; top: clamp(16px, 3vw, 40px); left: 0; margin: 0; background: var(--blue); color: #fff; font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.9rem); letter-spacing: .01em; line-height: 1.2; padding: .6em 1.1em .6em max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); box-shadow: 0 6px 20px rgba(16, 40, 80, .25); }
.hero-band { background: var(--blue); color: #fff; padding: 1.6rem 0 1.8rem; }
.hero-band h1 { color: #fff; margin-bottom: .3em; max-width: 22ch; }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 600; margin: 0; }

/* Einstieg */
.intro { padding-top: 2rem; padding-bottom: 1rem; }
.facts { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.facts li { background: var(--bg-tint); border: 1px solid var(--line); color: var(--blue-deep); font-weight: 700; padding: .45rem .9rem; border-radius: 999px; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.link-arrow { font-weight: 600; }

/* Knöpfe */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; border-radius: 8px; padding: .8rem 1.3rem; border: 2px solid transparent; cursor: pointer; line-height: 1.25; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue-dark); border-color: var(--blue); }
.btn-secondary:hover { background: var(--bg-tint); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c12; color: #fff; }
.btn-small { padding: .35rem .7rem; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Abschnitte */
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-tint { background: var(--bg-tint); }
.two-col { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.panel { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 1.6rem; }
.panel h3 { color: #fff; }
.panel .small { color: #e3ebf8; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; font-size: 1.15rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: #fff; border-radius: 14px; padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: .7rem; }
.steps p { margin: 0; }
.factbox { margin: 0; display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .factbox { grid-template-columns: repeat(4, 1fr); } }
.factbox > div { background: #fff; border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.factbox dt { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .25rem; }
.factbox dd { margin: 0; font-weight: 600; color: var(--blue-deep); line-height: 1.4; }
@media (max-width: 420px) { .factbox { grid-template-columns: 1fr; } }

/* Bewertungen */
.reviews { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review article { position: relative; height: 100%; background: #fff; border: 1px solid #e8ebf3; border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.review article::before { content: "\201C"; position: absolute; top: .2rem; right: 1.1rem; font: 700 4.2rem/1 Georgia, "Times New Roman", serif; color: #e3eaf7; pointer-events: none; }
.stars { position: relative; color: var(--gold); letter-spacing: .12em; font-size: 1.05rem; line-height: 1; margin: 0 0 .9rem; }
.stars .off, .star-glyphs .off { color: var(--star-off); }
.review-text { position: relative; margin: 0 0 1.1rem; flex: 1; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.55; }
blockquote.review-text p { margin: 0; }
.review-long summary { cursor: pointer; list-style: none; }
.review-long summary::-webkit-details-marker { display: none; }
.review-long .more { color: var(--blue-dark); font-weight: 700; text-decoration: underline; }
.review-long[open] summary { display: none; }
.review-meta { font-size: .88rem; color: var(--muted); display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
.review-study { font-weight: 700; color: var(--blue-deep); }
.review-origin { flex-basis: 100%; font-size: .82rem; }
.review-study abbr { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }
.load-more-row { text-align: center; margin: 1.5rem 0 0; }
.review-note { max-width: 70ch; margin: 2rem 0 0; font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq details { background: #fff; border-radius: 12px; margin-bottom: .6rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 1.2rem; color: var(--blue-deep); }
.faq details p { padding: 0 1.2rem 1rem; margin: 0; }

/* Kontakt */
.contact { background: var(--blue); color: #fff; }
.contact h2 { color: #fff; }
.contact a { color: #fff; }
.contact a:hover { color: #e3ebf8; }
.contacts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 460px)); }
.contact-card { background: var(--blue-dark); border-radius: 16px; padding: 1.3rem 1.5rem; }
.contact-card p { margin: 0 0 .3rem; overflow-wrap: anywhere; }
.contact-name { font-weight: 800; font-size: 1.2rem; }
.contact-card a { font-weight: 600; display: inline-block; padding: .35rem 0; min-height: 44px; }
.label { font-weight: 400; opacity: .9; }
.venue { margin: 0; }

/* Fußzeile */
.site-footer { background: var(--blue-deep); color: #e3ebf8; padding: 1.5rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-inner p { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.site-footer a { color: #fff; }

/* Formulare */
.form-page h1 { margin-top: 0; }
.note { background: var(--bg-tint); padding: 1rem 1.2rem; border-radius: 12px; color: var(--blue-deep); }
.field { margin-bottom: 1.3rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .35rem; padding: 0; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .92rem; }
input[type=text], input[type=search], input[type=password], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 2px solid #9aa6bb; border-radius: 8px; padding: .6rem .75rem;
}
textarea { resize: vertical; min-height: 9rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); }
.field-row { display: grid; gap: 0 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1.4fr 1fr; } }
.hint { font-size: .9rem; color: var(--muted); margin: .3rem 0 0; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.field-error { color: var(--danger); font-weight: 700; margin: 0 0 .35rem; }
.check label { font-weight: 400; display: flex; gap: .7rem; align-items: flex-start; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; flex: none; }
.star-options { display: grid; gap: .4rem; }
.star-option { display: flex !important; align-items: center; gap: .8rem; font-weight: 400 !important; border: 2px solid var(--line); border-radius: 8px; padding: .55rem .8rem; cursor: pointer; margin: 0 !important; }
.star-option:hover { border-color: var(--blue); }
.star-option input { width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--blue); }
.star-option:has(input:checked) { border-color: var(--blue); background: var(--bg-tint); }
.star-glyphs { color: var(--gold); font-size: 1.2rem; letter-spacing: .08em; min-width: 6.2em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #fdecea; border: 2px solid var(--danger); color: #6b130c; padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1.3rem; font-weight: 600; }
.success { background: #eaf6ee; border: 2px solid var(--ok); border-radius: var(--radius); padding: 1.6rem; }
.success h1 { color: var(--ok); font-size: 1.8rem; }

/* Rechtstexte */
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }

/* Verwaltung */
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inline { display: inline; }
.flash { background: #eaf6ee; border: 1px solid var(--ok); padding: .6rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.tabs { display: flex; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: .5rem; }
.tabs a { font-weight: 700; text-decoration: none; padding: .3rem .1rem; }
.tabs a[aria-current="page"] { border-bottom: 3px solid var(--blue); }
.tabs .count { background: var(--blue); color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .85rem; }
.filters { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; background: var(--bg-tint); padding: 1rem 1rem 0; border-radius: var(--radius); margin: 1rem 0; }
.table-wrap { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.admin-table tr.unseen { background: #fff8e6; }
.cell-text { min-width: 18rem; max-width: 34rem; overflow-wrap: anywhere; }
.actions { display: flex; flex-direction: column; gap: .35rem; min-width: 11rem; }
.pager { display: flex; gap: 1.5rem; justify-content: center; margin: 1.5rem 0; }
.excerpt { background: var(--bg-tint); border-radius: 12px; margin: 0 0 1.2rem; padding: 1rem 1.2rem; }
.excerpt footer { font-size: .9rem; color: var(--muted); }
.login-form { max-width: 360px; }
