/* devimode — Shared Design System
   ──────────────────────────────────── */
:root {
  --ink: #0a0908;
  --bg-1: #0e0d0b;
  --bg-2: #141210;
  --surface: #191715;
  --surface-2: #221f1c;
  --border: #2a2622;
  --border-2: #3a3530;
  --copper: #c8924f;
  --copper-light: #e0b277;
  --copper-glow: rgba(200,146,79,0.18);
  --ember: #ff7849;
  --cream: #f3ede4;
  --text: #b8b0a4;
  --text-mute: #7a7268;
  --shadow-warm: 0 30px 80px -20px rgba(200,146,79,0.25);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--copper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; top: -40px; left: 8px;
  background: var(--copper); color: var(--ink);
  padding: 8px 16px; z-index: 9999;
  font-weight: 600; border-radius: 4px;
}
.skip-link:focus { top: 8px; }

body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200,146,79,0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255,120,73,0.05), transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0 0.7  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5; pointer-events: none; z-index: 1; mix-blend-mode: overlay;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,9,8,0.7);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2rem;
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; color: var(--cream); font-weight: 500; }
.brand-mark { width: 26px; height: 26px; border: 1px solid var(--copper); border-radius: 6px; display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark::before { content: ''; position: absolute; inset: 3px; background: var(--copper); border-radius: 3px; opacity: 0.15; transition: opacity 0.4s ease; }
.brand-mark::after { content: '〈/〉'; font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; color: var(--copper); position: relative; z-index: 1; font-weight: 700; letter-spacing: -1px; }
.brand:hover .brand-mark::before { opacity: 0.35; }
.brand-name em { color: var(--copper); font-style: normal; font-weight: 700; }
.brand-status { display: none; align-items: center; gap: 0.4rem; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--copper-light); letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.7rem; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); }
.brand-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 8px var(--copper); animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.8);} }
@media (min-width: 700px) { .brand-status { display: inline-flex; } }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.85rem; color: var(--text); transition: color 0.2s ease; position: relative; }
.nav-links a:hover { color: var(--cream); }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--copper); transition: width 0.25s ease; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--copper); color: var(--ink) !important; padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: 0.82rem !important; transition: all 0.2s ease; }
.nav-cta:hover { background: var(--copper-light); transform: translateY(-1px); box-shadow: 0 8px 24px var(--copper-glow); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 64px 0 0 0; flex-direction: column; gap: 1.5rem; background: rgba(10,9,8,0.97); backdrop-filter: blur(20px); padding: 3rem 2rem; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; font-family: 'Fraunces', serif; }
}

/* PAGE HERO (subpage) */
.page-hero {
  position: relative; z-index: 2;
  padding: clamp(3.5rem, 8vw, 6rem) 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.crumb a { color: var(--copper-light); }
.crumb a:hover { color: var(--copper); }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  color: var(--copper-light); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border: 1px solid var(--border-2); border-radius: 999px;
  background: var(--surface); margin-bottom: 1.5rem;
}
.page-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 10px var(--copper); animation: livePulse 2.4s ease-in-out infinite; }

.page-h1 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--cream); margin-bottom: 1.5rem;
}
.page-h1 em { font-style: italic; color: var(--copper); }
.page-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7;
  color: var(--text); max-width: 640px;
}

/* CONTENT */
.content {
  position: relative; z-index: 2;
  padding: 1rem 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.85;
}
.content h2 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--cream);
  margin: 3rem 0 1rem; letter-spacing: -0.01em;
}
.content h3 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 1.2rem; color: var(--cream);
  margin: 2rem 0 0.6rem;
}
.content p { color: var(--text); margin-bottom: 1rem; }
.content strong { color: var(--cream); font-weight: 600; }
.content a { color: var(--copper-light); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.content a:hover { border-bottom-color: var(--copper); }
.content ul, .content ol { color: var(--text); margin: 0 0 1rem 1.4rem; }
.content li { margin-bottom: 0.4rem; }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.content th, .content td { padding: 0.7rem 0.9rem; border: 1px solid var(--border); text-align: left; }
.content th { background: var(--surface); color: var(--cream); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

/* CARD GRID — for leistungen detail */
.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; margin: 2rem 0 3rem;
}
.detail-card {
  background: var(--bg-2); padding: 2rem 1.6rem;
  position: relative; transition: background 0.3s;
}
.detail-card:hover { background: var(--surface); }
.detail-card-num {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  color: var(--copper); letter-spacing: 0.2em; margin-bottom: 1rem;
}
.detail-card h3 {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.3rem;
  color: var(--cream); margin-bottom: 0.6rem;
}
.detail-card p { color: var(--text); font-size: 0.92rem; line-height: 1.7; }
.detail-card-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
}
.detail-card-tags span {
  color: var(--text-mute); border: 1px solid var(--border-2);
  padding: 0.2rem 0.5rem; border-radius: 4px;
}

/* CONTACT FORM (für /kontakt) */
.contact-form {
  display: grid; gap: 1rem; text-align: left;
  max-width: 640px; margin: 2rem auto 4rem;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 20px; padding: 2.2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
  color: var(--text-mute); letter-spacing: 0.15em; text-transform: uppercase;
}
.field input, .field textarea, .field select {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.85rem 1rem;
  color: var(--cream); font-family: 'Manrope', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--copper); box-shadow: 0 0 0 3px rgba(200,146,79,0.15);
}
.field textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.field-honey { display: none; }
.btn-submit {
  background: var(--copper); color: var(--ink); border: none;
  padding: 1.05rem 2rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  font-family: 'Manrope', sans-serif; transition: all 0.25s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-submit:hover { background: var(--copper-light); transform: translateY(-2px); box-shadow: 0 12px 30px var(--copper-glow); }

/* FOOTER */
.footer {
  position: relative; z-index: 2;
  background: var(--ink); border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand-block { max-width: 360px; }
.footer-brand-tag { margin-top: 1rem; font-size: 0.85rem; color: var(--text); line-height: 1.65; }
.footer-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--copper); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--text); transition: color 0.2s; }
.footer-col a:hover { color: var(--copper-light); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  color: var(--text-mute);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-hero > * { opacity: 0; animation: fadeUp 0.7s forwards; }
.page-hero > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero > *:nth-child(2) { animation-delay: 0.15s; }
.page-hero > *:nth-child(3) { animation-delay: 0.25s; }
.page-hero > *:nth-child(4) { animation-delay: 0.35s; }
