/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Farben */
  --bg:              #FFFDFD;
  --text:            #0A1223;
  --text-sub:        #334155;
  --blue:            #0243CD;
  --blue-bright:     #0051FD;
  --gray-label:      #6D6D72;

  /* Cards */
  --card-bg:         #FBF9F6;
  --card-bg-hover:   #F6F4F1;
  --card-border:     rgba(10,18,35,0.08);
  --card-shadow:     0 4px 4px 0 rgba(15,23,42,0.08);
  --card-radius:     12px;
  --card-padding:    32px;

  /* Chips */
  --chip-filled-bg:  #0051FD;
  --chip-border:     #0243CD;

  /* Learning */
  --learning-bg:     #0051FD;
  --learning-text:   #FBF9F6;

  /* Spacing */
  --gap:             40px;

  /* Layout */
  --max-width:       1112px;
  --font:            Helvetica, Arial, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ─── Typografie ─────────────────────────────────────────────────── */

/* H1: Helvetica Regular 40 #0A1223 */
h1, .h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

/* H2: Helvetica Medium 24 #0A1223 */
h2, .h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

/* Subheadline: Helvetica Regular 32 #334155 */
.subheadline {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-sub);
}

.subheadline.oblique {
  font-style: oblique;
}

/* Body: Helvetica Regular 16 */
p, li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
}

/* ─── Chips ──────────────────────────────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-filled {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--chip-filled-bg);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.chip-outline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chip-border);
  background: transparent;
  border: 1.5px solid var(--chip-border);
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ─── HOME — Hero ────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 var(--gap);
}

.hero-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-label);
  margin-bottom: var(--gap);
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: var(--gap);
}

.hero-photo {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background-image: url('foto.jpg');
  background-size: 120%;
  background-position: center 10%;
  flex-shrink: 0;
}

.hero-name {
  /* H1 */
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
}

/* Tagline = Subheadline */
.hero-tagline {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-sub);
  max-width: 820px;
}

.hero-tagline strong {
  font-weight: 700;
  font-style: oblique;
  color: var(--blue);
}

.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-sub);
  max-width: 820px;
  margin-top: 16px;
}

/* ─── HOME — Projekte ────────────────────────────────────────────── */

.projects {
  padding: var(--gap) 0 80px;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-label);
  margin-bottom: var(--gap);
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--card-padding);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px;
  align-items: start;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  background: var(--card-bg-hover);
  transform: scale(1.012);
  box-shadow: 4px 8px 8px 0 rgba(15,23,42,0.08);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-arrow {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  align-self: flex-start;
  transition: width 0.22s ease, height 0.22s ease;
}

.card:hover .card-arrow {
  width: 31px;
  height: 31px;
}

/* Card title = H2 */
.card-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

.card-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.55;
}

/* ─── Footer ─────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--card-border);
  padding: 24px 0;
  margin-top: var(--gap);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-label);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--blue); }
.footer-email svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-label);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }
.footer-links svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Case Study — Back Link ─────────────────────────────────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: var(--gap) 0 var(--gap);
  transition: color 0.2s;
}
.back-link:hover { color: var(--blue); }

/* ─── Case Study — Header Card ───────────────────────────────────── */

.cs-header-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--card-padding);
  margin-bottom: var(--gap);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-title {
  /* H1 */
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.cs-subtitle {
  /* Subheadline oblique */
  font-size: 32px;
  font-weight: 400;
  font-style: oblique;
  line-height: 1.3;
  color: var(--text-sub);
}

.cs-meta {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 48px;
  justify-content: start;
  padding-top: 8px;
}

.cs-meta-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.cs-meta-block .chips {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px;
}

/* ─── Case Study — Content ───────────────────────────────────────── */

.cs-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.cs-content .cs-section-title {
  border-left: none;
  padding-left: 0;
}

/* Wie ich vorgegangen bin — kein Stroke, aber gleiches Padding */
.cs-content .cs-section:nth-child(2) {
  padding-left: 32px;
  padding-right: 32px;
}

/* Die Ausgangslage — Stroke left */
.cs-content .cs-section:nth-child(1) {
  border-left: 1px solid #0A1223;
  padding-left: 32px;
  padding-right: 32px;
}

/* Was entstanden ist — Stroke right */
.cs-content .cs-section:nth-child(3) {
  border-right: 1px solid #0A1223;
  padding-left: 32px;
  padding-right: 32px;
}

.cs-section-title {
  /* Label style */
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border-left: 2px solid var(--text);
  padding-left: 10px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Process list */
.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.process-text {
  font-size: 16px;
  line-height: 1.65;
  padding-top: 4px;
}

/* ─── Case Study — Learning ──────────────────────────────────────── */

.cs-learning {
  background: var(--learning-bg);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  margin-bottom: var(--gap);
}

.cs-learning-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 400;
  color: var(--learning-text);
  margin-bottom: 12px;
}

.cs-learning-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cs-learning-text {
  font-size: 16px;
  font-style: oblique;
  line-height: 1.65;
  color: var(--learning-text);
}

/* ─── Case Study — Weitere ───────────────────────────────────────── */

.more-studies {
  padding-bottom: 0;
  margin-bottom: var(--gap);
}

.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

/* ─── Legal ──────────────────────────────────────────────────────── */

.legal-page {
  padding: var(--gap) 0 80px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  padding-left: 32px;
  padding-right: 32px;
}

/* h1 ist child 1, daher ist .legal-section 1 = child 2 (even) → border-left */
.legal-section:nth-child(even) {
  border-left: 1px solid #0A1223;
}

.legal-section:nth-child(odd) {
  border-right: 1px solid #0A1223;
}

/* Kein Border-Left vor den Titeln auf Legal-Seiten */
.legal-page .cs-section-title {
  border-left: none;
  padding-left: 0;
}

.legal-page p {
  font-size: 16px;
  line-height: 1.7;
}

.legal-page a { color: var(--blue); text-decoration: underline; }

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .more-grid { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 var(--gap); }
  .hero-name { font-size: 28px; }
  .hero-tagline { font-size: 22px; }
  .cs-title { font-size: 28px; }
  .cs-subtitle { font-size: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
