:root {
  --page-bg: #f4f4f5;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #0f172a;
  --ink-muted: rgba(15, 23, 42, 0.58);
  --ink-subtle: rgba(15, 23, 42, 0.35);
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --radius-lg: 1.25rem;
  --radius-md: .9rem;
  --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 35px rgba(15, 23, 42, 0.12);
  --nav-h: 4.2rem;
  --max-w: 1180px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at top, #ffffff 0%, #edf1f7 75%);
  color: var(--ink);
}

/* Layout helpers */
.container {
  width: min(100% - 2.4rem, var(--max-w));
  margin: 0 auto;
}

.section {
  padding: clamp(2.7rem, 6vw, 4.1rem) 0;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 245, 0.8);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

.nav-wrapper {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  letter-spacing: -.015em;
  font-size: 1.02rem;
  display: flex;
  gap: .3rem;
  align-items: center;
  color: #0f172a;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav a {
  font-size: .9rem;
  color: rgba(15, 23, 42, 0.6);
  text-decoration: none;
  transition: .15s ease-out;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: #0f172a;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: #0f172a;
  cursor: pointer;
}

/* Hero (index) */
.hero {
  padding: clamp(3.3rem, 6vw, 4.6rem) 0 clamp(3rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: min(4.1vw, 3.2rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .62rem;
  color: rgba(15, 23, 42, 0.6);
  background: rgba(15, 118, 110, 0.08);
  padding: .35rem .7rem;
  border-radius: 999px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 1.25rem 0 1rem;
}

.lead {
  max-width: 38rem;
  color: rgba(15, 23, 42, 0.55);
  font-size: 1rem;
}

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

.hero-meta {
  margin-top: 1.35rem;
  font-size: .78rem;
  color: rgba(15, 23, 42, 0.42);
}

.hero-card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.035);
  border-radius: 1.15rem;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-card h2 {
  font-size: 1.02rem;
  margin-bottom: .4rem;
}

.focus-list {
  list-style: none;
  margin: .3rem 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.focus-list li {
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.04), rgba(255, 255, 255, 0));
  border: 1px solid rgba(15, 23, 42, 0.02);
  border-radius: .9rem;
  padding: .5rem .55rem .55rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: .55rem 1.1rem .6rem;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  font-size: .86rem;
  cursor: pointer;
  transition: .14s ease-out;
}

.btn.primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.25);
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  background: rgba(248, 250, 252, 0.6);
}

.btn.ghost:hover {
  background: rgba(248, 250, 252, 1);
}

/* Vita page */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr .7fr;
  gap: 2.4rem;
  align-items: flex-start;
}

.about-meta {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.03);
  border-radius: 1rem;
  padding: 1.05rem 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
}

.about-meta h2 {
  margin-top: 0;
  font-size: 1rem;
}

.about-meta ul {
  list-style: none;
  padding: 0;
  margin: .7rem 0 0;
  display: grid;
  gap: .35rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.025);
  border-radius: 1rem;
  padding: 1rem 1.05rem .95rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.02);
}

.achievement .badge {
  display: inline-block;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 999px;
  padding: .25rem .55rem .2rem;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .4rem;
  color: #0f172a;
}

.tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  list-style: none;
  margin: .7rem 0 0;
  padding: 0;
}

.tags li {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  padding: .2rem .55rem .25rem;
  font-size: .62rem;
  color: rgba(15, 23, 42, 0.75);
}

/* Blog (list) */
.timeline {
  display: grid;
  gap: 1rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.02);
  border-radius: 1.05rem;
  padding: .95rem 1rem;
  display: flex;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.post-card-thumb {
  flex: 0 0 120px;
  max-height: 86px;
  border-radius: .9rem;
  overflow: hidden;
  background: #e2e8f0;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-date {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(15, 23, 42, 0.45);
}

.post-meta {
  font-size: .7rem;
  color: rgba(15, 23, 42, 0.4);
}

