/* Bewerbungswebsite - oeffentlicher Bereich
   Farbwerte auf Kontrast geprueft (WCAG 2.1 AA). */

:root {
  --text:        #16191d;
  --text-muted:  #545b64;
  --bg:          #ffffff;
  --surface:     #f4f5f7;
  --accent:      #0e5a54;   /* 7,0:1 auf Weiss */
  --accent-hover:#093f3b;
  --border:      #d8dbe0;
  --danger:      #8c1d18;
  --ok:          #14532d;
  --maxwidth:    72rem;
  --measure:     42rem;     /* Lesebreite, rund 70 Zeichen */
  --radius:      6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:        #e8eaed;
    --text-muted:  #a8b0b8;
    --bg:          #14171a;
    --surface:     #1c2024;
    --accent:      #5fd3c7;
    --accent-hover:#8ae4da;
    --border:      #2c3136;
    --danger:      #ff9d94;
    --ok:          #86e0a8;
  }
}
:root[data-theme="dark"] {
  --text:        #e8eaed;
  --text-muted:  #a8b0b8;
  --bg:          #14171a;
  --surface:     #1c2024;
  --accent:      #5fd3c7;
  --accent-hover:#8ae4da;
  --border:      #2c3136;
  --danger:      #ff9d94;
  --ok:          #86e0a8;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap { width: min(100% - 2.5rem, var(--maxwidth)); margin-inline: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bg); color: var(--text);
  padding: .75rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Kopfbereich */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.25rem;
}
.brand { display: block; text-decoration: none; color: inherit; }
.brand-name { display: block; font-weight: 600; font-size: 1.15rem; }
.brand-role { display: block; color: var(--text-muted); font-size: .9rem; }

.nav-toggle { display: none; }

.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  text-decoration: none; padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }
.lang-switch { color: var(--text-muted); }

/* Inhalt */
main { padding-block: 3rem 4rem; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.2; margin-block: 0 1rem; }
h2 { font-size: 1.5rem; line-height: 1.25; margin-block: 2.5rem .75rem; }
h3 { font-size: 1.2rem; margin-block: 1.75rem .5rem; }
p, ul, ol { max-width: var(--measure); }
.prose > * { max-width: var(--measure); }

.hero { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 46rem) {
  .hero { grid-template-columns: 14rem 1fr; gap: 3rem; }
}
.portrait {
  width: 100%; height: auto; max-width: 14rem;
  border-radius: var(--radius);
}
.headline { font-size: 1.3rem; color: var(--text-muted); margin-top: 0; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-block; padding: .7rem 1.25rem;
  background: var(--accent); color: var(--bg);
  border: 2px solid var(--accent); border-radius: var(--radius);
  text-decoration: none; font-size: 1rem; font-weight: 500; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: transparent; color: var(--accent-hover); }

/* Arbeitsproben */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  padding: .4rem .9rem; font: inherit; font-size: .95rem; cursor: pointer;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
}
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.project-list {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: grid; gap: 2.5rem;
}
@media (min-width: 46rem) {
  .project-list { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
}
.project-card img { width: 100%; height: auto; border-radius: var(--radius); }
.project-card h2, .project-card h3 { margin-block: .75rem .25rem; font-size: 1.2rem; }
.project-card p { max-width: none; }
.category { color: var(--text-muted); font-size: .9rem; margin-block: 0 .5rem; }
.project-image { width: 100%; height: auto; border-radius: var(--radius); margin-block: 1.5rem; }
.lead { font-size: 1.2rem; color: var(--text-muted); }
.breadcrumb { font-size: .95rem; }

.skills { list-style: none; padding: 0; }
.skills li { padding-block: .35rem; border-bottom: 1px solid var(--border); }
.skill-note { color: var(--text-muted); font-size: .9rem; }

/* Formular */
.contact-form { max-width: var(--measure); margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-block: 0 1.25rem; }
.field label { font-size: .95rem; font-weight: 500; }
.field-check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field-check label { font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], textarea, select {
  font: inherit; font-size: 1rem;
  padding: .6rem .7rem;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%;
}
textarea { resize: vertical; }
.req { color: var(--danger); }

/* Honeypot: fuer Menschen unsichtbar, fuer Bildschirmleser ausgeblendet */
.hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

.notice {
  max-width: var(--measure);
  padding: 1rem 1.25rem; margin-block: 1.5rem;
  border-left: 4px solid var(--border); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.notice ul { margin-block: .5rem 0; }
.notice-ok { border-left-color: var(--ok); }
.notice-error { border-left-color: var(--danger); }
.notice-warn { border-left-color: #9a6700; }

/* Fusszeile */
.site-footer { border-top: 1px solid var(--border); padding-block: 2rem 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.footer-nav { display: flex; gap: 1.25rem; }
.footer-contact { margin: 0; color: var(--text-muted); }

/* Schmale Bildschirme */
@media (max-width: 45.99rem) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem .8rem; font: inherit; font-size: .95rem; cursor: pointer;
    background: transparent; color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius);
  }
  .nav-toggle-box {
    width: 1.1rem; height: 2px; background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
  }
  .site-nav { flex-basis: 100%; }
  .site-nav[hidden] { display: none; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .actions, .filter { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
}
