/* Stefan Menk — Personal Brand Site v2
   Farbpalette übernommen von nexus-governance.at (Wiedererkennungswert) */

:root {
  --green: #00d776;
  --green-dark: #00bb67;
  --blue: #0059ce;
  --blue-dark: #00439a;
  --dark: #222221;
  --gray: #666666;
  --light: #f5f5f5;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  --max-width: 1120px;
  --radius: 999px;
  --radius-card: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 1px solid #eee;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }

.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 14px; }
nav.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; }
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .nav-toggle:checked ~ nav.main-nav { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }
  nav.main-nav a { display: block; padding: 10px 0; }
  .header-row { flex-wrap: wrap; }
  .menu-btn { display: block; }
}

/* Hero */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 90px 0 100px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 720px;
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 0 32px;
  opacity: 0.95;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-grid { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 55%; min-width: 0; }
.hero-photo { flex: 0 0 260px; }
.hero-photo .photo-card img {
  border-radius: 18px;
  display: block;
  width: 100%;
  box-shadow: 0 28px 56px rgba(0,0,0,0.35);
}
@media (max-width: 860px) {
  .hero-grid { flex-direction: column; }
  .hero-photo { order: -1; width: 200px; flex: 0 0 auto; }
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--white); color: var(--dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-dark { background: var(--dark); color: var(--white); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--light); }
h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
p.section-lede {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 40px;
}

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: var(--radius-card);
  padding: 28px;
}
.card h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; }
.card p { color: var(--gray); margin: 0; font-size: 0.97rem; }
.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* Referenzen */
.ref-card {
  border-left: 4px solid var(--green);
  padding-left: 20px;
  margin-bottom: 20px;
}
.ref-card .company { font-weight: 800; font-size: 1.05rem; }
.ref-card .meta { color: var(--gray); font-size: 0.85rem; margin-bottom: 8px; }
.ref-card .ref-logo { height: 32px; width: auto; max-width: 140px; object-fit: contain; display: block; margin-bottom: 10px; }

/* Insights / Blog */
.insight-item {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}
.insight-item h3 { margin: 0 0 6px; }
.insight-item .meta { color: var(--gray); font-size: 0.85rem; }
.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: var(--light);
  border-radius: var(--radius-card);
  color: var(--gray);
}

/* Process steps (legacy — replaced by .process-* on Leistungen page) */
.step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.step:last-child { border-bottom: none; }
.step .num {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--blue);
  min-width: 46px;
}

/* Process diagram (Leistungen) */
.process-wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 8px 0 48px;
}
.process-diagram { flex: 1 1 58%; min-width: 0; }
.process-svg { width: 100%; height: auto; display: block; }
.process-photo { flex: 0 0 240px; }
.process-photo img { border-radius: 16px; }
@media (max-width: 860px) {
  .process-wrap { flex-direction: column; }
  .process-photo { flex: 0 0 auto; width: 100%; max-width: 280px; }
}

.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 48px; }
@media (max-width: 860px) { .phase-grid { grid-template-columns: 1fr; } }
.phase-card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-top: 4px solid var(--phase-color, var(--blue));
  border-radius: var(--radius-card);
  padding: 24px;
}
.phase-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.phase-card p { margin: 0; color: var(--gray); font-size: 0.95rem; }

/* CTA banner */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: #ccc; max-width: 520px; margin: 0 auto 28px; }

/* Footer */
footer.site-footer {
  background: var(--light);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray); margin: 0 0 12px; }
.footer-col a, .footer-col p { display: block; color: var(--dark); font-size: 0.95rem; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray);
}
.footer-bottom a { color: var(--gray); }

/* Page header (non-home pages) */
.page-hero {
  background: var(--gradient);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 12px; font-weight: 800; }
.page-hero p { max-width: 600px; opacity: 0.95; font-size: 1.05rem; margin: 0; }
.breadcrumb { font-size: 0.85rem; opacity: 0.85; margin-bottom: 16px; }
.breadcrumb a { color: var(--white); opacity: 0.85; }

.prose { max-width: 700px; }
.prose h2 { margin-top: 40px; }
.prose p { margin: 0 0 18px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.pill {
  background: var(--light);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.noindex-banner {
  background: #fff3cd;
  color: #6b5300;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
}

/* Cookie-Consent-Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-consent-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: #ddd;
  max-width: 640px;
}
.cookie-consent-inner a { color: var(--white); text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-outline-dark {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
@media (max-width: 640px) {
  .cookie-consent-inner { flex-direction: column; align-items: stretch; }
  .cookie-consent-actions { justify-content: flex-end; }
}

/* About page portrait layout */
.about-intro {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.about-intro .about-photo { flex: 0 0 260px; }
.about-intro .about-photo img { border-radius: 16px; }
.about-intro .about-text { flex: 1 1 auto; min-width: 0; }
@media (max-width: 760px) {
  .about-intro { flex-direction: column; }
  .about-intro .about-photo { width: 200px; }
}

/* Article typography */
.article-meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 8px; }
.prose h1.article-title { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 16px; }
.prose .lede-article { font-size: 1.15rem; color: var(--gray); margin-bottom: 32px; }
.prose ul.sources { padding-left: 20px; }
.author-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--light);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-top: 40px;
}
.author-bio img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio p { margin: 0; color: var(--gray); font-size: 0.95rem; }
.author-bio strong { color: var(--dark); }

/* Utility-Klassen (ersetzen frühere Inline-style-Attribute, CSP-konform) */
.legal-page { padding: 56px 24px; }
.prose-820 { max-width: 820px; }
.prose-920 { max-width: 920px; }
.grid-narrow { max-width: 700px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.ml-12 { margin-left: 12px; }
.text-muted-sm { color: var(--gray); font-size: 0.9rem; }
.tag-reset { display: inline-block; background: none; border: none; padding: 0; }
.phase-card--green { --phase-color: #00d776; }
.phase-card--teal { --phase-color: #00a19b; }
.phase-card--blue { --phase-color: #0059ce; }
