/* ============================================================
   aninova — visitenkarte
   ============================================================ */

/* ---------- fonts (local, woff2 variable) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter.woff2') format('woff2-variations'),
       url('/assets/fonts/Inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-ext.woff2') format('woff2-variations'),
       url('/assets/fonts/Inter-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono.woff2') format('woff2-variations'),
       url('/assets/fonts/JetBrainsMono.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --ink:        #14110e;
  --ink-soft:   #5a544c;
  --ink-faint:  #8a8278;
  --paper:      #faf8f4;
  --paper-2:    #f2efe7;
  --rule:       #e5e0d4;
  --accent:     #004a59;
  --accent-2:   #b85a2e;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --container:  1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent); }

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

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

/* ---------- subtle paper grain ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: .55;
  mix-blend-mode: multiply;
  z-index: 1;
}
body > * { position: relative; z-index: 2; }

/* ============================================================
   HOME — business card
   ============================================================ */
.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(1100px 600px at 20% 0%, #f5f1e6 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 100%, #ece6d6 0%, transparent 50%),
    var(--paper-2);
}

.bc-stage {
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 80px) 24px;
}

.business-card {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, #fdfcf8 0%, var(--paper) 100%);
  border: 1px solid var(--rule);
  padding: clamp(28px, 4.4vw, 52px) clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(20px, 2.6vw, 32px);
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 30px 60px -28px rgba(40, 30, 20, .25),
    0 12px 26px -12px rgba(40, 30, 20, .14);
}
@media (min-width: 640px) {
  .business-card { aspect-ratio: 1.7 / 1; }
}

/* corner ticks — print-marks */
.bc-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.bc-corner-tl { top: 14px;    left: 14px;    border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.bc-corner-br { bottom: 14px; right: 14px;   border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }

.bc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand picture,
.brand img {
  height: clamp(28px, 3vw, 36px);
  width: auto;
}
.brand-r {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: -10px;
}

.bc-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 0;
  text-align: right;
  line-height: 1.7;
  white-space: nowrap;
}
.bc-meta span {
  display: inline-block;
  padding-top: 2px;
  border-top: 1px solid var(--rule);
}

.bc-disciplines {
  font-family: var(--sans);
  font-size: clamp(15px, 1.75vw, 19px);
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--ink-soft);
  margin: 0;
  align-self: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;
}
.bc-disciplines > span:not(.bc-dot) { white-space: nowrap; }
.bc-dot {
  color: var(--ink-faint);
  margin: 0 .8em;
  font-weight: 400;
}

.bc-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--rule);
}

.bc-contact {
  display: grid;
  gap: 4px;
  font-family: var(--sans);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
.bc-row {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.bc-row:hover { color: var(--accent); border-bottom-color: var(--accent); }
.bc-icon {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .15em;
  color: var(--ink-faint);
  text-transform: uppercase;
  width: 22px;
  display: inline-block;
}

.bc-address {
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(12px, 1.2vw, 13px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: right;
  letter-spacing: -.005em;
}

@media (max-width: 639px) {
  .business-card {
    padding: 28px 24px;
    gap: 22px;
  }
  .bc-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bc-meta { text-align: left; }
  .bc-disciplines { white-space: normal; flex-wrap: wrap; gap: 4px; }
  .bc-disciplines .bc-dot { margin: 0 .4em; }
  .bc-bottom { grid-template-columns: 1fr; gap: 18px; }
  .bc-address { text-align: left; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 36px 0 32px;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 720px) {
  .foot-inner { grid-template-columns: 1fr auto 1fr; }
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.foot-links a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  transition: color .2s ease, border-color .2s ease;
}
.foot-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot-links a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.foot-links li:not(:last-child)::after {
  content: '·';
  margin: 0 14px;
  color: var(--ink-faint);
}

.foot-badge { display: flex; justify-content: center; }
.foot-badge img { height: 56px; width: auto; opacity: .9; }

.foot-meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink-faint);
  text-transform: uppercase;
  text-align: right;
}
@media (max-width: 719px) {
  .foot-meta { text-align: left; }
  .foot-badge { justify-content: flex-start; }
}

/* ============================================================
   SUBPAGE — agb / impressum / datenschutz
   ============================================================ */
.sub-head {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.sub-head .container { display: grid; gap: 18px; max-width: 880px; }

.sub-back {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.sub-back:hover { color: var(--accent); }
.sub-back::before { content: '←'; font-family: var(--sans); font-size: 14px; }

.sub-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0;
  color: var(--ink);
}
.sub-title .accent { color: var(--accent); font-weight: 600; }

.sub-lead {
  font-family: var(--sans);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

.sub-body { padding: 56px 0 96px; }
.sub-body .container { max-width: 720px; }

.prose {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.prose p,
.prose ul,
.prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.prose a:hover { border-bottom-color: var(--accent); }

.prose h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.012em;
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.prose h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.005em;
  margin: 28px 0 10px;
  color: var(--ink);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  font-weight: 500;
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 3px;
}
.prose .meta-note {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-faint);
  border-left: 2px solid var(--rule);
  padding: 4px 0 4px 18px;
  margin-top: 32px;
}

/* tabs (datenschutz) */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tabs a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 14px 20px 14px 0;
  margin-right: 24px;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s ease, border-color .2s ease;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.warn {
  background: #fef4ec;
  border-left: 3px solid var(--accent-2);
  padding: 18px 22px;
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 15px;
  color: #6b3416;
  line-height: 1.55;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .9s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  html { scroll-behavior: auto; }
}
