/* ============================================================
   Christian Matschke — Strategische Unternehmenskommunikation
   Hand-built stylesheet (replaces nicepage.css / Blog-/Post-Template.css)
   ============================================================ */

/* ---------- Design tokens ------------------------------------ */
:root {
  --ink:        #15171a;   /* primary text          */
  --ink-soft:   #4a5159;   /* secondary text        */
  --paper:      #ffffff;   /* page background       */
  --mist:       #f1f3f5;   /* light section panels  */
  --slate:      #3c5266;   /* dark feature sections */
  --slate-deep: #2c3e4e;
  --blue:       #228aec;   /* bright accent (lines) */
  --blue-cta:   #1d6fc0;   /* accessible button bg  */
  --blue-link:  #0f5fa8;   /* accessible text link  */
  --lime:       #9be23f;   /* sharp accent          */
  --line:       #e2e5e9;   /* hairline borders      */

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 18px 48px -24px rgba(21, 23, 26, .35);

  --space: clamp(3.5rem, 8vw, 7rem);   /* section rhythm */

  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-head: "Spectral", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;          /* offsets sticky header for #anchors */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-link); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section { padding-block: var(--space); }
.section--mist  { background: var(--mist); }
.section--slate { background: var(--slate); color: #eef1f4; }
.section--slate h2 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-link);
  margin-bottom: .9rem;
}
.section--slate .kicker { color: var(--lime); }

h2.section-title { font-size: clamp(1.95rem, 4vw, 2.85rem); }
.subsection-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-top: 3.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: 8px;
  z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease,
              color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--blue-cta); color: #fff; }
.btn--primary:hover { background: #15579b; transform: translateY(-2px); }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.btn--ghost:hover { background: #fff; color: var(--slate); transform: translateY(-2px); }

.icon { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--ink-soft); font-size: .8rem; font-family: var(--font-body); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.7rem);
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  display: inline-block;
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="true"] {
  color: var(--blue-link);
  border-bottom-color: var(--blue);
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .brand { font-size: 1.05rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 70vh; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem clamp(1.25rem, 5vw, 3rem) 1rem;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { padding: .9rem 0; border-bottom: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  text-align: center;
  padding-block: clamp(3rem, 9vw, 6.5rem);
}
.hero img {
  width: clamp(140px, 26vw, 210px);
  margin-inline: auto;
  margin-bottom: 1.8rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: .35rem;
}
.hero p {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: var(--ink-soft);
  font-family: var(--font-head);
  font-style: italic;
}

/* ============================================================
   Services grid
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.card {
  background: var(--slate-deep);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 2rem;
  transition: transform .18s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--lime); }
.card .num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lime);
}
.card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin: .5rem 0 .7rem;
}
.card p { color: #cdd6de; margin: 0; font-size: 1rem; }

/* ============================================================
   Approach — "Connect the dots" (two-column + accordion)
   ============================================================ */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.approach__intro img { width: 84px; margin-bottom: 1.4rem; }
.approach__intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }

.accordion { display: flex; flex-direction: column; gap: .9rem; }
.accordion details {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-cta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.45rem; font-weight: 700; line-height: 1;
}
.accordion details[open] summary::after { content: "\2013"; }
.accordion .panel {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
}
.accordion .panel p { margin: 1rem 0 .6rem; }
.accordion .panel ul {
  margin: 0; padding-left: 1.1rem;
  columns: 2; column-gap: 1.6rem;
}
.accordion .panel li { margin-bottom: .25rem; }

@media (max-width: 760px) {
  .approach { grid-template-columns: 1fr; }
  .accordion .panel ul { columns: 1; }
}

/* ============================================================
   Portrait
   ============================================================ */
.portrait {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.portrait img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.portrait__text p { font-size: 1.12rem; }
.portrait__text .btn { margin-top: 1.4rem; }

@media (max-width: 720px) {
  .portrait { grid-template-columns: 1fr; }
  .portrait img { max-width: 320px; margin-inline: auto; }
}

/* ---------- Stats ------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1.4rem, 4vw, 2.4rem);
  margin-top: 3rem;
}
.stat { text-align: center; }
.stat__circle {
  width: clamp(140px, 20vw, 180px);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
}
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
}
.stat__label {
  font-size: .98rem;
  color: var(--ink-soft);
  max-width: 15rem;
  margin-inline: auto;
}

/* ============================================================
   Maker — highlighted call-out
   ============================================================ */
.maker { text-align: center; }
.maker__card {
  max-width: 560px;
  margin: 0 auto 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 5vw, 3rem);
}
.maker__card img { width: 96px; margin: 0 auto 1.4rem; }
.maker__card p { color: var(--ink-soft); }

/* ============================================================
   Partners
   ============================================================ */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem;
  align-items: center;
}
.partners a {
  display: grid;
  place-items: center;
  padding: 1.4rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 110px;
  transition: transform .18s ease, box-shadow .2s ease;
}
.partners a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partners img {
  max-height: 64px;
  width: auto;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .25s ease, opacity .25s ease;
}
.partners a:hover img { filter: grayscale(0); opacity: 1; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.contact-grid h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue-link);
  margin-bottom: .4rem;
}
.contact-grid a { font-size: 1.15rem; font-weight: 600; }
.contact-grid address { font-style: normal; color: var(--ink-soft); }

/* ============================================================
   Legal sections (Datenschutz / Impressum)
   ============================================================ */
.legal { max-width: 52rem; }
.legal h3 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
}
.legal h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.6rem 0 .4rem;
}
.legal p { color: var(--ink-soft); }
.legal address { font-style: normal; }
.legal .note { font-size: .9rem; margin-top: 2rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #c7ccd2;
  text-align: center;
  padding-block: 2.8rem;
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.4rem;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}
.site-footer a { color: #c7ccd2; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   Scroll-reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
