/* wulfseidel.de – eigenes Design (Dunkelblau & Weiß) für Cassiopeia
   Wird von Cassiopeia automatisch nach template.css geladen. */

:root {
  --cassiopeia-color-primary: #14284a;
  --cassiopeia-color-link: #2f6fb6;
  --link-color: #2f6fb6;
  --link-color-rgb: 47, 111, 182;
  --cassiopeia-color-hover: #1e3a66;
  --link-hover-color: #1e3a66;
  --link-hover-color-rgb: 30, 58, 102;

  --ws-navy: #14284a;
  --ws-navy-2: #1e3a66;
  --ws-ink: #1b2333;
  --ws-muted: #5b667a;
  --ws-line: #dde3ec;
  --ws-soft: #f3f6fa;
  --ws-accent: #2f6fb6;
  --ws-max: 1120px;
  --ws-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --ws-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body { overflow-x: clip; }
body { font-family: var(--ws-body); color: var(--ws-ink); background: #fff; }

/* ---------- Seitenbreite ---------- */
.grid-child { max-width: var(--ws-max); }
.container-header .grid-child, .footer .grid-child { padding-left: 20px; padding-right: 20px; }
@supports (display:grid) {
  .site-grid {
    column-gap: 0;
    grid-template-columns: [full-start] minmax(20px, 1fr) [main-start] repeat(4, minmax(0, calc(var(--ws-max) / 4 - 10px))) [main-end] minmax(20px, 1fr) [full-end];
  }
}

/* ---------- Kopfzeile ---------- */
.container-header {
  background-color: var(--ws-navy);
  background-image: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.container-header .navbar-brand { font-family: var(--ws-display); font-weight: 600; }
.container-header .navbar-brand a { color: #fff; text-decoration: none; font-size: 1.45rem; }
.container-header .site-description {
  font-family: var(--ws-body); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; opacity: .7; color: #fff;
}
.container-header .mod-menu { gap: 4px; }
.container-header .metismenu.mod-menu .metismenu-item > a,
.container-header .mod-menu > li > a {
  color: #fff; opacity: .85; font-weight: 500; padding: .5rem .9rem; border-radius: 6px;
  text-decoration: none;
}
.container-header .metismenu.mod-menu .metismenu-item > a:hover,
.container-header .mod-menu > li > a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.container-header .metismenu.mod-menu .metismenu-item.active > a,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  opacity: 1; background: rgba(255,255,255,.15);
}
.container-header .metismenu.mod-menu .metismenu-item > a::after { display: none; }

/* Kopfzeile auf Handy und Tablet: Name links, Menü-Knopf rechts in einer Zeile */
@media (max-width: 991.98px) {
  .container-header { position: relative; }
  .container-header .grid-child:first-child { padding-top: 12px; padding-bottom: 12px; padding-right: 76px; }
  .container-header .navbar-brand { margin: 0; padding: 0; }
  .container-header .navbar-brand a { font-size: 1.3rem; }
  .container-header .site-description { font-size: .66rem; }
  .container-header .container-nav { position: static; margin: 0; padding: 0 20px; }
  .container-header .container-nav .navbar { position: static; width: 100%; min-height: 0; padding: 0; }
  .container-header .navbar-toggler {
    position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
    border-color: rgba(255,255,255,.45); color: #fff; padding: 6px 10px; margin: 0;
  }
  .container-header .navbar-toggler[aria-expanded="true"] { top: 32px; }
  .container-header .navbar-collapse { width: 100%; }
  .container-header .navbar-collapse.show,
  .container-header .navbar-collapse.collapsing { padding-bottom: 14px; }
  .container-header .metismenu.mod-menu .metismenu-item > a { display: block; padding: .65rem .9rem; }
}

/* ---------- Grundlayout ---------- */
.site-grid { row-gap: 0; }
.com-content-article .ws-page-head { margin-top: 1.5rem; }
a { text-underline-offset: 2px; }
.ws-hero h1, .ws-page-head h1, .ws-letter h2, .ws-chapter h2, .ws-cv h2 { font-family: var(--ws-display); }

/* ---------- Startseite ---------- */
/* Kopfbereich über die volle Breite, direkt an die Kopfzeile anschließend */
body.itemid-101 main { margin-top: 0; }
.ws-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
  background: linear-gradient(170deg, var(--ws-navy) 0%, var(--ws-navy-2) 100%);
  color: #fff;
  margin-inline: calc(50% - 50vw);
  padding: 72px max(20px, calc(50vw - var(--ws-max) / 2 + 20px)) 80px;
}
.ws-portrait {
  width: 188px; height: 188px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 3px solid rgba(255,255,255,.4);
  display: grid; place-items: center; font-family: var(--ws-display);
  font-size: 3rem; font-weight: 500; color: #fff; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.ws-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin: 0 0 8px; }
.ws-hero h1 { font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.1; margin: 0 0 14px; color: #fff; text-wrap: balance; }
.ws-lead { font-size: 1.12rem; max-width: 60ch; margin: 0 0 26px; opacity: .92; }
.ws-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.ws-btn { display: inline-block; padding: 11px 20px; border-radius: 6px; font-weight: 600; text-decoration: none; font-size: .95rem; transition: background .15s, color .15s; }
.ws-btn-primary { background: #fff; color: var(--ws-navy); }
.ws-btn-primary:hover { background: #e6edf7; color: var(--ws-navy); }
.ws-btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.ws-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.ws-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 48px 0 44px; }
.ws-fact { border-top: 2px solid var(--ws-accent); padding-top: 14px; }
.ws-fact b { display: block; font-family: var(--ws-display); font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ws-fact span { color: var(--ws-muted); font-size: .92rem; }

.ws-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-bottom: 40px; }
.ws-split > * { min-width: 0; }
.ws-letter h2 { font-weight: 600; font-size: 1.6rem; margin: 0 0 16px; }
.ws-letter p { max-width: 62ch; margin: 0 0 14px; }
.ws-salute { font-family: var(--ws-display); font-size: 1.25rem; }
.ws-sign { font-family: var(--ws-display); font-size: 1.15rem; margin-top: 20px; }
.ws-contact { background: var(--ws-soft); border: 1px solid var(--ws-line); border-radius: 10px; padding: 24px; align-self: start; scroll-margin-top: 110px; }
.ws-contact h3 { margin: 0 0 12px; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-muted); }
.ws-contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.ws-contact dt { color: var(--ws-muted); font-size: .9rem; font-weight: 400; }
.ws-contact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Seitenköpfe ---------- */
.ws-page-head { border-bottom: 1px solid var(--ws-line); padding-bottom: 24px; margin-bottom: 8px; }
.ws-page-head h1 { font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; text-wrap: balance; }
.ws-page-head p { margin: 6px 0 0; color: var(--ws-muted); max-width: 62ch; }
.ws-cv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }

/* ---------- Über mich ---------- */
.ws-story { padding-block: 32px; display: grid; gap: 36px; }
.ws-chapter { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; }
.ws-yr { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-accent); padding-top: 6px; font-variant-numeric: tabular-nums; }
.ws-chapter h2 { font-weight: 600; font-size: 1.4rem; margin: 0 0 10px; text-wrap: balance; }
.ws-chapter p { max-width: 64ch; margin: 0 0 12px; }

/* ---------- Empfehlungen ---------- */
.ws-testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 32px; }
.ws-t-card { border: 1px solid var(--ws-line); border-radius: 10px; padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.ws-t-lead { grid-column: 1 / -1; background: var(--ws-soft); }
.ws-t-card blockquote { margin: 0; font-family: var(--ws-display); font-size: 1.12rem; line-height: 1.5; }
.ws-t-lead blockquote { font-size: 1.5rem; }
.ws-t-card details summary { cursor: pointer; color: var(--ws-accent); font-weight: 600; font-size: .92rem; }
.ws-full { margin-top: 12px; font-size: .95rem; }
.ws-full p { margin: 0 0 10px; max-width: 64ch; }
.ws-source { color: var(--ws-muted); font-size: .88rem; }
.ws-who { margin-top: auto; }
.ws-who b { display: block; }
.ws-who span { color: var(--ws-muted); font-size: .9rem; }
.ws-more { margin: 0 0 40px; color: var(--ws-muted); }

/* ---------- Lebenslauf ---------- */
.ws-cv { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; padding-block: 32px; }
.ws-cv > * { min-width: 0; }
.ws-cv h2 { font-weight: 600; font-size: 1.3rem; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid var(--ws-navy); }
.ws-cv section + section { margin-top: 36px; }
.ws-entry { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--ws-line); }
.ws-entry:last-child { border-bottom: 0; }
.ws-when { color: var(--ws-muted); font-size: .9rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.ws-entry h3 { margin: 0; font-size: 1.05rem; font-weight: 600; font-family: var(--ws-body); }
.ws-where { color: var(--ws-accent); font-weight: 500; font-size: .95rem; }
.ws-entry ul { margin: 8px 0 0; padding-left: 18px; }
.ws-entry li { margin-bottom: 4px; }
.ws-entry ul.ws-steps { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 10px; }
.ws-steps li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: .95rem; }
.ws-steps li span { color: var(--ws-muted); font-size: .85rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.ws-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-tags span { border: 1px solid var(--ws-line); border-radius: 999px; padding: 4px 12px; font-size: .88rem; }
.ws-sys b { display: block; font-size: .92rem; }
.ws-sys p { margin: 2px 0 12px; color: var(--ws-muted); font-size: .88rem; }
.ws-plain { list-style: none; margin: 0; padding: 0; }
.ws-plain li { padding-block: 7px; border-bottom: 1px solid var(--ws-line); font-size: .95rem; }
.ws-plain li span { display: block; color: var(--ws-muted); font-size: .85rem; }

/* ---------- Impressum & Datenschutz ---------- */
.ws-legal { padding-block: 24px 40px; max-width: 70ch; }
.ws-legal h2 { font-family: var(--ws-body); font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; }
.ws-legal h2:first-child { margin-top: 0; }
.ws-legal p { margin: 0 0 12px; }

/* ---------- Fußzeile ---------- */
.container-footer { background-color: var(--ws-navy); background-image: none; }
.footer .grid-child { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer .mod-custom { width: 100%; }
.ws-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; }
.ws-footer a { color: #fff; }
.ws-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Mobil ---------- */
@media (max-width: 767.98px) {
  .ws-hero { grid-template-columns: 1fr; gap: 22px; padding: 36px 20px 44px; }
  .ws-portrait { width: 116px; height: 116px; font-size: 2rem; }
  .ws-facts { grid-template-columns: 1fr; gap: 16px; margin: 32px 0; }
  .ws-split, .ws-cv { grid-template-columns: 1fr; gap: 32px; }
  .ws-chapter { grid-template-columns: 1fr; gap: 4px; }
  .ws-testimonials { grid-template-columns: 1fr; }
  .ws-entry { grid-template-columns: 1fr; gap: 4px; }
  .ws-steps li { grid-template-columns: 1fr; gap: 0; }
}
