/* ============================================================
   Adversum Custom Website — styles.css
   Brandbook v1: Kodchasan (Display) + Inter (Body)
   Brand: Haltung. Struktur. Wirkung.
   ============================================================ */

/* ---------- Selbst gehostete Fonts (DSGVO-konform, kein externer Request) ---------- */
@font-face {
  font-family: 'Kodchasan';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/kodchasan-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kodchasan';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/kodchasan-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kodchasan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/kodchasan-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kodchasan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/kodchasan-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kodchasan';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/kodchasan-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kodchasan';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/kodchasan-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Brand Tokens ---------- */
:root {
  --black: #0D0E10;
  --graphite: #17191D;
  --line: #2A2D32;
  --anthracite: #575B5E;
  --muted: #A7ABB0;
  --warm: #F7F4EF;
  --copy: #D9D6D1;
  --orange: #F2944E;

  --container: 1180px;
  --gutter: 40px;
  --gutter-mobile: 24px;

  --font-display: 'Kodchasan', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  background: var(--black);
  color: var(--copy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--warm); }
::selection { background: var(--orange); color: var(--black); }

/* ---------- Zentrierter Container ---------- */
.site-header,
.footer,
.hero__content,
.section,
.newsletter,
.article,
.post-list-section {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (max-width: 720px) {
  .site-header,
  .footer,
  .hero__content,
  .section,
  .newsletter,
  .article,
  .post-list-section {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--warm);
}
.logo span { color: var(--orange); }

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--warm); }
.nav a[aria-current="page"] {
  color: var(--warm);
  border-bottom-color: var(--orange);
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .nav { gap: 20px; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  padding-top: 120px;
  padding-bottom: 120px;
  background-color: var(--graphite);
  background-image: linear-gradient(180deg, rgba(13,14,16,0.55), rgba(13,14,16,0.92)), url('/assets/home_hero_desktop.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__content { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 18px 0 24px;
  color: var(--warm);
  max-width: 18ch;
}
.hero h1 span { color: var(--orange); }

.hero__content > p {
  color: var(--copy);
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 32px;
}

.blog-hero {
  background-image: linear-gradient(180deg, rgba(13,14,16,0.4), rgba(13,14,16,0.88)), url('/assets/blog_hero_desktop.jpg');
  min-height: 420px;
  padding-top: 96px;
  padding-bottom: 80px;
}
.blog-hero h1 { max-width: 22ch; }

/* ---------- Labels ---------- */
.label {
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--orange);
  color: var(--black);
  padding: 13px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.button:hover { opacity: 0.9; }

.button--ghost {
  background: transparent;
  color: var(--warm);
  border: 1px solid var(--line);
}
.button--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  opacity: 1;
}

/* ---------- Sections ---------- */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 10px 0 16px;
  color: var(--warm);
}
.section h2 span { color: var(--orange); }
.section h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  margin: 10px 0 12px;
  color: var(--warm);
}
.section p { color: var(--copy); line-height: 1.7; }

/* Two-column-split */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.split .copy p { margin: 0 0 16px; }
.split .copy p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

/* Card-Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards .card {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--graphite);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.cards .card .label { margin-bottom: 14px; }
.cards .card h3 { margin: 0 0 12px; }
.cards .card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Newsletter / Kontakt ---------- */
.newsletter {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  border-top: 1px solid var(--line);
}
.newsletter h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.2;
  margin: 12px 0 16px;
  color: var(--warm);
}
.newsletter h2 span { color: var(--orange); }
.newsletter > div p { color: var(--muted); margin: 0; line-height: 1.65; }

@media (max-width: 900px) {
  .newsletter { grid-template-columns: 1fr; gap: 32px; }
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.signup label {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  gap: 6px;
}
.signup input[type="text"],
.signup input[type="email"],
.signup select {
  background: var(--graphite);
  border: 1px solid var(--line);
  color: var(--warm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  border-radius: 3px;
  text-transform: none;
  letter-spacing: normal;
}
.signup input:focus,
.signup select:focus {
  outline: none;
  border-color: var(--orange);
}

.signup .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.signup .consent input {
  margin-top: 3px;
  accent-color: var(--orange);
}

.signup .button {
  align-self: flex-start;
  margin-top: 8px;
}

.signup .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  min-height: 1.4em;
}

/* ---------- Generic Section Head / Foot ---------- */
.section-head { margin-bottom: 32px; }
.section-foot { margin-top: 32px; }

/* ---------- Text-Links ---------- */
.text-link {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 1px;
  font-size: 14px;
}
.text-link:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}

