/*
Theme Name: Svenja Schäfer Creative
Theme URI: https://svenjaschaefercreative.local
Author: Svenja Schäfer
Description: Individuelles Portfolio-Theme für Svenja Schäfer, umgesetzt nach Figma-Entwurf.
Version: 1.0
Text Domain: ssc
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --color-cream: #fbf6f0;
  --color-cream-line: #ece3d6;
  --color-blush: #f7d9db;
  --color-blush-soft: #fbeaea;
  --color-coral: #e3806a;
  --color-coral-dark: #c8664f;
  --color-ink: #2c2622;
  --color-ink-soft: #5c534c;
  --color-white: #ffffff;
  --color-dark: #171512;

  --font-heading: "Fredoka", "Baloo 2", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-card: 0 18px 40px -20px rgba(44, 38, 34, 0.35);
  --shadow-soft: 0 10px 25px -15px rgba(44, 38, 34, 0.25);

  --container-w: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  background-image:
    linear-gradient(var(--color-cream-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-cream-line) 1px, transparent 1px);
  background-size: 34px 34px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-ink);
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 240, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-cream-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container-w);
  margin: 0 auto;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-ink);
}
.site-logo span { color: var(--color-coral); }
.site-nav ul { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover,
.site-nav a.is-active { border-color: var(--color-coral); color: var(--color-coral-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-cream-line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 28px 20px; }
  .site-nav li { border-top: 1px solid var(--color-cream-line); }
  .site-nav a { display: block; padding: 14px 0; }
}

/* ==========================================================================
   Buttons & badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary {
  background: var(--color-coral);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--color-coral-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--color-coral);
  color: var(--color-coral-dark);
}
.btn-outline:hover { background: var(--color-coral); color: var(--color-white); }
.btn-ghost {
  background: var(--color-blush-soft);
  color: var(--color-coral-dark);
}
.btn-ghost:hover { background: var(--color-blush); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blush-soft);
  color: var(--color-coral-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-coral);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--blush {
  background: var(--color-blush);
  background-image: none;
}
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero--centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--color-white);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .85rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--color-ink-soft);
  margin-bottom: 14px;
}
.hero__tagline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  margin-bottom: 30px;
}
.hero__art {
  position: relative;
  justify-self: center;
}
.hero__art .note-card {
  background: var(--color-blush);
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  width: min(420px, 100%);
  box-shadow: var(--shadow-card);
  transform: rotate(-3deg);
  position: relative;
}
.hero__art .note-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px dashed rgba(44,38,34,.15);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}
.hero__art .note-back {
  position: absolute;
  inset: 0;
  background: var(--color-ink-soft);
  border-radius: var(--radius-lg);
  transform: rotate(4deg);
  z-index: -1;
}
.note-card h1 {
  font-size: 3.2rem;
  color: var(--color-ink-soft);
  margin: 0 0 10px;
}
.note-card p { font-weight: 500; color: var(--color-ink); }
.note-card .btn { margin-top: 18px; }
.note-card .rings { position: absolute; top: -14px; left: 40px; right: 40px; display: flex; justify-content: space-between; }
.note-card .rings span { width: 20px; height: 20px; border-radius: 50%; background: var(--color-cream); border: 3px solid var(--color-white); display: block; }

/* ==========================================================================
   About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.about h2 { font-size: 2.4rem; color: var(--color-coral); }
.about__bio p { font-size: 1.05rem; }
.about__photos { position: relative; min-height: 380px; }
.about__photos img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}
.about__photos .photo-a { width: 78%; }
.about__photos .photo-b {
  position: absolute;
  right: 0; bottom: -30px;
  width: 55%;
  border: 6px solid var(--color-cream);
}
.education { margin-top: 40px; }
.education h3 {
  color: var(--color-coral);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1rem;
  margin-bottom: 18px;
}
.education__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.education__grid .years { font-weight: 700; margin-bottom: 4px; }
.education__grid .degree { font-weight: 600; }
.education__grid .school { color: var(--color-ink-soft); font-size: .92rem; }

/* ==========================================================================
   Project teaser (home) & portfolio grid
   ========================================================================== */
