/* cordell – Stylesheet */

/* Poppins (SIL Open Font License), selbst gehostet unter fonts/ */
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Inter Tight (SIL Open Font License), selbst gehostet unter fonts/ – Überschriften */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --paper: #f4f4f2;
  --ink: #111;
  --accent: #c2006f;
  --muted: #8a8a8a;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --font-body: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--white);
  background: var(--black);
}

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

a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  max-width: none;
}
.logo {
  font-family: var(--font);
  font-size: 2rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 1.05rem;
}
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header .icon-linkedin { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(80px, 14vw, 180px) var(--gutter) clamp(80px, 12vw, 140px);
  max-width: none;
  margin: 0;
}
.hero p {
  max-width: none;
  font-size: 1.1rem;
  font-weight: 300;
}

/* ---------- Leistungen (drei Spalten) ---------- */
.services {
  padding: 0 var(--gutter) clamp(80px, 12vw, 140px);
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.services h2 a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.services .tagline {
  font-size: 1.35rem;
  margin: 0.8em 0 1.2em;
}
@media (min-width: 901px) {
  .services h2 { white-space: nowrap; }
}
.services ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0;
}
.services li {
  margin-bottom: 0.7em;
  font-weight: 300;
  font-size: 0.95rem;
}
.services li::marker {
  font-size: 0.7em;
}

/* ---------- Buch (heller Bereich) ---------- */
.book {
  background: var(--white);
  color: var(--ink);
  padding: clamp(80px, 12vw, 140px) var(--gutter);
}
.book-inner {
  width: 74.7vw;
  margin-left: 14.7vw;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 4vw;
  align-items: stretch;
}
.book h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  white-space: nowrap;
  margin-bottom: 0.6em;
}
.book-cover {
  grid-column: 1;
  grid-row: 2;
  position: relative;
}
.book img.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  margin: 0;
}
.book-text {
  grid-column: 2;
  grid-row: 2;
}
.book h2 a { text-decoration: none; }
.book .lead { font-size: 1.1rem; }
.book h3 { margin-top: 1.5em; font-size: 1.5rem; }
.book ul { padding-left: 1.2em; list-style: disc; margin: 0 0 1em; }
.book li { margin-left: 1em; margin-bottom: 0.15em; }
.btn {
  display: table;
  margin-top: 1.2em;
  padding: 14px 30px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.btn:hover { background: #a00058; }

/* ---------- Projekte ---------- */
.projects {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  background: var(--black);
}
.projects-inner { width: 100%; }
.projects h2 { margin-bottom: 56px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 20px;
}
.project h3 { margin-bottom: 14px; }
.project details { border-top: 1px solid #444; padding: 14px 0; }
.project details:last-child { border-bottom: 1px solid #444; }
.project summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.project summary::-webkit-details-marker { display: none; }
.project summary::after { content: "+"; }
.project details[open] summary::after { content: "–"; }
.project ul { list-style: none; padding: 12px 0 0; margin: 0; font-size: 0.95rem; }
.project li { padding: 4px 0; }

/* ---------- Pattern-Band ---------- */
.pattern {
  position: relative;
  height: clamp(260px, 27vw, 520px);
  overflow: hidden;
  background: var(--black);
}
.pattern-img {
  position: absolute;
  top: -160%;         /* Bild ragt nach allen Seiten weit über das Band, damit nie eine Kante sichtbar wird */
  left: -60%;
  right: -60%;
  height: 400%;
  background-image: url("images/cordell-pattern-weiss.png");
  background-repeat: repeat;
  background-size: auto 80%;    /* MusterGröße wie zuvor (doppelt), trotz größerem Bildbereich */
  background-position: center;
  will-change: transform;
  transform-origin: center;
}

/* ---------- Über Nils ---------- */
.about {
  background: var(--black);
  padding: clamp(80px, 12vw, 140px) var(--gutter);
}
.about-inner {
  width: 74.7vw;
  margin-left: 14.7vw;
  display: grid;
  grid-template-columns: 34.6vw 35.1vw;
  column-gap: 5vw;
  align-items: start;
}
.about h2 { font-size: clamp(2.2rem, 3.4vw, 4rem); }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about p { font-size: 1rem; }

/* ---------- Kontakt-Band ---------- */
.contact {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  text-align: left;
}
.contact-inner { width: 100%; }
.contact p.big {
  font-size: clamp(1.2rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
@media (min-width: 901px) {
  .contact p.big { white-space: nowrap; }   /* Satz bleibt in einer Zeile */
}
.contact a { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  padding: 70px var(--gutter) 40px;
  font-size: 1rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-links a { display: block; font-size: 1.6rem; text-decoration: underline; text-underline-offset: 6px; margin-bottom: 14px; }
.footer-address {
  text-align: right;
  font-style: normal;
  font-weight: 300;
  line-height: 1.6;
}
.footer-address a { text-decoration: underline; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}
.page-content h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1em; }
.page-content h2 { font-size: 1.5rem; margin-top: 2em; }
.page-content h3 { font-size: 1.1rem; margin-top: 1.6em; }
.page-content a { text-decoration: underline; }
.page-content ul { padding-left: 1.2em; }
.page-content .last-updated { color: var(--muted); font-size: 0.9rem; margin-top: 3em; }

/* ---------- Nachhaltigkeit-Seite ---------- */
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.press-hero {
  background: var(--black);
  padding: clamp(60px, 10vw, 120px) var(--gutter) clamp(60px, 9vw, 110px);
}
.press-hero-inner { max-width: var(--max); margin: 0 auto; }
.press-hero h1 { margin: 0; }
.press-body {
  background: var(--white);
  color: var(--ink);
  padding: clamp(70px, 10vw, 130px) var(--gutter);
}
.press-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.press-grid p { font-size: 1.1rem; max-width: 560px; }
.btn-download {
  display: block;
  width: 100%;
  max-width: 443px;
  margin-top: 60px;
  padding: 26px 32px;
  background: var(--black);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.btn-download:hover { background: #333; }
.press-cover {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .press-grid { grid-template-columns: 1fr; }
  .press-cover { order: -1; max-width: 260px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .services,
  .project-grid { grid-template-columns: 1fr; gap: 64px; }
  .book-inner,
  .about-inner { grid-template-columns: 1fr; }
  .about-inner { width: 100%; margin-left: 0; column-gap: 40px; }
  .book-inner { column-gap: 40px; width: 100%; margin-left: 0; }
  .book h2,
  .book-cover,
  .book-text { grid-column: auto; grid-row: auto; }
  .book h2 { white-space: normal; }
  .book-cover { position: static; }
  .book img.cover { position: static; width: 100%; height: auto; }
  .footer-address { text-align: left; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header { padding: 22px var(--gutter); }
  .site-header nav { gap: 18px; font-size: 0.95rem; }
}
