/* ==========================================================================
   Eric Pietzka — Portfolio-Website
   Anmutung "Warmes Papier": Creme, warme Serif-Headlines, ein Terrakotta-Akzent
   ========================================================================== */

/* --- Fonts (self-hosted, kein Google-CDN) -------------------------------- */
/* Variable Fonts mit voller Gewichtsachse (wght: 100–900) */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-var.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2-variations');
}

/* --- Design-Tokens --------------------------------------------------------- */

:root {
  --bg: #f4ede1;
  --bg-alt: #efe6d8;
  --text: #2c2420;
  --text-muted: #463d37;
  --text-soft: #5c5048;
  --text-faint: #8a7d72;
  --accent: #c15f3c;
  --accent-dark: #b0532f;
  --border: #e6dccb;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1080px;
}

/* --- Reset ----------------------------------------------------------------- */

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

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

body,
h1, h2, h3, h4,
p, figure {
  margin: 0;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

/* --- Base -------------------------------------------------------------------- */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 22px;
}

p {
  color: var(--text-muted);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent);
}

section {
  padding: 88px 0;
}

section.bg-alt {
  background: var(--bg-alt);
}

.section-intro {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* Skip-Link fuer Tastatur-/Screenreader-Nutzung */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}

.skip-link:focus {
  left: 24px;
  top: 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Navigation ------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 237, 225, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu ul {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
}

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

.hero {
  padding-top: 64px;
  padding-bottom: 96px;
}

.hero-portrait {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.hero-eyebrow {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-title {
  font-size: 58px;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-trust {
  font-size: 14px;
  color: var(--text-faint);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 38px rgba(44, 36, 32, 0.14);
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-photo {
    max-width: 300px;
  }
}

/* --- Cases (Editorial-Zeilen) ----------------------------------------------- */

.case-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.case-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.case-row:nth-child(even) .case-text {
  order: 2;
}

.case-row:nth-child(even) .case-shot {
  order: 1;
}

.case-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.case-title {
  margin-bottom: 16px;
}

.case-line {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.case-line b {
  color: var(--text);
}

.case-note {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-faint);
  margin-top: 14px;
  margin-bottom: 16px;
}

.case-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.case-link:hover {
  color: var(--accent-dark);
}

.case-shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(44, 36, 32, 0.08);
}

.case-shot-bar {
  background: var(--bg-alt);
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}

.case-shot-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbb89a;
  display: block;
}

.case-shot-body {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.case-shot-label {
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
}

.case-shot-img {
  width: 100%;
  display: block;
}

/* --- Gallery ----------------------------------------------------------------- */

.gallery-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 48px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.gallery-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
}

.gallery-desc {
  font-size: 14px;
  color: var(--text-soft);
}

.gallery-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
}

.gallery-link:hover {
  color: var(--accent-dark);
}

.gallery-link-pending {
  color: var(--text-faint);
  font-weight: 500;
  font-style: italic;
}

/* --- About ------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo img {
  border-radius: 12px;
  border: 1px solid var(--border);
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 16px;
}

.about-point {
  color: var(--text);
}

.about-quote {
  margin: 26px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.3;
  color: var(--text);
}

.about-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  font-style: normal;
  color: var(--text-faint);
}

/* --- Process ------------------------------------------------------------------ */

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 12px;
}

.process-step h3 {
  margin-bottom: 10px;
}

.process-step p {
  font-size: 15px;
}

/* --- Services ------------------------------------------------------------------ */

.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.service-row:first-child {
  border-top: 1px solid var(--border);
}

.service-row h3 {
  font-size: 19px;
}

.service-row p {
  font-size: 15px;
  align-self: center;
}

/* --- Wertleiter (Ladder) ----------------------------------------------------- */

.ladder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ladder-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}

.ladder-card-featured {
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(44, 36, 32, 0.08);
}

.ladder-badge {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.ladder-price {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 2px;
  margin-bottom: 18px;
}

.ladder-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.ladder-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.ladder-retainer {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 760px;
}

.ladder-retainer b {
  color: var(--text);
}

@media (max-width: 900px) {
  .ladder-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .ladder-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ --------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  font-size: 15px;
  margin-top: 14px;
}

/* --- Contact ------------------------------------------------------------------- */

.contact-inner {
  max-width: 620px;
}

.contact-inner h2 {
  margin: 12px 0 16px;
}

.contact-inner p {
  margin-bottom: 28px;
  font-size: 16px;
}

.contact-mail {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--accent);
  text-decoration: none;
}

.contact-mail:hover {
  color: var(--accent-dark);
}

.contact-alt {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-soft);
}

.contact-alt a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* --- CTA-Band ---------------------------------------------------------------- */

.cta-band {
  padding: 52px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  margin: 0;
}

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

.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-faint);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a,
.footer-legal a {
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

/* --- Legal-Seiten (Impressum/Datenschutz) ------------------------------------ */

.legal {
  padding: 56px 0 88px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.legal-lead {
  color: var(--text-soft);
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 24px;
  margin: 36px 0 12px;
}

.legal h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  font-size: 16px;
  margin-bottom: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal a {
  color: var(--accent);
}

.legal-draft {
  background: #fbe6de;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 15px;
  color: var(--text);
}

.legal-ph {
  background: #ffe27a;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

.legal-back {
  display: inline-block;
  margin-top: 40px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* --- Sub-Nav (Unterseiten) --------------------------------------------------- */

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.subnav-back {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

.subnav-back:hover {
  color: var(--accent);
}

/* --- 404 --------------------------------------------------------------------- */

.notfound {
  min-height: 68vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.notfound .container {
  max-width: 620px;
}

.nf-code {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 88px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.notfound h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.notfound p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 28px;
}

/* --- Responsive -------------------------------------------------------------------- */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 260px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 20px;
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .case-row {
    grid-template-columns: 1fr;
  }

  .case-row:nth-child(even) .case-text,
  .case-row:nth-child(even) .case-shot {
    order: initial;
  }

  .case-shot {
    order: -1;
  }

  h2 {
    font-size: 28px;
  }
}
