/* puchowski-digital.de — ein Stylesheet für alle Seiten */

/* ---------- Schriften (lokal, kein Google-Server) ---------- */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Grundwerte ---------- */

:root {
  --bg: #0D0D0F;
  --surface: #141418;
  --text: #F3F0EA;
  --text-2: #C9C5BC;
  --text-3: #A8A49C;
  --muted: #8C887F;
  --muted-2: #6F6B64;
  --accent: #E0A244;
  --accent-hover: #F0BE72;

  --line: rgba(243, 240, 234, 0.10);
  --line-card: rgba(243, 240, 234, 0.12);
  --line-frame: rgba(243, 240, 234, 0.16);
  --line-input: rgba(243, 240, 234, 0.18);
  --line-button: rgba(243, 240, 234, 0.28);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;

  --gutter: 100px;
  --content: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Inhalt auf 1240 px begrenzen, auf breiten Bildschirmen zentrieren */
.wrap {
  padding-left: max(var(--gutter), calc((100% - var(--content)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--content)) / 2));
}

/* ---------- Bausteine ---------- */

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

.h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 34px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  border: none;
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost {
  border: 1px solid var(--line-button);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* Platzhalter-Flächen für Bilder, die noch fehlen */
.frame {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-frame);
  background: var(--surface);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-label {
  padding: 0 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* Noch zu ersetzende Angaben */
.ph { color: var(--accent); }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.brand-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav .btn {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
  color: var(--bg);
}
.nav .btn:hover { color: var(--bg); }

.back-link {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(243, 240, 234, 0.22);
  border-radius: 2px;
  cursor: pointer;
}
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

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

.hero {
  display: flex;
  gap: 72px;
  padding-top: 104px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--line);
}
.hero-text {
  flex: 0 1 760px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 5.7vw, 82px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.01em;
}
.hero-lead {
  max-width: 640px;
  font-size: 21px;
  line-height: 1.6;
  color: var(--text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
}
.hero-media {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.hero-media .frame { height: 292px; }
.hero-media .frame-label { font-size: 13px; padding: 0 24px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
}
.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Erfahrungsleiste ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.bar-main {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.bar-number {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}
.bar-text { font-size: 16px; color: var(--text-2); }
.bar-facts {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.bar-divider {
  width: 1px;
  height: 18px;
  background: var(--line-input);
}

/* ---------- Leistungen ---------- */

.services {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.services-intro {
  flex: 0 0 420px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-3);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--line-card);
}
.card-icon { width: 32px; height: 32px; }
.card-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.card-sub { font-size: 15px; line-height: 1.6; color: var(--text-3); }
.dash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.dash-list li {
  display: flex;
  gap: 12px;
}
.dash-list li::before {
  content: "—";
  flex-shrink: 0;
  color: var(--accent);
}
.card-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
}
.card-price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-card);
  font-size: 15px;
  color: var(--text);
}
.price-note { font-size: 14px; color: var(--text-3); }

/* ---------- Ablauf ---------- */

.steps-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--line-input);
}
.step:first-child { border-top-color: var(--accent); }
.step-number {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.2;
  color: var(--muted-2);
}
.step:first-child .step-number { color: var(--accent); }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-3); }

/* ---------- Arbeiten ---------- */

.work-section {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 0;
  list-style: none;
}
.work-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work-item .frame { height: 240px; }
.work-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.work-title { font-size: 17px; font-weight: 600; }
.work-kind { font-size: 14px; color: var(--text-3); }

/* ---------- Über mich ---------- */

.about {
  display: flex;
  gap: 80px;
}
.about .frame {
  flex: 0 0 340px;
  height: 400px;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
  max-width: 720px;
}
.about h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 3.05vw, 44px);
  font-weight: 400;
  line-height: 1.15;
}
.about p { font-size: 17px; line-height: 1.7; color: var(--text-2); }

/* ---------- Kontakt ---------- */

.contact {
  display: flex;
  gap: 80px;
  border-bottom: none;
}
.contact-text {
  flex: 0 1 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-lead { font-size: 17px; line-height: 1.7; color: var(--text-3); }
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  font-size: 16px;
  color: var(--text-2);
}
.contact-lines a { color: var(--text-2); text-decoration: none; }
.contact-lines a:hover { color: var(--accent); }

