/* ---------- self-hosted fonts ---------- */
@font-face{
  font-family:'Special Elite';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('fonts/special-elite-v400.woff2') format('woff2');
}
@font-face{
  font-family:'IBM Plex Sans';
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url('fonts/ibm-plex-sans-400.woff2') format('woff2');
}
@font-face{
  font-family:'IBM Plex Sans';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('fonts/ibm-plex-sans-500.woff2') format('woff2');
}
@font-face{
  font-family:'IBM Plex Sans';
  font-style:normal;
  font-weight:600;
  font-display:swap;
  src:url('fonts/ibm-plex-sans-600.woff2') format('woff2');
}
@font-face{
  font-family:'IBM Plex Sans';
  font-style:italic;
  font-weight:400;
  font-display:swap;
  src:url('fonts/ibm-plex-sans-400-italic.woff2') format('woff2');
}

:root{
  --bg:#ffffff;
  --paper:#eeeeec;
  --ink:#1c1b18;
  --muted:#6d675f;
  --line:#dcdad5;
  --klein:#182a8c;
  --stamp-red:#a32a20;
  --max:1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'IBM Plex Sans', sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.stamp{ font-family:'Special Elite', monospace; letter-spacing:0.02em; }
a{ color:inherit; }
img{ max-width:100%; }

/* ---------- top nav ---------- */
.nav{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px clamp(20px,4vw,56px);
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
  gap:20px;
  flex-wrap:wrap;
}
.nav .logo{ font-family:'Special Elite',monospace; font-size:15px; white-space:nowrap; }
.nav .logo a{ text-decoration:none; }
.nav-links{
  display:flex; gap:26px; list-style:none; margin:0; padding:0;
  font-size:13.5px;
}
.nav-links a{
  text-decoration:none;
  color:var(--muted);
  padding-bottom:3px;
  border-bottom:1px solid transparent;
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--ink); border-bottom-color:var(--stamp-red); }
.nav .count{ font-size:12px; color:var(--muted); }

/* ---------- page header (non-home pages) ---------- */
.page-head{
  max-width:var(--max);
  margin:0 auto;
  padding:64px clamp(20px,4vw,56px) 10px;
}
.page-head .eyebrow{ font-family:'Special Elite',monospace; font-size:12px; color:var(--stamp-red); margin-bottom:14px; }
.page-head h1{
  font-family:'Special Elite',monospace;
  font-weight:400;
  font-size:clamp(26px,4vw,40px);
  line-height:1.3;
  margin:0 0 18px;
  max-width:18ch;
}
.page-head .lede{
  color:var(--muted);
  font-size:18px;
  max-width:60ch;
  margin:0 0 10px;
}

