:root {
  color-scheme: light;
  font-family: "Comic Sans MS", "Comic Sans", "Trebuchet MS", Arial, sans-serif;
  --bg: #000000;
  --mag: #ff00ff;
  --lime: #39ff14;
  --cyan: #00e5ff;
  --txt: #e6e6e6;
  --card-bg: #0b1020;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: #ffff00;
  line-height: 1.35;
  background-color: #008080;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.16) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.16) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.16) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

a {
  color: #00ffff;
  font-weight: bold;
  text-decoration: underline;
}

a:visited {
  color: #ff99ff;
}

a:hover {
  color: #ffffff;
  background: #ff00ff;
}

.top-strip {
  padding: 0.35rem;
  color: #000000;
  background: #ffff00;
  border-bottom: 6px ridge #ff00ff;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: bold;
}

.site-header {
  position: relative;
  width: min(980px, calc(100% - 18px));
  margin: 12px auto 0;
  padding: 12px;
  color: #ffffff;
  background: var(--bg);
  border: 2px solid var(--mag);
  text-align: center;
}

.lang-switcher {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.lang-btn {
  padding: 3px;
  background: #c0c0c0;
  border: 4px outset #ffffff;
  line-height: 0;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: #ffff00;
  border-style: inset;
}

.lang-btn img {
  display: block;
  width: 30px;
  height: 20px;
  border: 1px solid #000000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #ffffff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 7vw, 4.5rem);
  text-decoration: blink;
  text-shadow: 4px 4px 0 #ff0000, 8px 8px 0 #000000;
}

.brand:visited {
  color: #ffffff;
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
}

.button {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: #0000ee;
  background: #e0e0e0;
  border-width: 4px;
  border-style: outset;
  border-color: #ffffff #666666 #666666 #ffffff;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: underline;
}

.button:active {
  border-style: inset;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--mag);
  background: #0a0a0a;
  border: 1px solid #333333;
  border-left: 4px solid var(--mag);
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: var(--bg);
}

body[data-page="cert"] .nav-links a[href="certifications.html"],
body[data-page="art"] .nav-links a[href="articles.html"],
body[data-page="book"] .nav-links a[href="bookmarks.html"] {
  color: var(--lime);
  border-left-color: var(--lime);
}

.hero,
.section,
.band,
.contact-band {
  width: min(980px, calc(100% - 18px));
  margin: 12px auto;
  padding: 14px;
  background: #000000;
  border: 8px groove #ff00ff;
  box-shadow: 12px 12px 0 #202020;
}

.hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.hero-media,
.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
}

.hero-photo {
  margin: 0;
  padding: 8px;
  color: #000000;
  background: #ffff00;
  border: 8px ridge #ff00ff;
  text-align: center;
  transform: rotate(-1.2deg);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 5px inset #c0c0c0;
  filter: contrast(1.18) saturate(1.4);
}

.hero-photo figcaption {
  margin-top: 6px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 0.9rem;
  font-weight: bold;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 8px;
  color: #000000;
  background: #00ff00;
  border: 3px dashed #ff0000;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  color: #ff00ff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 3px 3px 0 #ffff00, 6px 6px 0 #0000ff;
}

h2 {
  margin-bottom: 14px;
  color: #00ffff;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
  text-decoration: underline;
}

