/* ==========================================================================
   Marina Kettschik – Portfolio
   ========================================================================== */

:root {
  --bg: #0E0D0B;
  --surface: #141310;
  --card: #16140F;
  --gold: #C8AA6E;
  --gold-light: #D9BE88;
  --gold-hover: #E2CA97;
  --text: #ECE7DC;
  --text-muted: #A39D90;
  --text-faint: #7D776B;
  --ivory: #E9E4DA;
  --line: rgba(200, 170, 110, 0.18);
  --line-strong: rgba(200, 170, 110, 0.5);

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad-x: 32px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 10px 16px; background: var(--gold); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { border-top: 1px solid var(--line); }
.section--alt { background: var(--surface); }
.section__inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 64px; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}

.section__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.15; color: var(--text);
}

.lead { font-size: 18px; line-height: 1.75; color: var(--text); max-width: 600px; text-wrap: pretty; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 56px;
}
.split__head { display: flex; flex-direction: column; gap: 16px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.tags li {
  padding: 7px 14px; border: 1px solid rgba(200, 170, 110, 0.4);
  font-size: 12px; letter-spacing: 0.04em; color: var(--gold);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.logo { font-family: var(--font-serif); font-size: 22px; letter-spacing: 0.02em; color: var(--text); }
.logo:hover { color: var(--text); }
.nav ul { display: flex; gap: 32px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.nav a:hover { color: var(--gold-hover); }
.nav a.nav__cta { color: var(--gold); }

/* Hero -------------------------------------------------------------------- */
.hero {
  padding-top: 96px; padding-bottom: 112px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 72px; align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 32px; }
.hero__eyebrow { display: flex; align-items: center; gap: 16px; }
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(44px, 6vw, 80px); line-height: 1.04; letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__title em, .contact__title em { color: var(--gold); font-style: italic; }
.hero__intro { max-width: 480px; font-size: 17px; line-height: 1.7; color: var(--text-muted); text-wrap: pretty; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; }

.btn { padding: 15px 28px; font-size: 14px; letter-spacing: 0.04em; transition: background-color .2s, border-color .2s; }
.btn--primary { background: var(--gold); color: var(--bg); font-weight: 600; }
.btn--primary:hover { background: var(--gold-light); color: var(--bg); }
.btn--ghost { border: 1px solid rgba(200, 170, 110, 0.45); color: var(--text); font-weight: 500; }
.btn--ghost:hover { border-color: var(--gold); color: var(--text); }

.hero__portrait { position: relative; justify-self: center; width: 100%; max-width: 440px; margin: 0; }
.hero__portrait::before {
  content: ""; position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid var(--line-strong);
}
.hero__portrait-frame { position: relative; aspect-ratio: 4 / 5; background: var(--ivory); overflow: hidden; }
.hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  mix-blend-mode: multiply;
}

/* Über mich --------------------------------------------------------------- */
.about__inner { gap: 80px; }
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 48px;
}
.principle { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line-strong); padding-top: 32px; }
.principle h3 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.principle p { font-size: 16px; line-height: 1.75; color: var(--text-muted); text-wrap: pretty; }

/* Schwerpunkte ------------------------------------------------------------ */
.platforms { display: flex; flex-direction: column; gap: 24px; }
.platforms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.card {
  position: relative; background: var(--card); border: 1px solid rgba(200, 170, 110, 0.22);
  padding: 48px 40px 44px; display: flex; flex-direction: column; gap: 20px;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(200, 170, 110, 0.55); }
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 56px; height: 2px; background: var(--gold);
}
.card h3 { font-family: var(--font-serif); font-weight: 300; font-size: 44px; line-height: 1; }
.card p { font-size: 16px; line-height: 1.75; color: var(--text-muted); max-width: 460px; text-wrap: pretty; }
.card .tags { margin-top: auto; padding-top: 12px; }
.card--wide { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; }
.card--wide .card__body { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.card--wide p { max-width: none; }
.card--wide .tags { margin-top: 0; padding-top: 0; }

/* Projekte ---------------------------------------------------------------- */
.projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.slider-nav { display: flex; gap: 12px; }
.slider-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: transparent; color: var(--gold); cursor: pointer;
  border: 1px solid rgba(200, 170, 110, 0.4); transition: border-color .2s, color .2s, opacity .2s;
}
.slider-btn:hover { border-color: var(--gold); color: var(--gold-hover); }
.slider-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.slider-btn:disabled { opacity: .3; cursor: default; border-color: rgba(200, 170, 110, 0.4); }

.projects {
  --per-view: 3;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * 32px) / var(--per-view));
  gap: 32px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.projects::-webkit-scrollbar { display: none; }
.projects:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.projects > li { scroll-snap-align: start; }
@media (max-width: 960px) { .projects { --per-view: 2; } }
@media (max-width: 600px) { .projects { --per-view: 1.15; gap: 20px; grid-auto-columns: 85%; } }
.project { display: flex; flex-direction: column; gap: 20px; }
.project__image { aspect-ratio: 4 / 3; border: 1px solid rgba(200, 170, 110, 0.22); overflow: hidden; background: var(--card); margin: 0; }
.project__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.project__body { display: flex; flex-direction: column; gap: 8px; }
.project__platform { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #C8AA6E; }
.project__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.project__industry {
  padding: 4px 10px; border: 1px solid rgba(200, 170, 110, 0.4);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.project h3 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; }
.project__link { color: inherit; border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
.project__link:hover { color: var(--gold-hover); border-color: var(--gold); }
.project p { font-size: 14px; line-height: 1.7; color: var(--text-muted); text-wrap: pretty; }

/* Kundenstimmen ---------------------------------------------------------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px;
}
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--line-strong); padding-top: 32px; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-family: var(--font-serif); font-weight: 300; font-style: italic;
  font-size: 22px; line-height: 1.5; color: var(--text); text-wrap: pretty;
}
.testimonial figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.testimonial__name { font-size: 17px; font-weight: 600; color: var(--gold); }
a.testimonial__name { align-self: flex-start; border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
a.testimonial__name:hover { color: var(--gold-hover); border-color: var(--gold); }
.testimonial__role { font-size: 13px; color: var(--text-muted); }

/* Kontakt ----------------------------------------------------------------- */
.contact__inner { padding-top: 112px; padding-bottom: 112px; align-items: center; text-align: center; gap: 28px; }
.contact__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.1; max-width: 760px; text-wrap: balance;
}
.contact__mail { font-family: var(--font-serif); font-size: 24px; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint);
}
.site-footer ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--text-faint); }
.site-footer a:hover { color: var(--gold-hover); }

/* Rechtstexte (Impressum / Datenschutz) ----------------------------------- */
.legal { padding-top: 96px; padding-bottom: 96px; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.legal h1 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(36px, 5vw, 52px); }
.legal h2 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; margin-top: 16px; }
.legal p, .legal address { font-size: 16px; line-height: 1.75; color: var(--text-muted); font-style: normal; }

@media (max-width: 600px) {
  :root { --pad-x: 20px; }
  .nav ul { gap: 20px; }
  .section__inner, .hero { padding-top: 64px; padding-bottom: 72px; }
  .card { padding: 36px 28px 32px; }
  .card h3 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
