/* ICOA UG – Stylesheet */
:root {
  --ink: #111111;
  --muted: #6a6862;
  --line: #dcd9d1;
  --bg: #f5f3ee;
  --paper: #ffffff;
  --dark: #121212;
  --dark-muted: #a7a49c;
  --max: 1200px;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 17px;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* Kleine Großbuchstaben-Labels in Monospace */
.label, header nav a, .stat-label, .pf-meta, .badge, .pf-link, footer {
  font-family: var(--mono);
}
.label {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 40px; display: flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* Kopfzeile */
header { position: sticky; top: 0; z-index: 10; background: rgba(245,243,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
header img { height: 50px; width: auto; display: block; }
header nav a {
  text-decoration: none; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; margin-left: 32px; color: var(--muted);
}
header nav a:hover { color: var(--ink); }

/* Startbereich */
.hero { padding: 110px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.hero h1 {
  font-weight: 400; font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02; letter-spacing: -.03em; max-width: 12em;
}
.hero p { margin-top: 32px; font-size: 20px; color: var(--muted); max-width: 34em; }
.hero-mark { height: 340px; width: auto; display: block; margin-right: 16px; }

/* Kennzahlen */
.stats { border-top: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px 40px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(36px, 4vw, 52px); font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.stat-label { margin-top: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Abschnitte */
section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.section-head p { color: var(--muted); max-width: 30em; }

/* Ansatz */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.grid > div { padding: 32px 32px 0 0; }
.grid > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.grid .num { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 40px; }
.grid h3 { font-weight: 500; font-size: 22px; margin-bottom: 12px; letter-spacing: -.01em; }
.grid p { color: var(--muted); }

/* Logo-Leiste */
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--paper); }
.logo-wall a {
  display: flex; align-items: center; justify-content: center; height: 140px; padding: 24px;
  border-right: 1px solid var(--line); transition: background .2s;
}
.logo-wall a:last-child { border-right: 0; }
.logo-wall a:hover { background: var(--bg); }
.logo-wall img { max-width: 150px; max-height: 46px; width: auto; height: auto; filter: brightness(0); opacity: .9; }
.logo-wall img.tall { max-height: 64px; }

/* Portfolio-Liste */
.pf-list { margin-top: 64px; border-top: 1px solid var(--ink); }
.pf {
  display: grid; grid-template-columns: 220px 1fr 260px; gap: 40px;
  padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.pf-logo { height: 52px; display: flex; align-items: center; }
.pf-logo img { max-width: 150px; max-height: 40px; width: auto; height: auto; filter: brightness(0); }
.pf-logo img.tall { max-height: 56px; }
.pf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pf-head h3 { font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.pf-body p { color: #3d3b37; max-width: 40em; }
.badge {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 4px 8px 3px; border-radius: 2px;
}
.pf-meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 2; }
.pf-meta dt { color: #9b988f; }
.pf-meta dd { color: var(--ink); margin-bottom: 8px; }
.pf-link { display: inline-block; margin-top: 4px; font-size: 12px; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid var(--line); }
.pf-link:hover { border-color: var(--ink); }

/* About – dunkler Abschnitt */
.about { background: var(--dark); color: #fff; border-top: 0; }
.about .label { color: var(--dark-muted); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; align-items: start; }
.about-logo { width: 100%; max-width: 420px; height: auto; display: block; }
.about-mark { margin-top: 28px; color: var(--dark-muted); font-size: 15px; max-width: 26em; }
.about h2 { font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 28px; }
.about p { color: #d6d3cb; }
.about p + p { margin-top: 16px; }
.track { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #2e2e2e; }
.track div { padding: 18px 0; border-bottom: 1px solid #2e2e2e; font-size: 15px; }
.track div:nth-child(odd) { padding-right: 16px; }
.track span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-muted); margin-top: 2px; }

/* Kontakt */
.contact { background: var(--bg); }
.contact h2 { font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.contact a.mail {
  display: inline-block; margin-top: 8px; font-size: 18px;
  text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-alt { margin-top: 32px; color: var(--muted); }

/* Kontaktformular */
.form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.form .opt { color: #9a978f; text-transform: none; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 8px;
  font: inherit; font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .note { font-size: 13px; color: var(--muted); margin: 4px 0 22px; text-transform: none; font-family: inherit; }
.form button {
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: #fff; border: 0; border-radius: 2px; padding: 16px 30px; cursor: pointer;
}
.form button:hover { background: #000; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fußzeile */
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; margin-left: 24px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--ink); }

/* Bestätigungsseite */
.message-page { padding: 140px 0; }
.message-page h1 { font-weight: 400; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.02em; }
.message-page p { margin-top: 20px; color: var(--muted); }
.message-page a.back { display: inline-block; margin-top: 32px; border-bottom: 1px solid var(--ink); text-decoration: none; }

/* Rechtstexte */
.legal { padding: 90px 0 110px; }
.legal h1 { font-weight: 400; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.02em; margin-bottom: 40px; }
.legal h2 { font-size: 19px; font-weight: 500; margin: 40px 0 10px; }
.legal p, .legal li { color: #333; max-width: 46em; }
.legal ul { padding-left: 20px; margin-top: 8px; }
.legal p + p { margin-top: 12px; }

@media (max-width: 1000px) {
  .pf { grid-template-columns: 180px 1fr; }
  .pf-meta { grid-column: 2; }
  .hero-mark { height: 240px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall a:nth-child(3) { border-right: 0; }
  .logo-wall a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .logo-wall a:nth-child(4) { border-right: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  header .wrap { height: 72px; }
  header img { height: 36px; }
  header nav a { margin-left: 14px; font-size: 11px; letter-spacing: .06em; }
  header nav a[href="#approach"] { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero p { font-size: 18px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 12px 28px 0; border-bottom: 1px solid var(--line); }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .grid { grid-template-columns: 1fr; }
  .grid > div, .grid > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .grid .num { margin-bottom: 16px; }
  .logo-wall { grid-template-columns: 1fr 1fr; }
  .logo-wall a { height: 110px; border-bottom: 1px solid var(--line); }
  .logo-wall a:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .logo-wall a:nth-child(even) { border-right: 0 !important; }
  .logo-wall a:last-child { grid-column: span 2; border-right: 0 !important; border-bottom: 0; }
  .logo-wall img { max-width: 120px; }
  .pf { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .pf-meta { grid-column: auto; display: flex; flex-wrap: wrap; gap: 0 24px; }
  .pf-meta > div:last-child { flex-basis: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-logo { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  footer .wrap { flex-direction: column; }
  .message-page { padding: 80px 0; }
}