.project-teaser__grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-white);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(44,38,34,.45); }
.project-card__frame {
  aspect-ratio: 4/3;
  width: 100%;
  background: var(--color-blush-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-card img { width: 100%; height: 100%; object-fit: contain; }
.project-card figcaption {
  padding: 16px 20px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-ink);
}
.project-teaser__footer { margin-top: 40px; text-align: right; }
.portfolio-grid { margin-top: 20px; }
.portfolio-intro { text-align: center; max-width: 620px; margin: 0 auto 20px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact h2 { color: var(--color-coral); font-size: 2rem; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 14px; font-weight: 600; color: var(--color-coral-dark);
}
.contact-form { display: grid; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: .95rem;
  box-shadow: inset 0 0 0 1px rgba(44,38,34,.08);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { justify-self: start; }
.form-note { font-size: .85rem; margin-top: 4px; }
.form-note.success { color: #3d7a4d; }
.form-note.error { color: #b3453a; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 30px 0 40px;
  text-align: center;
}
.site-footer__social {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 12px;
}
.site-footer__social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}
.site-footer small { color: var(--color-ink-soft); }

/* ==========================================================================
   Project detail page
   ========================================================================== */
.project-hero { padding: 56px 0 30px; }
.project-hero__badge { }
.project-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.project-block {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.project-block.reverse .project-block__media { order: 2; }
.project-block__media img,
.project-block__media video {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: 100%;
}
.project-block__text .quote-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-ink);
  margin-bottom: 4px;
}
.project-block__text .role {
  font-weight: 600;
  color: var(--color-coral-dark);
  margin-bottom: 16px;
}
.project-block__text ul { margin: 0 0 18px; }
.project-block__text li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.project-block__text li::before {
  content: "•";
  color: var(--color-coral);
  position: absolute; left: 0; top: 0;
  font-size: 1.2em; line-height: 1;
}
.project-section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-coral);
  background: var(--color-blush-soft);
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
/* Project page layout: natural image ratios, nothing is cropped */
.project-hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.project-hero-block__media {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.project-hero-block__media img {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.project-hero-block__media.is-wide img { width: 100%; max-height: none; }
.project-hero-block__media.multi img { max-width: calc(50% - 8px); }
.project-hero-block .btn { margin-top: 6px; }

.project-section-title {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  background: var(--color-blush-soft);
  padding: 10px 26px 10px 28px;
  border-radius: 0 6px 6px 0;
  margin: 0 0 28px -28px;
}
.project-section { margin-bottom: 72px; }
.project-section p.lead { max-width: 640px; margin-bottom: 24px; }
.project-section--tint {
  background: var(--color-blush-soft);
  padding: 48px 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.project-section--tint > * { max-width: var(--container-w); margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }

.figure-stack { display: grid; gap: 28px; justify-items: center; margin-bottom: 8px; }
.figure-stack img { max-width: 100%; height: auto; }
.figure-stack img.is-narrow { max-width: 420px; }
.figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.figure-grid img { width: 100%; height: auto; }
.figure-masonry { column-count: 3; column-gap: 20px; }
.figure-masonry img { width: 100%; height: auto; margin-bottom: 20px; break-inside: avoid; }

/* Horizontal carousel */
.carousel { position: relative; margin-bottom: 8px; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-coral) transparent;
}
.carousel__slide { flex: 0 0 auto; scroll-snap-align: start; }
.carousel__slide img { height: var(--strip-h, 380px); width: auto; max-width: none; display: block; }
.carousel--tall { --strip-h: 480px; }
.carousel__btn {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-coral);
  color: var(--color-white);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  z-index: 2;
  transition: background .2s ease;
}
.carousel__btn:hover { background: var(--color-coral-dark); }
.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; }
.carousel__btn[disabled] { opacity: .3; cursor: default; }
@media (max-width: 900px) {
  .project-hero-block { grid-template-columns: 1fr; gap: 28px; }
  .figure-masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .carousel__slide img { height: min(var(--strip-h, 380px), 62vw * 1.4); }
  .carousel__btn { display: none; }
  .figure-grid { grid-template-columns: 1fr; }
  .figure-masonry { column-count: 1; }
  .project-section-title { margin-left: -20px; }
}
.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-soft);
}
.stat-card__value {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-coral);
}
.stat-card__label { font-weight: 600; margin-bottom: 4px; }
.stat-card p:last-child { margin-bottom: 0; color: var(--color-ink-soft); font-size: .92rem; }
.audio-player { background: var(--color-white); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-soft); }
.audio-player audio { width: 100%; }

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 80px;
  flex-wrap: wrap;
}
.project-nav a { min-width: 160px; text-align: center; }