/* ---------- Post-List (Blog) ---------- */
.post-list-section { padding-top: 16px; padding-bottom: 96px; }
.post-list-section.section { padding-top: 80px; }

.post-list { display: flex; flex-direction: column; }

.post-list__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.post-list__item:first-child { padding-top: 8px; }
.post-list__item:last-child { border-bottom: none; }

.post-list__date {
  color: var(--anthracite);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}
.post-list__day-month { font-size: 12px; margin-bottom: 2px; }
.post-list__year { font-size: 12px; opacity: 0.7; }

.post-list__content { min-width: 0; }

.post-list__label {
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.post-list__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 8px;
  font-size: 22px;
}
.post-list__title a {
  color: var(--warm);
  text-decoration: none;
  background-image: linear-gradient(to right, var(--orange), var(--orange));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}
.post-list__title a:hover { background-size: 100% 1px; }
.post-list__title a span { color: var(--orange); }

.post-list__excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 620px;
}

.post-list__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--orange);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 1px;
}
.post-list__link:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}

.post-list__item--featured { padding-top: 16px; padding-bottom: 44px; }
.post-list__title--featured {
  font-size: 30px;
  line-height: 1.18;
  margin-bottom: 12px;
}
.post-list__item--featured .post-list__excerpt {
  color: var(--copy);
  font-size: 15px;
}

@media (max-width: 640px) {
  .post-list__item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .post-list__date {
    display: flex;
    gap: 6px;
    padding-top: 0;
  }
  .post-list__year::before {
    content: "·\00a0";
    color: var(--anthracite);
    opacity: 0.5;
    margin-left: 4px;
  }
  .post-list__title { font-size: 19px; }
  .post-list__title--featured { font-size: 24px; }
}

/* ---------- Article-Seite ---------- */
.article {
  max-width: 720px;
  padding-top: 80px;
  padding-bottom: 96px;
}

.article__head { margin-bottom: 32px; }
.article__label {
  color: var(--orange);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.article h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  color: var(--warm);
}
.article h1 span { color: var(--orange); }
.article__meta {
  color: var(--anthracite);
  font-family: var(--font-sans);
  font-size: 13px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.article__meta time { color: var(--muted); }

.article__cover { margin: 0 0 40px; }
.article__cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.article__body {
  color: var(--copy);
  font-size: 17px;
  line-height: 1.75;
}
.article__body > * + * { margin-top: 1.4em; }

.article__body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--warm);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}
.article__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  color: var(--warm);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.article__body p { margin: 0; }

.article__body blockquote {
  border-left: 2px solid var(--orange);
  padding-left: 20px;
  margin: 1.8em 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.4;
  color: var(--warm);
}

.article__body ul,
.article__body ol {
  padding-left: 1.2em;
  margin: 0;
}
.article__body li { margin-bottom: 0.5em; }
.article__body li::marker { color: var(--anthracite); }

.article__body a {
  color: var(--warm);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article__body a:hover { color: var(--orange); }

.article__body code {
  background: var(--graphite);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
  font-family: var(--font-mono);
  color: var(--warm);
}

.article__body img {
  margin: 1.8em 0;
  border-radius: 4px;
}

.article__body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

.article__nav {
  margin: 64px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article__related {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article__related .label { margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-top: 0;
}
.footer p { margin: 6px 0; }
.footer .footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--warm);
}
.footer .footer-brand span { color: var(--orange); }
.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.footer a:hover {
  color: var(--warm);
  border-bottom-color: var(--orange);
}

/* ============================================================
   Cookie-Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-width: var(--container);
  margin: 0 auto;
  font-family: var(--font-sans);
}
.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner__text {
  flex: 1;
  color: var(--copy);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.cookie-banner__text a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}
.cookie-banner__text a:hover {
  color: var(--warm);
  border-bottom-color: var(--warm);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner .button {
  padding: 10px 18px;
  font-size: 13px;
}
.cookie-banner .button--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.cookie-banner .button--ghost:hover {
  color: var(--warm);
  border-color: var(--muted);
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}