/* Article page */
.article-hero {
  width: min(100%, 920px);
  margin: 0 auto 1.45rem;
  overflow: hidden;
  border-radius: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.rich-content {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.015);
  border-radius: 1.1rem;
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.rich-content img {
  border-radius: .9rem;
  margin: 1.15rem 0;
  display: block;
  width: 100%;
  height: auto;
  background: #e2e8f0;
}

.rich-content figure {
  margin: 1.25rem 0;
}

.rich-content figcaption {
  font-size: .72rem;
  color: rgba(15, 23, 42, 0.45);
  margin-top: .4rem;
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.02);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.1rem;
  max-width: 520px;
  display: grid;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

input,
select,
textarea {
  border-radius: .65rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: .55rem .6rem;
  font: inherit;
  background: #fff;
  color: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.32);
  outline-offset: 1px;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.035);
  padding: 2.1rem 0 2.5rem;
  margin-top: 2.4rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-weight: 600;
  margin-bottom: .4rem;
}

.footer-text {
  font-size: .78rem;
  color: rgba(15, 23, 42, 0.48);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .78rem;
  color: rgba(15, 23, 42, 0.5);
}

/* Mobile */
@media (max-width: 990px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    right: 1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: .9rem;
    padding: .4rem;
    flex-direction: column;
    width: min(70vw, 230px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
  }
  .nav.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .post-card {
    flex-direction: column;
  }
  .post-card-thumb {
    width: 100%;
    max-height: 160px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 2.8rem;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .card,
  .about-meta,
  .contact-form {
    border-radius: .85rem;
  }
}

.article-shell {
  max-width: 840px;
}

.article-hero {
  width: 100%;
  margin: 0 0 1.4rem;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  background: #e2e8f0;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.rich-content figure {
  margin: 1.3rem 0;
}

.rich-content figure img {
  border-radius: .9rem;
  display: block;
  width: 100%;
  height: auto;
  background: #e2e8f0;
}

.rich-content figure figcaption {
  font-size: .72rem;
  color: rgba(15, 23, 42, 0.5);
  margin-top: .35rem;
}

.image-inline {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.03);
  border-radius: .9rem;
  padding: .65rem .65rem .7rem;
}

@media (max-width: 720px) {
  .article-shell {
    max-width: 100%;
  }
  .article-hero {
    border-radius: .9rem;
  }
}


/* in style.css anhängen */
.affiliate-box {
  margin: 1.6rem 0;
  background: rgba(15, 118, 110, 0.03);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: .9rem;
  padding: .75rem .8rem .9rem;
}

.affiliate-title {
  font-weight: 600;
  margin: 0 0 .35rem;
}

.affiliate-link {
  display: inline-block;
  background: #0f766e;
  color: #fff;
  border-radius: .65rem;
  padding: .4rem .75rem .45rem;
  font-weight: 500;
  font-size: .85rem;
  text-decoration: none;
  margin-bottom: .5rem;
}

.affiliate-link:hover {
  filter: brightness(1.02);
}

.affiliate-hint {
  font-size: .7rem;
  color: rgba(15, 23, 42, 0.45);
  margin: 0;
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-consent.hidden {
  display: none;
}
.cookie-consent-inner {
  pointer-events: all;
  max-width: 540px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: .9rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  padding: .9rem .95rem;
  display: flex;
  gap: .75rem;
  align-items: center;
}
.cookie-consent-inner p {
  margin: 0;
  font-size: .8rem;
  line-height: 1.4;
}
.cookie-consent-inner a {
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  gap: .5rem;
}
.cookie-consent-actions button {
  border: none;
  background: #e2e8f0;
  border-radius: .5rem;
  padding: .35rem .7rem .4rem;
  cursor: pointer;
  font-size: .78rem;
}
.cookie-consent-actions button.primary {
  background: #0f766e;
  color: #fff;
}
@media (max-width: 540px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-consent-actions {
    width: 100%;
  }
}

/* Quellen / Sources */
.article-sources {
  margin-top: 1.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.article-sources h2 {
  font-size: 1.02rem;
  margin: 0 0 .7rem;
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
  font-size: .9rem;
}

.source-list li {
  color: var(--ink-muted);
}

.source-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.source-list a:hover {
  opacity: .9;
}
