/* ===== Design-Tokens ===== */
:root {
  --bg: #F3EEE2;
  --ink: #1B1B1B;
  --ink-soft: #4A463D;
  --accent: #D9491F;
  --line: #D6CEB8;

  --font-display: 'Archivo Black', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  overflow-x: clip;
}

section { padding: 64px 0; border-bottom: 2px dashed var(--line); }
section:last-of-type { border-bottom: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.15;
}

h1 { font-size: clamp(36px, 6vw, 45px); }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 19px; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink-soft);
  text-transform: uppercase;
  white-space: nowrap;
}
.logo::first-line {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ===== Hero ===== */
.hero { padding: 72px 0; position: relative; }

.price-badge {
  position: absolute;
  top: 40px;
  right: 28px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 15px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  transform: rotate(9deg);
}

.hero-title-wrap { position: relative; max-width: 560px; margin-bottom: 22px; }
.hero-title-ghost {
  font-family: var(--font-display);
  color: var(--accent);
  opacity: 0.5;
  position: absolute;
  top: 3px;
  left: 3px;
  font-size: clamp(36px, 6vw, 45px);
  line-height: 1.15;
  text-transform: uppercase;
}
.hero-title { position: relative; max-width: 620px; }

.hero .lead { max-width: 480px; margin-bottom: 32px; font-size: 16px; }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 16px;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.fact-bar {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px dashed var(--line);
}
.fact-number {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 4px;
}
.fact-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ===== Über mich ===== */
.about-row { display: flex; gap: 28px; align-items: center; }
.avatar-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ===== Leistungen ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== Leistungen: Preis & Erweiterungen ===== */
.pricing-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border: 2px solid var(--ink);
  padding: 28px;
  margin-top: 16px;
}
.pricing-box .fact-number {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 8px;
}
.pricing-box h3 { margin-bottom: 12px; }
.pricing-box > div > p { font-size: 16px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  font-size: 15px;
  padding-left: 32px;
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -3px;
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
  font-family: var(--font-mono);
}

.leistungen-subhead {
  margin-top: 56px;
  margin-bottom: 6px;
}
.leistungen-sub-note {
  font-size: 16px;
  margin-bottom: 20px;
}

.ext-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.ext-row { padding: 18px 0; border-bottom: 2px dashed var(--line); }
.ext-row:nth-last-child(-n+2) { border-bottom: none; }
.ext-row h3 { font-size: 16px; margin-bottom: 6px; }
.ext-row p { font-size: 15px; }

/* ===== Ablauf ===== */
.process-list {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.process-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 2px dashed var(--line);
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  width: 56px;
}
.process-step h3 { margin-bottom: 6px; }
.process-step p { font-size: 15px; max-width: 520px; }

@media (max-width: 480px) {
  .process-step { gap: 14px; }
  .process-num { width: 40px; font-size: 24px; }
}

/* ===== Referenzen ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.ref-card {
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  color: inherit;
}
.ref-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.ref-thumb {
  height: 220px;
  overflow: hidden;
  background: var(--ink);
}
.ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}
.ref-card:hover .ref-thumb img { transform: scale(1.04); }
.ref-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 0 4px;
  border-bottom: none;
}
.ref-desc {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 0 0 18px;
  border-bottom: 2px solid var(--ink);
}

/* ===== Projekt-Overlay ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 27, 27, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg);
  border: 2px solid var(--ink);
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}
.modal-image {
  height: 260px;
  overflow: hidden;
  background: var(--ink);
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.modal-body { padding: 28px 32px 32px; }
.modal-body h2 { margin-bottom: 16px; }
.modal-body p { font-size: 16px; margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

/* ===== Rechtstexte (Impressum etc.) ===== */
.legal-section { padding-top: 56px; }
.legal-title { margin-bottom: 32px; }
.legal-block { margin-bottom: 32px; max-width: 620px; }
.legal-block h2 { margin-bottom: 20px; margin-top: 50px;}
.legal-block h3 { margin-bottom: 10px; margin-top: 30px; line-height:1.3;}
.legal-block p { font-size: 16px; margin-bottom: 10px; margin-top: 10px;}
.legal-block em { color: var(--accent); font-style: normal; }
.legal-block ul { margin: 20px 0 20px 50px; }

/* ===== Kontakt ===== */
.contact-section { text-align: center; }
.contact-section h2 { margin-bottom: 24px;}
.contact-detail {
  font-size: 16px;
  margin-top: 12px;
  color: var(--ink-soft);
}
.contact-detail a { color: var(--accent); }

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 16px;
}

.footer-lead {
  font-size: 16px;
  color: #C9C4B4;
  max-width: 320px;
  margin-bottom: 16px;
}

.footer-link {
  color: var(--accent);
  font-weight: 400;
  font-size: 16px;
}
.footer-link:hover { text-decoration: underline; }

.email-address {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
}

.footer-heading {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col { display: flex; flex-direction: column; }
.footer-col a {
  color: #C9C4B4;
  font-size: 16px;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--bg); }

.footer-contact-label {
  font-size: 16px;
  color: #8E897A;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 2px dashed #4A463D;
  padding: 20px 0;
  text-align: center;
  font-size: 16px;
  color: #8E897A;
}
.footer-bottom a { color: #C9C4B4; }
.footer-bottom a:hover { color: var(--accent); }

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

/* ===== Reveal / Scroll-Animationen ===== */
.reveal, .stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}
.reveal.is-visible, .stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dir-left { transform: translateX(-40px); }
.dir-left.is-visible { transform: translateX(0); }

.dir-right { transform: translateX(40px); }
.dir-right.is-visible { transform: translateX(0); }

.dir-scale { transform: translateY(20px) scale(0.94); }
.dir-scale.is-visible { transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item { opacity: 1; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Back to top ===== */
.back-to-top {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 10px rgba(27, 27, 27, 0.25);
  z-index: 30;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--bg);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .back-to-top { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s ease; }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .price-badge { top: 3px; right: 7px; width: 70px; height: 70px; }
  .logo { font-size: 11px; }
  .logo::first-line { font-size: 15px; }
  nav { padding: 16px 20px; }
}

@media (max-width: 760px) {
  .about-row { flex-direction: column; text-align: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pricing-box { grid-template-columns: 1fr; }
  .ext-list { grid-template-columns: 1fr; }
  .ext-row:nth-last-child(-n+2) { border-bottom: 2px dashed var(--line); }
  .ext-row:last-child { border-bottom: none; }
  .modal-body { padding: 24px 22px 28px; }
}


@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
    padding: 20px 28px;
    gap: 16px;
  }
}
