/*
Theme Name: Studentenunternehmer
Theme URI: https://studentenunternehmer.de
Author: TechHan
Author URI: https://www.techhan.de
Description: Theme für studentenunternehmer.de – portiert aus dem Design „Studentenunternehmer v2“. Enthält Startseite, „Für Studenten“, „Für Unternehmen“, beide Anmeldeformulare (Einträge landen im WordPress-Backend + E-Mail) sowie Impressum/Datenschutz. Seiten werden beim Aktivieren automatisch angelegt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studentenunternehmer
*/

/* Geist (SIL Open Font License) – lokal eingebunden, keine Requests an Google (DSGVO). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/geist-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/geist-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Portiert 1:1 aus "Studentenunternehmer v2" (Design-Prototyp). Werte bitte nicht ohne Design-Abstimmung ändern. */

:root {
  --black: #000;
  --ink: #222;
  --muted: #666;
  --soft: #f5f5f5;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.1);
  --line-3: rgba(0, 0, 0, 0.12);
  --line-input: rgba(0, 0, 0, 0.15);
  --font-sans: "Geist", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

html, body { margin: 0; padding: 0; background: #fff; color: #000; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
* { box-sizing: border-box; }
a { color: #000; text-decoration: none; }
a:hover { color: var(--ink); }
input, select, textarea, button { font-family: inherit; }
::selection { background: #000; color: #fff; }
img { max-width: 100%; }
body { overflow-x: hidden; }

/* Sichtbarer Tastatur-Fokus (Accessibility) */
a:focus-visible, button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: #fff; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: #000; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ─── Layout ─────────────────────────────────────────────── */
.page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.page main { flex: 1; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.border-top { border-top: 1px solid var(--line); }
.bg-soft { background: var(--soft); }
.split { display: grid; align-items: center; }
.stack { display: flex; flex-direction: column; }
.row-wrap { display: flex; flex-wrap: wrap; }

/* ─── Typografie ─────────────────────────────────────────── */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.mono-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.mono-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 600; }
.h-hero { font-size: clamp(48px, 7.4vw, 96px); line-height: 0.95; letter-spacing: -0.05em; }
.h-page { font-size: clamp(48px, 8.5vw, 112px); line-height: 0.95; letter-spacing: -0.05em; }
.h-section { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.045em; }
.h-section-sm { font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -0.04em; }
.h-cta { font-size: clamp(40px, 6.5vw, 84px); line-height: 0.98; letter-spacing: -0.05em; text-wrap: balance; }
.h-final { font-size: clamp(48px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.05em; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.body-lg { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; border-radius: 10px; transition: background 0.2s, border-color 0.2s; cursor: pointer; }
.btn-inline { display: inline-flex; }
.btn-primary { background: #000; color: #fff; border: none; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-outline { border: 1px solid var(--line-input); color: #000; background: #fff; }
.btn-outline:hover { border-color: #000; color: #000; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: var(--soft); color: #000; }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-xl { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.btn-card { height: 44px; font-size: 14px; border-radius: 9px; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__bar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 40px; width: auto; display: block; margin-left: -8px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav a { color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #000; }
.site-header__ctas { display: flex; align-items: center; gap: 10px; }
.nav-mobile { display: none; gap: 24px; padding: 0 24px 12px; font-size: 14px; max-width: 1200px; margin: 0 auto; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__logo img { height: 64px; width: auto; display: block; margin-left: -6px; }
.site-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; font-size: 14px; }
.site-footer__cols a { color: var(--ink); }
.site-footer__cols a:hover { color: #000; }

/* ─── Mobile Sticky CTA ──────────────────────────────────── */
.mobile-bar, .mobile-bar-spacer { display: none; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
.mobile-bar a { height: 52px; font-size: 15px; }

/* Zwischen Tablet und Desktop passen Logo, Navigation und CTAs nicht in eine Zeile */
@media (max-width: 939px) {
  .site-header__ctas { display: none; }
}

@media (max-width: 779px) {
  .nav-desktop, .site-header__ctas { display: none; }
  .nav-mobile { display: flex; }
  .mobile-bar { display: flex; }
  .mobile-bar-spacer { display: block; height: 84px; }
  .order-mobile-last { order: 2; }
}

/* ─── Karten & Listen ────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 6px; background: var(--soft); color: var(--ink); }
.tag { font-size: 14px; padding: 8px 14px; border: 1px solid var(--line-3); border-radius: 8px; }
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.cat-grid > * { background: #fff; color: #000; transition: background 0.2s; }
.cat-grid > a:hover { background: var(--soft); color: #000; }
.cat-grid > a:focus-visible { outline-offset: -2px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.step { border-top: 1px solid #000; padding-top: 24px; }
.step h3 { margin: 20px 0 10px; font-size: 26px; letter-spacing: -0.03em; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

.talent { display: flex; align-items: center; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.talent__body { flex: 1; min-width: 0; }

.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv span:first-child { color: var(--muted); }

/* ─── Formulare ──────────────────────────────────────────── */
.form-tabs { display: flex; padding: 4px; background: var(--soft); border-radius: 12px; margin-bottom: 48px; }
.form-tabs a { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; padding: 0 8px; }
.form-tabs a[aria-current="page"] { background: #fff; color: #000; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.form { display: flex; flex-direction: column; gap: 40px; }
.form-section { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--line); padding-top: 32px; }
.form-section h2 { font-size: 20px; letter-spacing: -0.02em; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.form-grid--narrow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); min-width: 0; }
.field__head { display: flex; justify-content: space-between; gap: 12px; }
.field__hint { font-weight: 400; color: var(--muted); }
.field__error { font-weight: 400; color: #000; }
.input { height: 50px; padding: 0 14px; border-radius: 10px; font-size: 16px; background: #fff; color: #000; outline: none; transition: border-color 0.15s; border: 1px solid var(--line-input); width: 100%; min-width: 0; }
select.input { padding: 0 12px; }
textarea.input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus { border-color: #000; box-shadow: 0 0 0 1px #000; }
.input[aria-invalid="true"] { border: 2px solid #000; }

.choice-grid { display: grid; gap: 8px; }
.choice-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.choice-grid--narrow { grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); }
.choice-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.choice { height: 50px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer; border: 1px solid var(--line-input); background: #fff; color: #000; transition: all 0.15s; }
.choice--center { justify-content: center; }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { background: #000; color: #fff; border-color: #000; }
.choice-group[data-invalid="true"] .choice[aria-pressed="false"], .choice-group[data-invalid="true"] .choice[aria-checked="false"] { border-color: #000; }

.alert { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #000; border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.45; color: #000; background: var(--soft); }
.alert__icon { width: 20px; height: 20px; border-radius: 50%; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.submit { height: 60px; border: none; border-radius: 12px; background: #000; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: background 0.2s, opacity 0.2s; }
.submit:hover { background: var(--ink); }
.submit:disabled { cursor: wait; opacity: 0.6; }
.form-legal { font-size: 13px; color: var(--muted); text-align: center; }
.form-legal a { color: #000; text-decoration: underline; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Rechtstexte ────────────────────────────────────────── */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 24px clamp(80px, 10vw, 128px); font-size: 16px; line-height: 1.6; color: var(--ink); }
.legal h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 32px; color: #000; }
.legal h2 { font-size: 20px; letter-spacing: -0.02em; margin: 32px 0 8px; color: #000; }
.legal a { text-decoration: underline; }

/* ─── WordPress-Ergänzungen ──────────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__logo .custom-logo-link { display: flex; }
.nav ul, .site-footer__cols ul { list-style: none; margin: 0; padding: 0; display: contents; }
.nav .current-menu-item > a { color: #000; }

/* Inhalte aus dem Block-Editor (Impressum, Datenschutz, freie Seiten) */
.legal p, .legal ul, .legal ol { margin: 0 0 16px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; color: #000; }
.legal img { height: auto; }
.legal .wp-block-button__link { background: #000; color: #fff; border-radius: 10px; padding: 14px 22px; text-decoration: none; }
.alignwide { max-width: 1200px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.post-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post-list a { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list a:hover { color: #000; }
.post-list__title { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.post-list__meta { font-size: 13px; color: var(--muted); margin-top: 6px; }

.powered { color: var(--muted); }
.powered a { color: #000; font-weight: 500; }
.powered a:hover { text-decoration: underline; color: #000; }

/* ─── Formulare (WordPress-Variante: echte Checkboxen/Radios) ─── */
.h-form { font-size: clamp(36px, 6vw, 60px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.form-intro { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
fieldset.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group__legend { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--ink); }
.field__error[hidden], .field__hint[hidden] { display: none; }
.choice { position: relative; user-select: none; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice:has(input:checked) { background: #000; color: #fff; border-color: #000; }
.choice:has(input:focus-visible) { outline: 2px solid #000; outline-offset: 2px; }
.choice__mark::before { content: "+"; }
.choice:has(input:checked) .choice__mark::before { content: "✓"; }
.choice-group[data-invalid="true"] .choice:not(:has(input:checked)) { border-color: #000; }
.phone-field { display: none; }
.su-form:has(input[name="contactPreference"][value="Telefon"]:checked) .phone-field { display: flex; }
.alert[hidden] { display: none; }