h3 {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.hero-copy,
.service-card p,
.profile-layout p,
.article-list p,
.contact-band p {
  color: #ffff00;
  font-size: 1.08rem;
}

.contact-band .section-kicker,
.profile-layout .section-kicker {
  color: #000000;
}

.contact-band h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero-role {
  margin: 0 0 14px;
  color: #00ffff;
  font-family: "Courier New", monospace;
  font-size: 1.15rem;
  font-weight: bold;
}

.hero h1 {
  text-align: left;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.hero-content {
  align-self: center;
}

.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.focus-chips li {
  padding: 3px 8px;
  color: #000;
  background: #00ffff;
  border: 2px solid #ff00ff;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: bold;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  padding: 10px 12px;
  background: #0d0d14;
  border-left: 6px solid #ff00ff;
  border-top: 2px groove #00ffff;
  font-family: "Courier New", monospace;
}

.timeline-period {
  display: inline-block;
  margin-right: 10px;
  color: #00ffff;
  font-weight: bold;
}

.timeline-company {
  color: #ff00ff;
  font-weight: bold;
}

.timeline-desc {
  display: block;
  margin-top: 4px;
  color: #ffff00;
}

.under-construction {
  display: inline-block;
  padding: 6px 10px;
  color: #ffffff;
  background: repeating-linear-gradient(45deg, #ffff00 0 10px, #000000 10px 20px);
  border: 4px double #ff0000;
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000000;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.contact-actions {
  align-self: start;
  margin-top: 0;
}

.contact-actions .button {
  flex: 0 0 auto;
}

.contact-copy {
  flex: 1 0 100%;
  margin: 0;
}

.button.primary {
  color: #ffffff;
  background: #ff0000;
}

.button.secondary {
  color: #000000;
  background: #ffff00;
}

.intro,
.split,
.profile-layout,
.contact-band {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.service-grid,
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card,
.facts div {
  padding: 12px;
  color: var(--txt);
  background: var(--card-bg);
  border: 2px solid #ffff00;
  transition: border-color 0.15s;
}

.article-list {
  padding: 12px;
  color: #ffffff;
  background: #800080;
  border: 6px ridge #ffff00;
}

.service-card h3 {
  color: #ffff00;
}

.service-card p {
  color: var(--txt);
}

.service-card:nth-child(2) {
  border-color: var(--mag);
}

.service-card:nth-child(2) h3 {
  color: var(--mag);
}

.service-card:nth-child(3) {
  border-color: var(--cyan);
}

.service-card:nth-child(3) h3 {
  color: var(--cyan);
}

.service-card:nth-child(4) {
  border-color: var(--lime);
}

.service-card:nth-child(4) h3 {
  color: var(--lime);
}

.service-card:hover,
.facts div:hover {
  border-color: var(--lime);
}

.cv-section {
  background: #003300;
  border-color: #ffff00;
}

.privacy-note {
  padding: 10px;
  color: #000000;
  background: #00ff00;
  border: 4px dashed #000000;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.cv-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cv-box {
  padding: 12px;
  color: #ffffff;
  background: #000080;
  border: 6px ridge #c0c0c0;
}

.cv-box:nth-child(2) {
  background: #800000;
  border-color: #00ffff;
}

.cv-box:nth-child(3) {
  background: #400040;
  border-color: #00ff00;
}

.cv-box:nth-child(4) {
  background: #000000;
  border-color: #ff00ff;
}

.cv-box ul {
  margin: 0;
  padding-left: 1.35rem;
}

.cv-box li {
  margin-bottom: 7px;
}

.cv-box p:last-child,
.cv-box li:last-child {
  margin-bottom: 0;
}

.greatest-hits {
  background: #001a1a;
  border-color: #ff0000;
}

.greatest-hits h2 {
  color: #ffff00;
  text-align: center;
  text-shadow: 3px 3px 0 #ff0000, 6px 6px 0 #000000;
}

.subtitle {
  color: #000000;
  background: #00ff00;
  border: 5px ridge #ffff00;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.table-wrap {
  overflow-x: auto;
  border: 6px inset #c0c0c0;
  background: #c0c0c0;
}

.hits {
  width: 100%;
  min-width: 780px;
  color: #000000;
  background: #ffffff;
  border: 4px outset #ffffff;
  border-collapse: collapse;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
}

.hits th {
  color: #ffffff;
  background: #000080;
  border: 3px outset #c0c0c0;
  text-align: left;
}

.hits td {
  border: 2px inset #c0c0c0;
  vertical-align: top;
}

.hits tr:nth-child(odd) td {
  background: #ffffcc;
}

.hits b {
  color: #800000;
}

.kunden {
  margin: 14px 0 0;
  padding: 10px;
  color: #ffffff;
  background: #800000;
  border: 5px dashed #00ffff;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.band {
  background: #000000;
  border-color: #00ffff;
}

.facts {
  margin: 0;
}

.facts dt {
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-decoration: underline;
}

.facts dd {
  margin: 4px 0 0;
  color: var(--txt);
}

.article-list {
  font-size: 1.1rem;
}

.teaser-list {
  min-height: 170px;
}

.article-teaser {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.article-list code {
  color: #00ff00;
  background: #000000;
}

.article-links {
  max-height: 520px;
  margin: 14px 0 0;
  padding: 12px 12px 12px 42px;
  overflow: auto;
  color: #ffffff;
  background: #000000;
  border: 5px inset #c0c0c0;
  font-family: "Times New Roman", Times, serif;
  columns: 2;
}

.article-links li {
  break-inside: avoid;
  margin: 0 0 7px;
  padding: 2px 4px;
  background: #000066;
  border-bottom: 1px dashed #ffff00;
}

.article-links li:nth-child(odd) {
  background: #330066;
}

.compact-links {
  max-height: none;
}

.article-page {
  background: #000066;
  border-color: #00ff00;
}

.cert-section {
  background: #101010;
  border-color: #ffff00;
}

.cert-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-summary span {
  display: inline-block;
  padding: 6px 9px;
  color: #000000;
  background: #00ff00;
  border: 4px outset #c0c0c0;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cert-card {
  min-height: 8rem;
  padding: 10px;
  color: #ffffff;
  background: #000080;
  border: 5px ridge #00ffff;
}

.cert-card:nth-child(3n + 2) {
  background: #800000;
  border-color: #ffff00;
}

.cert-card:nth-child(3n) {
  background: #400040;
  border-color: #00ff00;
}

.cert-card h3 {
  font-size: 1rem;
}

.cert-card p {
  margin-bottom: 0;
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
}

.cert-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #000080;
  border: 5px ridge #00ffff;
}

.cert-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 8px 10px;
  border-bottom: 2px dotted #00ffff;
}

.cert-list li:last-child {
  border-bottom: 0;
}

.cert-list li:nth-child(even) {
  background: #400040;
}

.cert-date {
  flex: 0 0 auto;
  min-width: 8ch;
  color: #ffff00;
  font-family: "Courier New", monospace;
  font-weight: bold;
}

.cert-issuer {
  margin-left: auto;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
}

.cert-nolink {
  font-weight: bold;
}

.contact-band {
  background: #400040;
  border-color: #00ff00;
}

.site-footer {
  width: min(980px, calc(100% - 18px));
  margin: 12px auto 24px;
  padding: 12px;
  color: #ffffff;
  background: #000000;
  border: 6px ridge #c0c0c0;
  text-align: center;
}

.site-footer > * {
  margin: 0 8px 8px;
}

.badge {
  display: inline-block;
  padding: 0;
  color: #ffff00;
  background: transparent;
  border: 0;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: bold;
  text-shadow: 2px 2px 0 #ff00ff;
  animation: footer-blink 1s steps(2, start) infinite;
}

.badge::before,
.badge::after {
  color: #00ff00;
  content: " * ";
}

@keyframes footer-blink {
  50% {
    opacity: 0.18;
  }
}

@media (max-width: 760px) {
  .lang-switcher {
    position: static;
    justify-content: center;
    margin-bottom: 10px;
  }

  .brand {
    font-size: 2.35rem;
    text-shadow: 3px 3px 0 #ff0000, 6px 6px 0 #000000;
  }

  .brand-logo {
    height: 40px;
  }

  .hero,
  .intro,
  .split,
  .profile-layout,
  .contact-band,
  .service-grid,
  .facts,
  .cv-board,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .article-links {
    columns: 1;
  }

  .cert-issuer {
    flex-basis: 100%;
    margin-left: 0;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

/* === Projekte === */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card h3 a {
  color: inherit;
}

.project-card .button {
  align-self: flex-start;
  margin-top: auto;
}