.trust-note {
  font-size: .85rem;
  color: var(--color-ink-soft);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero,
  .about,
  .contact,
  .project-block { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .about__photos { margin-bottom: 60px; }
  .education__grid,
  .project-teaser__grid,
  .portfolio-grid,
  .project-gallery,
  .project-stats { grid-template-columns: 1fr 1fr; }
  .project-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .education__grid,
  .project-teaser__grid,
  .portfolio-grid,
  .project-gallery,
  .project-stats { grid-template-columns: 1fr; }
  .project-block.reverse .project-block__media { order: 0; }
  .site-header__inner { padding: 14px 20px; }
}

.project-hero h1 { color: var(--color-coral); }
.audio-player { max-width: 720px; }

/* Home hero (notebook) */
.hero-stage {
  background: #f6eeea;
  background-image:
    linear-gradient(rgba(44,38,34,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,38,34,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  padding: 90px 20px 100px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.notebook { position: relative; width: min(560px, 100%); }
.notebook__back {
  position: absolute; inset: 0;
  background: #7a7776;
  border-radius: 22px;
  transform: rotate(-6deg) translate(-26px, -10px);
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.5);
}
.notebook__card {
  position: relative;
  background: #f7d9dc;
  border-radius: 22px;
  padding: 64px 40px 48px 84px;
  text-align: center;
  transform: rotate(3deg);
  box-shadow: 0 24px 40px -20px rgba(44,38,34,.5);
}
.notebook__rings {
  position: absolute; left: -12px; top: 34px; bottom: 34px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.notebook__rings i {
  width: 34px; height: 14px; border-radius: 8px;
  background: linear-gradient(#8a8584, #5f5b5a);
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
  position: relative;
}
.notebook__rings i::after {
  content: ""; position: absolute; right: -8px; top: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fbeaea; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15);
}
.notebook__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: .95;
  letter-spacing: .02em;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #5e4f4c 10%, #a3928d 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.notebook__tagline {
  font-family: "Patrick Hand", var(--font-heading), cursive;
  font-size: 1.3rem;
  color: var(--color-ink-soft);
  margin: 0 0 22px;
}
.notebook__btn {
  display: inline-block;
  background: var(--color-coral);
  color: #fff;
  font-family: "Patrick Hand", var(--font-heading), cursive;
  font-size: 1.15rem;
  padding: 8px 34px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 16px -8px rgba(200,102,79,.7);
}
.notebook__btn:hover { background: var(--color-coral-dark); }
@media (max-width: 600px) {
  .hero-stage { padding: 60px 26px 70px; }
  .notebook__card { padding: 44px 22px 36px 52px; }
}

/* Blog article (Zwischenbetrachtung) */
.insta-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
}
.insta-pair img { width: 100%; height: auto; }
.blog-article { max-width: 760px; }
.blog-article p { line-height: 1.75; text-align: justify; hyphens: auto; }
.blog-article h3 {
  color: var(--color-coral);
  font-size: 1.35rem;
  margin: 40px 0 14px;
}
.blog-article blockquote {
  margin: 0 0 16px;
  padding: 14px 20px;
  background: var(--color-blush-soft);
  border-left: 4px solid var(--color-coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
@media (max-width: 600px) { .insta-pair { grid-template-columns: 1fr; } .blog-article p { text-align: left; } }

/* Legal pages (Impressum, Datenschutz) */
.page-title { color: var(--color-coral); }
.page-content { max-width: 760px; }
.page-content h2 { font-size: 1.35rem; color: var(--color-coral); margin: 40px 0 12px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.page-content p { line-height: 1.7; }
.page-content ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--color-coral-dark); text-decoration: underline; }

.site-footer__legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
  font-size: .85rem;
}
.site-footer__legal a { color: var(--color-ink-soft); }
.site-footer__legal a:hover { color: var(--color-coral-dark); }