.form {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line-card);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label { font-size: 14px; color: var(--text-2); }
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-input);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
}
.field input { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field-error input,
.field-error textarea { border-color: #D9725B; }
.error-text { font-size: 13px; color: #E8937F; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn { height: 52px; width: 100%; }

.notice {
  padding: 16px 18px;
  border: 1px solid var(--line-card);
  border-left: 2px solid #D9725B;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ---------- Fußzeile ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a { color: var(--text-3); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Rechtliche Seiten, Bestätigung, Platzhalter ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page main { flex: 1 0 auto; }

.legal {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.legal > * { max-width: 660px; }
.legal-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 4.45vw, 64px);
  font-weight: 400;
  line-height: 1.05;
}
.legal section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--line-card);
}
.legal h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}
.legal p { font-size: 16px; line-height: 1.75; color: var(--text-2); }

/* ---------- Tablet: unter 1100 px ---------- */

@media (max-width: 1099px) {
  :root { --gutter: 48px; }

  .hero {
    flex-direction: column;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 72px;
  }
  .hero-text { flex-basis: auto; }
  .hero-media .frame { height: auto; aspect-ratio: 16 / 9; }

  .bar { flex-direction: column; align-items: flex-start; gap: 14px; }

  .section { padding-top: 80px; padding-bottom: 80px; }

  .services-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services-intro { flex-basis: auto; max-width: 640px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }

  .about { gap: 48px; }
  .about .frame { flex-basis: 280px; height: 340px; }

  .contact { flex-direction: column; gap: 40px; }
  .contact-text { flex-basis: auto; }
}

/* ---------- Mobil: unter 768 px ---------- */

@media (max-width: 767px) {
  :root { --gutter: 24px; }

  .site-header { padding-top: 18px; padding-bottom: 18px; }
  .brand-name { font-size: 20px; }
  .brand-tag { font-size: 9px; }

  /* Menü klappt nur auf, wenn JavaScript läuft — ohne JS bleiben die Links sichtbar */
  .js .menu-toggle { display: flex; }
  .nav { flex-wrap: wrap; gap: 12px 20px; }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .js .nav .btn { margin-top: 20px; height: 52px; font-size: 16px; }

  .eyebrow { font-size: 11px; letter-spacing: 0.24em; }

  .hero { gap: 24px; padding-top: 48px; padding-bottom: 44px; }
  .hero-text { gap: 24px; }
  .hero h1 { line-height: 1.06; letter-spacing: 0; }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 4px; }
  .hero-actions .btn { height: 54px; }
  .hero-media { margin-top: 8px; }
  .hero-media .frame { height: 196px; aspect-ratio: auto; }
  .hero-media .frame-label { font-size: 11px; padding: 0 20px; }
  .hero-note { display: none; }

  .bar { padding-top: 22px; padding-bottom: 22px; }
  .bar-main { gap: 12px; }
  .bar-number { font-size: 36px; }
  .bar-text { font-size: 15px; }
  .bar-long { display: none; }
  .bar-facts { gap: 12px; font-size: 11px; }
  .bar-divider { width: auto; height: auto; background: none; }
  .bar-divider::before { content: "·"; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-head { gap: 14px; }

  .services { gap: 28px; }
  .services-intro { font-size: 15px; line-height: 1.6; }
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .card { gap: 18px; padding: 28px 24px; }
  .card-icon { width: 28px; height: 28px; }
  .card-head { gap: 18px; }
  .card h3 { font-size: 21px; }
  .dash-list { gap: 10px; }
  .dash-list li { gap: 10px; }
  .card-quote { font-size: 18px; }
  .card-price { padding-top: 14px; }
  .price-note { font-size: 13px; line-height: 1.5; }

  .steps-section { gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { gap: 12px; padding-top: 18px; }
  .step-number { font-size: 30px; line-height: 1; }
  .step h3 { font-size: 18px; }

  .work-section { gap: 28px; }
  .work { grid-template-columns: 1fr; gap: 28px; }
  .work-item { gap: 12px; }
  .work-item .frame { height: 196px; }
  .work-title { font-size: 16px; }
  .frame-label { font-size: 11px; padding: 0 16px; }

  .about { flex-direction: column; gap: 22px; }
  .about .frame { flex-basis: auto; height: 300px; }
  .about-text { gap: 22px; padding-top: 0; }
  .about p { font-size: 16px; }

  .contact { gap: 24px; }
  .contact-lead { font-size: 16px; }
  .contact-lines { gap: 8px; padding-top: 0; }
  .form { gap: 18px; padding: 24px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .footer-links { gap: 24px; }

  .legal { gap: 36px; padding-top: 56px; padding-bottom: 64px; }
  .legal section { padding-top: 24px; }
  .legal h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
