/* ==========================================================
   INK & IRON TATTOO — Berlin-Kreuzberg
   Design system: Industrial Brutalism / Berlin Underground
   Palette derived from: oxidized iron, poured concrete,
   black tattoo ink, surgical steel
   ========================================================== */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Custom Properties --- */
:root {
  --ink: hsl(0, 0%, 4%);
  --concrete: hsl(25, 3%, 10%);
  --steel: hsl(25, 3%, 16%);
  --rust: hsl(14, 62%, 40%);
  --rust-glow: hsl(14, 68%, 50%);
  --bone: hsl(35, 14%, 80%);
  --ash: hsl(25, 6%, 46%);
  --smoke: hsl(0, 0%, 14%);
  --charcoal: hsl(0, 0%, 8%);
  --closed: hsl(0, 35%, 42%);

  --font-body: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Mono', 'Consolas', 'Monaco', monospace;
  --font-display: 'Georgia', 'Times New Roman', serif;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 7rem;

  --max-w: 860px;
  --nav-h: 3.25rem;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bone);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Concrete grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
}

::selection {
  background: var(--rust);
  color: var(--bone);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a {
  color: var(--rust);
  text-decoration: none;
  transition: color 0.12s;
}

a:hover {
  color: var(--rust-glow);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: hsla(0, 0%, 4%, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--smoke);
  z-index: 9000;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-m);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}

.nav__logo:hover {
  color: var(--rust);
}

.nav__links {
  display: flex;
  gap: var(--space-m);
}

.nav__links a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.nav__links a:hover {
  color: var(--bone);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-m);
  position: relative;
  overflow: hidden;
}

/* Decorative ampersand watermark */
.hero::before {
  content: '&';
  position: absolute;
  font-size: 52vw;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-display);
  color: hsla(14, 62%, 40%, 0.025);
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--space-l);
}

.hero__title {
  font-size: clamp(2.8rem, 11vw, 7.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 0.85;
  color: var(--bone);
  margin-bottom: var(--space-xs);
}

.hero__amp {
  color: var(--rust);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 0.8em;
}

.hero__sub {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--space-l);
}

.hero__rule {
  width: 50px;
  height: 2px;
  background: var(--rust);
  margin: 0 auto var(--space-l);
}

.hero__notice {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--bone);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-s);
}

.hero__contact {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ash);
}

.hero__contact a {
  color: var(--ash);
}

.hero__contact a:hover {
  color: var(--rust);
}

/* --- Sections --- */
.section {
  padding: var(--space-xl) var(--space-m);
  border-top: 1px solid var(--smoke);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__heading {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--rust);
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--smoke);
}

/* --- Services / Leistungen --- */
.service {
  padding: var(--space-m) 0;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.04);
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-s);
}

.service:last-child {
  border-bottom: none;
}

.service__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--smoke);
  grid-row: 1;
  padding-top: 0.25em;
  transition: color 0.12s;
}

.service:hover .service__num {
  color: var(--rust);
}

.service__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bone);
  grid-row: 1;
  grid-column: 2;
  margin-bottom: 0.4rem;
}

.service__text {
  grid-row: 2;
  grid-column: 2;
  color: var(--ash);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- About / Über uns --- */
.about {
  max-width: 640px;
  border-left: 3px solid var(--rust);
  padding-left: var(--space-m);
}

.about p {
  margin-bottom: var(--space-s);
  font-size: 1rem;
  line-height: 1.85;
}

.about p:last-child {
  margin-bottom: 0;
}

/* --- Hours / Öffnungszeiten --- */
.hours {
  max-width: 380px;
  margin-bottom: var(--space-m);
}

.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.04);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.hours__day {
  color: var(--bone);
  letter-spacing: 0.02em;
}

.hours__time {
  color: var(--ash);
  font-variant-numeric: tabular-nums;
}

.hours__time--closed {
  color: var(--closed);
}

.hours__note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--rust);
  padding-top: var(--space-s);
  border-top: 2px solid var(--rust);
  max-width: 380px;
  letter-spacing: 0.01em;
}

/* --- Contact / Kontakt --- */
.kontakt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-l) var(--space-m);
}

.kontakt__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.4rem;
}

.kontakt__block p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.kontakt__block a {
  color: var(--bone);
}

.kontakt__block a:hover {
  color: var(--rust);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--smoke);
  padding: var(--space-m);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ash);
  letter-spacing: 0.04em;
}

.footer__legal {
  display: flex;
  gap: var(--space-m);
}

.footer__legal a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ash);
  letter-spacing: 0.04em;
}

.footer__legal a:hover {
  color: var(--bone);
}

/* --- Legal pages --- */
.legal {
  padding: calc(var(--nav-h) + var(--space-l)) var(--space-m) var(--space-xl);
}

.legal__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.legal__title {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--bone);
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--smoke);
}

.legal__inner h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--rust);
  margin-top: var(--space-m);
  margin-bottom: var(--space-xs);
}

.legal__inner p,
.legal__inner li {
  margin-bottom: var(--space-xs);
  color: var(--ash);
  font-size: 0.88rem;
  line-height: 1.75;
}

.legal__inner ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-s);
}

.legal__inner ul li::before {
  content: '—';
  color: var(--smoke);
  margin-right: 0.6em;
}

.legal__inner a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--smoke);
  text-underline-offset: 3px;
}

.legal__inner a:hover {
  text-decoration-color: var(--rust);
}

.legal__back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-m);
  text-decoration: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: var(--smoke);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ash);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  :root {
    --space-xl: 4.5rem;
    --space-l: 2.5rem;
  }

  .nav__links {
    gap: 0.8rem;
  }

  .nav__links a {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .hero__title {
    letter-spacing: 0.06em;
  }

  .hero::before {
    font-size: 80vw;
  }

  .service {
    grid-template-columns: 2.2rem 1fr;
  }

  .about {
    padding-left: var(--space-s);
  }

  .kontakt {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-s);
    text-align: center;
  }

  .footer__legal {
    gap: var(--space-s);
  }
}

@media (max-width: 380px) {
  .nav__links {
    gap: 0.5rem;
  }

  .nav__links a {
    font-size: 0.55rem;
  }

  .hero__label {
    font-size: 0.55rem;
  }
}

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

  *, *::before, *::after {
    transition-duration: 0s !important;
  }
}
