/* ==========================================================================
   Trautschold Kommunikation – Stylesheet
   Editorial, ruhig, präzise. Warmes Papier, Tinte, ein roter Akzent.
   ========================================================================== */

:root {
  --paper: #f5f1ea;
  --paper-deep: #ebe5da;
  --ink: #16140f;
  --ink-soft: #3d3930;
  --ink-mute: #7a7468;
  --line: rgba(22, 20, 15, 0.14);
  --red: #b52f1c;
  --red-deep: #8d2314;
  --gold: #b8892f;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 10vw, 140px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* feines Papierkorn */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

::selection { background: var(--red); color: var(--paper); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Typografie ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-variation-settings: "opsz" 48; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }
h1 em, h2 em { color: var(--red); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.4rem;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24;
}

.mute { color: var(--ink-mute); }
.small { font-size: 0.9rem; }

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--paper); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--red { border-color: var(--red); color: var(--red); }
.btn--red::after { background: var(--red); }

.btn--fill { background: var(--ink); color: var(--paper); }
.btn--fill::after { background: var(--red); }
.btn--fill:hover { border-color: var(--red); }

.link {
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.25s;
}
.link:hover { color: var(--red); }

/* Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
}
.brand b {
  font-weight: 600;
}
.brand span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  transition: background 0.3s, color 0.3s;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    overflow-y: auto;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px var(--gutter);
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 40;
  }
  .nav a { font-family: var(--font-display); font-size: 2rem; font-weight: 400; }
  .nav .nav-cta { font-family: var(--font-body); font-size: 1rem; margin-top: 12px; }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero ----------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 9vw, 120px) 0 var(--section);
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.hero .lede { max-width: 34ch; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-figure {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  filter: contrast(1.02) saturate(0.9);
  border-radius: 2px;
  position: relative;
  z-index: 2;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--red);
  z-index: 1;
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: -28px 28px 28px -28px;
  background: var(--paper-deep);
  z-index: 0;
}
.hero-caption {
  position: absolute;
  left: 0;
  bottom: -46px;
  z-index: 3;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

.hero-marks {
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-marks div {
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-marks strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; width: min(100%, 360px); margin-top: 40px; }
  .hero-marks { grid-template-columns: 1fr; gap: 18px; }
}

/* Sektionen ------------------------------------------------------------ */

.section { padding: var(--section) 0; position: relative; }
.section--tint { background: var(--paper-deep); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .kicker { color: #e2694f; }
.section--dark .lede { color: rgba(245, 241, 234, 0.78); }
.section--dark .mute { color: rgba(245, 241, 234, 0.55); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head h2 { text-wrap: balance; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 40px 32px 48px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service + .service { border-left: 1px solid var(--line); padding-left: 32px; }
.service .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--red);
  font-style: italic;
  margin-bottom: 44px;
  display: block;
}
.service h3 { margin-bottom: 18px; text-wrap: balance; }
.service p { color: var(--ink-soft); font-size: 1rem; }
.service ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.service li { padding: 8px 0; border-top: 1px dashed var(--line); }
.service li::before { content: "— "; color: var(--red); }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0; border-left: 0; }
}

/* Haltung / Über mich */
.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
}
.about-aside { position: sticky; top: 110px; align-self: start; }
.about-aside .stamp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  color: var(--red);
  border-left: 2px solid var(--red);
  padding-left: 22px;
  font-variation-settings: "opsz" 72, "SOFT" 60;
}
.about-body p { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; }
.about-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: var(--ink);
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about-aside { position: static; }
}

/* Arbeitsweise */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.step {
  background: rgba(245, 241, 234, 0.04);
  border: 1px solid rgba(245, 241, 234, 0.12);
  padding: 34px 28px 38px;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.step:hover { background: rgba(245, 241, 234, 0.08); transform: translateY(-4px); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: #e2694f;
  display: block;
  margin-bottom: 26px;
  line-height: 1;
}
.step h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--paper); }
.step p { font-size: 0.95rem; color: rgba(245, 241, 234, 0.7); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Referenzen */
.refs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .refs { grid-template-columns: 1fr; } }
.ref {
  padding: 36px 28px 40px;
  border: 1px solid var(--line);
  margin: -0.5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  transition: background 0.3s;
}
.ref:hover { background: rgba(255, 255, 255, 0.4); }
.ref strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}
.ref span {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-mute);
}

.quote {
  margin: clamp(48px, 7vw, 96px) auto 0;
  max-width: 820px;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.3;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  text-wrap: balance;
}
.quote blockquote::before { content: "„"; color: var(--red); }
.quote blockquote::after { content: "“"; color: var(--red); }
.quote cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

/* Kontakt-CTA */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.cta h2 { text-wrap: balance; }
.cta-card {
  border: 1px solid var(--line);
  padding: 36px;
  background: rgba(255, 255, 255, 0.35);
}
.cta-card dl { margin: 0; display: grid; gap: 20px; }
.cta-card dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.cta-card dd { margin: 0; font-size: 1.1rem; }
.cta-card dd a:hover { color: var(--red); }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* Kontaktseite --------------------------------------------------------- */

.page-head { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 70px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-bottom: 1.2rem; text-wrap: balance; }
.page-head .lede { max-width: 48ch; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: var(--section);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--red); border-bottom-width: 2px; }
.form-note { font-size: 0.85rem; color: var(--ink-mute); }

/* Rechtstexte ---------------------------------------------------------- */

.legal { padding-bottom: var(--section); }
.legal > * { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin: 2.6rem 0 0.9rem; }
.legal h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; font-family: var(--font-body); font-weight: 600; }
.legal p, .legal li { color: var(--ink-soft); }
.legal address { font-style: normal; line-height: 1.7; }

/* Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(245, 241, 234, 0.75);
  padding: 64px 0 36px;
  position: relative;
  z-index: 1;
}
.site-footer .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 241, 234, 0.14);
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand span { color: rgba(245, 241, 234, 0.5); }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 234, 0.5);
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--paper); }
.site-footer .bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.45);
}
@media (max-width: 700px) { .site-footer .top { grid-template-columns: 1fr; } }

/* Reveal --------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn::after, .step, .nav { transition: none; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; }
