/* Gemeinsame Styles für Profil- und Rechtstextseiten */
:root {
  --red: rgba(166, 30, 45, 1);
  --red-dark: rgba(127, 23, 34, 1);
  --red-light: rgba(226, 128, 140, 1);
  --red-subtle: rgba(166, 30, 45, .08);
  --dark: rgba(17, 17, 17, 1);
  --dark-2: rgba(17, 17, 17, 1);
  --mid: rgba(74, 74, 74, 1);
  --grey: rgba(74, 74, 74, 1);
  --light: rgba(247, 247, 247, 1);
  --white: rgba(255, 255, 255, 1);
  --border: rgba(217, 217, 217, 1);
  --backdark: rgba(0, 0, 0, .70);
  --font-display: 'Source Sans 3', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --text-xs: clamp(.75rem, .7rem + .25vw, .875rem);
  --text-sm: clamp(.875rem, .8rem + .35vw, 1rem);
  --text-base: clamp(1rem, .95rem + .25vw, 1.125rem);
  --text-lg: clamp(.79rem, .70rem + .53vw, 1.05rem);
  --text-xl: clamp(1.05rem, .84rem + .88vw, 1.575rem);
  --text-2xl: clamp(1.4rem, .84rem + 1.75vw, 2.45rem);
  --text-3xl: clamp(1.75rem, .70rem + 2.8vw, 3.5rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: .375rem;
  --radius-md: .5rem;
  --radius-lg: .75rem;
  --transition: 180ms cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
  --content: 1100px;
}
a[href^="https://"] {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
a[href^="https://"]:hover {
  color: var(--red-dark);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); font-size: var(--text-base); color: var(--dark); background: var(--white); line-height: 1.65; min-height: 100dvh; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Header: exakt nach den Regeln der index.html */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); height: 72px; display: flex; align-items: center; }
.header-inner { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--space-2); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.logo-link { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.logo-img { display: block; width: auto; height: 130px; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.logo-text span { display: block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 300; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a { font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); padding: var(--space-2) var(--space-3); border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition); white-space: nowrap; }
.site-nav a:hover { color: var(--dark); border-color: var(--red); }
.nav-cta { background: var(--red); color: var(--white) !important; padding: var(--space-2) var(--space-5) !important; border-radius: var(--radius-md); border-bottom: 2px solid transparent !important; margin-left: var(--space-3); }
.nav-cta:hover { background: var(--red-dark) !important; }
.burger-btn { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); cursor: pointer; }
.burger-btn span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; background: var(--dark); position: fixed; top: 72px; left: 0; right: 0; z-index: 99; padding: var(--space-4) var(--space-6); border-top: 1px solid rgba(255, 255, 255, .08); gap: var(--space-1); }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: var(--text-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); padding: var(--space-3) var(--space-2); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: color var(--transition); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--white); }
.mobile-nav .nav-cta { background: var(--red); color: var(--white) !important; border-radius: var(--radius-md); border-bottom: none !important; text-align: center; margin-top: var(--space-2); padding: var(--space-3) var(--space-4) !important; }

/* Profilkopf */
.page-hero { background: var(--backdark); color: var(--white); padding: clamp(var(--space-12), 8vw, var(--space-10)) var(--space-6); position: relative; overflow: hidden; }
.page-hero-accent { position: absolute; top: 0; right: 0; width: 38%; height: 100%; background: var(--red); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); opacity: .85; }
.page-hero-inner { max-width: var(--content); margin: 0 auto; position: relative; z-index: 1; }
.back-link { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: var(--space-6); transition: color var(--transition); }
.back-link:hover { color: var(--white); }
.back-link svg { flex-shrink: 0; }
.page-hero h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; color: var(--white); margin-bottom: var(--space-3); }
.page-hero .subtitle { font-size: var(--text-base); color: rgba(255, 255, 255, .65); max-width: 52ch; }

/* Hauptinhalt */
.page-content { max-width: var(--content); margin: 0 auto; padding: clamp(var(--space-10), 6vw, var(--space-20)) var(--space-6); }
.content-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-12); align-items: start; }
.portrait-wrap { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-6); aspect-ratio: 3 / 4; background: var(--light); }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.contact-card { background: var(--light); border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-4); }
.contact-card h4 { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: var(--space-4); }
.contact-card p { font-size: var(--text-sm); color: var(--mid); line-height: 1.6; margin-bottom: var(--space-2); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--red); }
.contact-card a:hover { text-decoration: underline; }
.badge-list { display: flex; flex-direction: column; gap: var(--space-2); }
.badge-item { background: var(--red-subtle); color: var(--red-dark); font-size: var(--text-xs); font-weight: 700; padding: var(--space-2) var(--space-4); border-radius: 9999px; text-align: center; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: var(--space-3); }
.section-heading { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; line-height: 1.1; color: var(--dark); margin-bottom: var(--space-4); }
.divider-bar { width: 48px; height: 3px; background: var(--red); border-radius: 2px; margin: var(--space-4) 0 var(--space-8); }
.profile-intro { font-size: var(--text-base); color: var(--mid); line-height: 1.75; margin-bottom: var(--space-6); }
.profile-intro strong { color: var(--dark); }
.fields-heading, .timeline-heading { font-size: var(--text-sm); font-weight: 700; color: var(--dark); letter-spacing: .05em; text-transform: uppercase; margin-bottom: var(--space-4); }
.fields-list, .timeline { display: flex; flex-direction: column; gap: var(--space-3); }
.fields-list { margin-bottom: var(--space-8); }
.field-item { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--mid); line-height: 1.5; }
.field-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: .45em; }
.timeline-item { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) var(--space-5); background: var(--light); border-radius: var(--radius-lg); border-left: 3px solid var(--red); }
.timeline-item p { font-size: var(--text-sm); color: var(--mid); line-height: 1.5; margin: 0; }

/* Rechtstextseiten */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(var(--space-10), 6vw, var(--space-20)) var(--space-6);
  text-align: start;
}
.legal-content h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--dark); margin: var(--space-10) 0 var(--space-4); }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: var(--text-lg); font-weight: 700; color: var(--dark); margin: var(--space-6) 0 var(--space-3); }
.legal-content p { font-size: var(--text-base); color: var(--mid); line-height: 1.75; margin-bottom: var(--space-4); }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--red); }
.legal-content a:hover { text-decoration: underline; }
.legal-content ul { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.legal-content ul li { font-size: var(--text-base); color: var(--mid); line-height: 1.7; margin-bottom: var(--space-2); list-style: disc; }

/* Footer */
.site-footer { background: var(--backdark); color: rgba(255, 255, 255, .45); padding: var(--space-8) var(--space-6); }
.footer-inner { max-width: var(--content); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.footer-logo { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: rgba(255, 255, 255, .7); }
.footer-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-links a { font-size: var(--text-xs); color: rgba(255, 255, 255, .45); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: var(--text-xs); color: rgba(255, 255, 255, .3); }

/* Zugänglichkeit */
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 200; background: var(--white); color: var(--dark); border: 2px solid var(--red); border-radius: var(--radius-md); padding: var(--space-3) var(--space-5); font-size: var(--text-sm); font-weight: 700; transition: top var(--transition); }
.skip-link:focus-visible, .skip-link:focus { top: var(--space-4); outline: 3px solid var(--red); outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: var(--radius-sm); }
.site-header :focus-visible, .mobile-nav :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
[tabindex="-1"]:focus { outline: none; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .burger-btn { display: flex; }
  .content-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .page-hero-accent { display: none; }
}

@media (max-width: 600px) {
  :root { --space-6: 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}