/* ---------- hero (home) ---------- */
.hero{
  padding:56px clamp(20px,4vw,56px) 40px;
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}
.hero-plinth{ position:relative; aspect-ratio:1/1; max-width:460px; }
.hero-plinth img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-title{ position:absolute; left:9%; bottom:11%; right:9%; }
.hero-title .big{
  font-family:'Special Elite',monospace;
  font-size:clamp(30px,5vw,46px);
  line-height:1;
  color:#26251f;
  mix-blend-mode:multiply;
}
.hero-title .big span{ color:#8f897d; }
.hero-title .sub{ margin-top:8px; font-size:12.5px; color:#3a382f; mix-blend-mode:multiply; }
.hero-copy .eyebrow{ font-family:'Special Elite',monospace; font-size:12px; color:var(--stamp-red); margin-bottom:14px; }
.hero-copy h1{
  font-family:'Special Elite',monospace;
  font-weight:400;
  font-size:clamp(22px,2.6vw,30px);
  line-height:1.35;
  margin:0 0 20px;
}
.hero-copy p{ color:var(--muted); max-width:46ch; margin:0 0 12px; }
.hero-copy .cta{ margin-top:24px; display:flex; gap:12px; flex-wrap:wrap; }
.btn{
  font-family:'IBM Plex Sans',sans-serif;
  font-size:13.5px;
  text-decoration:none;
  border:1px solid var(--line);
  padding:11px 18px;
  color:var(--ink);
  display:inline-block;
  background:var(--paper);
}
.btn:hover{ background:#fff; }
.btn.primary{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.btn.primary:hover{ background:#000; }

/* ---------- generic sections ---------- */
.intro{ max-width:720px; margin:20px auto 90px; padding:0 clamp(20px,4vw,56px); }
.intro p{ font-size:18px; margin:0 0 20px; }
.intro .lede{ font-size:21px; line-height:1.5; }
.intro .quote{
  font-family:'Special Elite', monospace;
  font-size:14px; color:var(--muted);
  border-left:2px solid var(--stamp-red);
  padding-left:16px; margin:34px 0;
}
.prose{ max-width:680px; margin:0 auto 60px; padding:0 clamp(20px,4vw,56px); }
.prose p{ font-size:17px; margin:0 0 20px; color:var(--ink); }
.prose h2{
  font-family:'Special Elite',monospace; font-weight:400;
  font-size:20px; margin:44px 0 16px;
}
.prose .quote{
  font-family:'Special Elite', monospace;
  font-size:14px; color:var(--muted);
  border-left:2px solid var(--stamp-red);
  padding-left:16px; margin:30px 0;
}

.section-head{
  max-width:var(--max); margin:0 auto; padding:0 clamp(20px,4vw,56px);
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:28px; flex-wrap:wrap; gap:10px;
}
.section-head h2{ font-family:'Special Elite',monospace; font-weight:400; font-size:22px; margin:0; }
.section-head .hint{ font-size:13px; color:var(--muted); }

/* ---------- gallery grid ---------- */
.grid-shell{ max-width:var(--max); margin:0 auto 100px; padding:0 clamp(20px,4vw,56px); }
.gallery{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:2px;
  background:var(--line); border:1px solid var(--line);
}
.gallery.small{ grid-template-columns:repeat(4,1fr); }
.card{
  background:var(--paper); padding:18px 18px 20px; cursor:pointer;
  display:flex; flex-direction:column; transition:background-color .15s ease;
}
.card:hover{ background:#f5f5f3; }
.card .frame{ aspect-ratio:1/1; overflow:hidden; background:var(--paper); margin-bottom:14px; }
.card .frame img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease; }
.card:hover .frame img{ transform:scale(1.035); }
.card .num{ font-family:'Special Elite',monospace; font-size:11px; color:var(--stamp-red); margin-bottom:6px; }
.card h3{ font-family:'Special Elite',monospace; font-weight:400; font-size:15.5px; line-height:1.3; margin:0 0 8px; }
.card .tag{ font-size:13px; color:var(--muted); font-style:italic; margin:0; }

/* ---------- modal ---------- */
.modal-overlay{
  position:fixed; inset:0; background:rgba(20,18,15,0.72);
  display:none; align-items:center; justify-content:center; z-index:100; padding:24px;
}
.modal-overlay.open{ display:flex; }
.modal{
  background:var(--paper); max-width:920px; width:100%; max-height:88vh;
  overflow-y:auto; display:grid; grid-template-columns:1fr 1fr; position:relative;
}
.modal .m-frame{ background:var(--paper); }
.modal .m-frame img{ width:100%; display:block; }
.modal .m-body{ padding:38px 40px; }
.modal .m-num{ font-family:'Special Elite',monospace; font-size:12px; color:var(--stamp-red); margin-bottom:10px; }
.modal h3{ font-family:'Special Elite',monospace; font-weight:400; font-size:24px; line-height:1.3; margin:0 0 6px; }
.modal .m-tag{ font-style:italic; color:var(--muted); margin:0 0 20px; font-size:15px; }
.modal .m-body-text p{ margin:0 0 14px; font-size:15px; }
.modal .m-meta{ margin-top:22px; padding-top:18px; border-top:1px solid var(--line); font-size:12.5px; color:var(--muted); }
.modal .m-meta div{ margin-bottom:6px; }
.modal .m-meta b{ color:var(--ink); font-weight:600; }
.modal-close{
  position:absolute; top:14px; right:14px; width:34px; height:34px;
  background:var(--paper); border:1px solid var(--line); font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; z-index:5;
}
.modal-nav{ display:flex; gap:10px; margin-top:28px; flex-wrap:wrap; }
.modal-nav button{
  font-family:'IBM Plex Sans',sans-serif; font-size:13px; background:none;
  border:1px solid var(--line); padding:8px 14px; cursor:pointer; color:var(--ink);
}
.modal-nav button:hover{ background:var(--bg); }

/* ---------- nav-card grid (home links to sections) ---------- */
.linkgrid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:2px;
  background:var(--line); border:1px solid var(--line);
}
.linkcard{
  background:var(--paper); padding:34px 28px; text-decoration:none; color:var(--ink);
  display:block; transition:background-color .15s ease;
}
.linkcard:hover{ background:#f5f5f3; }
.linkcard .lc-num{ font-family:'Special Elite',monospace; font-size:11px; color:var(--stamp-red); margin-bottom:14px; }
.linkcard h3{ font-family:'Special Elite',monospace; font-weight:400; font-size:19px; margin:0 0 10px; }
.linkcard p{ font-size:14px; color:var(--muted); margin:0; }

/* ---------- about-me layout ---------- */
.about-grid{
  max-width:var(--max); margin:10px auto 90px; padding:0 clamp(20px,4vw,56px);
  display:grid; grid-template-columns:340px 1fr; gap:56px;
  align-items:start;
}
.about-portrait{ background:var(--paper); }
.about-portrait img{ width:100%; display:block; }
.about-text p{ font-size:17px; margin:0 0 20px; }
.about-text .role{ font-family:'Special Elite',monospace; font-size:14px; color:var(--stamp-red); margin-bottom:18px; }
.credits{ margin-top:30px; padding-top:20px; border-top:1px solid var(--line); font-size:13.5px; color:var(--muted); }
.credits div{ margin-bottom:6px; }

/* ---------- impressum ---------- */
.legal{ max-width:680px; margin:0 auto 100px; padding:0 clamp(20px,4vw,56px); }
.legal h2{ font-family:'Special Elite',monospace; font-weight:400; font-size:18px; margin:38px 0 12px; }
.legal p{ font-size:15px; margin:0 0 14px; color:var(--ink); }
.legal .fillme{ color:var(--stamp-red); }

/* ---------- kontakt ---------- */
.contact-grid{
  max-width:var(--max); margin:10px auto 100px; padding:0 clamp(20px,4vw,56px);
  display:grid; grid-template-columns:440px 1fr; gap:56px;
  align-items:start;
}
.contact-visual{ position:relative; }
.flipcard{
  perspective:1600px;
  aspect-ratio:1/1;
  background:var(--paper);
}
.flip-inner{
  position:relative; width:100%; height:100%;
  transform-style:preserve-3d;
  transition:transform 1s cubic-bezier(.45,.1,.15,1);
}
.flipcard:hover .flip-inner{ transform:rotateY(180deg); }
.flip-face{
  position:absolute; inset:0;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  background:var(--paper);
  overflow:hidden;
}
.flip-face img{ width:100%; height:100%; object-fit:cover; display:block; }
.flip-back{ transform:rotateY(0deg); }
.flip-front{
  transform:rotateY(180deg);
  display:flex; flex-direction:column;
  text-decoration:none; color:var(--ink);
}
.flip-front .ff-frame{ flex:1; overflow:hidden; }
.flip-front .ff-caption{ padding:14px 16px; }
.flip-front .ff-num{ font-family:'Special Elite',monospace; font-size:10.5px; color:var(--stamp-red); margin-bottom:4px; }
.flip-front .ff-title{ font-family:'Special Elite',monospace; font-size:14px; line-height:1.3; }
.badge{
  position:absolute; top:-22px; right:-22px;
  width:104px; height:104px;
  pointer-events:none;
}
.badge svg{ width:100%; height:100%; animation:badgespin 14s linear infinite reverse; }
@keyframes badgespin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
.badge-center{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:8px; height:8px; border-radius:50%; background:var(--stamp-red);
}
.contact-caption{
  margin-top:16px; font-size:12.5px; color:var(--muted); max-width:38ch;
}

.form-group{ margin-bottom:22px; }
.form-group label{
  display:block; font-family:'Special Elite',monospace; font-size:12.5px;
  color:var(--muted); margin-bottom:8px;
}
.form-group input,
.form-group select,
.form-group textarea{
  width:100%; border:1px solid var(--line); background:var(--paper);
  padding:12px 14px; font-family:'IBM Plex Sans',sans-serif; font-size:14.5px;
  color:var(--ink); resize:vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{ outline:1px solid var(--ink); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.submit-row{ display:flex; align-items:center; gap:16px; margin-top:8px; flex-wrap:wrap; }
.submit-row .note{ font-size:12.5px; color:var(--muted); }
.contact-direct{
  margin-top:38px; padding-top:26px; border-top:1px solid var(--line);
  font-size:14px; color:var(--muted);
}
.contact-direct div{ margin-bottom:6px; }
.contact-direct b{ color:var(--ink); font-weight:600; }

/* ---------- stat / pricing grid ---------- */
.stat-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:2px;
  background:var(--line); border:1px solid var(--line);
  margin:30px 0 26px;
}
.stat-card{ background:var(--paper); padding:26px 24px; }
.stat-card .stat-num{
  font-family:'Special Elite',monospace; font-size:26px; color:var(--ink);
  margin-bottom:8px;
}
.stat-card .stat-label{ font-size:13.5px; color:var(--muted); line-height:1.4; }
.buy-note{
  font-size:13.5px; color:var(--muted); margin-top:-8px;
}
.buy-note a{ color:var(--ink); border-bottom:1px solid var(--line); text-decoration:none; }
.buy-note a:hover{ border-bottom-color:var(--ink); }

/* ---------- footer ---------- */
footer{ border-top:1px solid var(--line); padding:44px clamp(20px,4vw,56px) 60px; }
.footer-in{
  max-width:var(--max); margin:0 auto; display:flex; justify-content:space-between;
  gap:30px; flex-wrap:wrap; font-size:13px; color:var(--muted);
}
.footer-in .stamp{ color:var(--ink); font-size:14px; margin-bottom:8px; }
.footer-col{ max-width:280px; }
.footer-col p{ margin:2px 0; }
.footer-col a{ text-decoration:none; }
.footer-col a:hover{ text-decoration:underline; }
.footer-nav{ display:flex; flex-direction:column; gap:6px; }

/* ---------- responsive ---------- */
@media (max-width:860px){
  .hero{ grid-template-columns:1fr; }
  .hero-plinth{ max-width:340px; margin:0 auto; }
  .gallery{ grid-template-columns:repeat(2,1fr); }
  .gallery.small{ grid-template-columns:repeat(2,1fr); }
  .modal{ grid-template-columns:1fr; }
  .linkgrid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .about-portrait{ max-width:280px; }
  .contact-grid{ grid-template-columns:1fr; }
  .contact-visual{ max-width:340px; margin:0 auto; }
  .form-row{ grid-template-columns:1fr; }
}
@media (max-width:520px){
  .gallery{ grid-template-columns:1fr; }
  .nav-links{ gap:16px; font-size:12.5px; }
}
