/* ==========================================================================
   ThaHomz Design System
   ========================================================================== */

:root {
  /* Colors */
  --bg: #0a0908;
  --bg-elevated: #141210;
  --bg-elevated-2: #1c1916;
  --bg-card: #17140f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(201, 162, 74, 0.35);
  --text: #f4efe6;
  --text-muted: #b6ada0;
  --text-faint: #7d7568;
  --gold: #c9a24a;
  --gold-light: #e3c07c;
  --gold-dark: #8c6f34;
  --gold-glass: rgba(201, 162, 74, 0.1);
  --overlay-strong: linear-gradient(180deg, rgba(10, 9, 8, 0.15) 0%, rgba(10, 9, 8, 0.55) 55%, rgba(10, 9, 8, 0.96) 100%);
  --overlay-soft: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.85) 100%);

  /* Typography */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-w: 1240px;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 20px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --dur-mid: 0.5s;
  --dur-slow: 0.9s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

section[id],
main[id] {
  scroll-margin-top: 140px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
.h1 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h2,
.h2 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 400;
}

.gold-text {
  color: var(--gold);
}

.italic-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__header h2 {
  margin-bottom: 1rem;
}

.section__foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97) translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  color: #171310;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 28px -10px rgba(201, 162, 74, 0.6);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-light) 60%, var(--gold) 100%);
  border-color: var(--gold-light);
  box-shadow: 0 14px 34px -10px rgba(201, 162, 74, 0.75);
  transform: translateY(-2px);
}

.btn--outline {
  background: rgba(244, 239, 230, 0.08);
  color: var(--text);
  border: 1px solid rgba(244, 239, 230, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  z-index: 0;
}

.btn--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease);
  z-index: -1;
}

.btn--outline:hover {
  color: #171310;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--outline:hover::before {
  transform: scaleX(1);
}

.btn--sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Underline link with gold sweep */
.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  padding-bottom: 3px;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease);
}

.link-arrow:hover::after {
  transform: scaleX(1);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: padding var(--dur-mid) var(--ease), background var(--dur-mid) var(--ease), border-color var(--dur-mid) var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  padding: 0.6rem 0;
  background: rgba(10, 9, 8, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  z-index: 110;
}

.brand__logo {
  display: block;
  height: 96px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.2rem);
}

.nav__link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.1rem;
  transition: color var(--dur-fast) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-mid) var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.is-active {
  color: var(--gold);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta {
  display: none;
}

@media (min-width: 1100px) {
  .header__cta {
    display: inline-flex;
  }
}

.burger {
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
}

.burger__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.burger.is-open .burger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.is-open .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-open .burger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 1100px) {
  .burger {
    display: none;
  }
}

.nav {
  display: none;
}

@media (min-width: 1100px) {
  .nav {
    display: flex;
  }
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(9, 8, 7, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), visibility 0s linear var(--dur-mid);
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), visibility 0s;
}

.nav-mobile__link {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--text);
}

.nav-mobile__link:hover,
.nav-mobile__link.is-active {
  color: var(--gold);
}

.nav-mobile__foot {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-mobile__social {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.nav-mobile__social:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-mobile__social svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1100px) {
  .nav-mobile {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--overlay-strong);
}

.hero__content {
  position: relative;
  width: 100%;
  padding: 10rem 0 5rem;
  text-align: center;
  transform: translateX(-16%);
}

@media (max-width: 700px) {
  .hero__content {
    transform: none;
  }
}

.hero__logo {
  display: block;
  width: 100%;
  max-width: clamp(320px, 48vw, 620px);
  height: auto;
  margin: 0 auto 1.4rem;
}

.hero__subline {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.82rem, 1.3vw, 0.98rem);
  color: var(--gold-light);
  max-width: 34ch;
  margin: 0 auto 1.4rem;
}

.hero__text {
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hero__hint {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
}

.hero__meta {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: 2.5rem;
  display: none;
  writing-mode: vertical-rl;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .hero__meta {
    display: flex;
  }
}

/* ==========================================================================
   Intro / Positioning
   ========================================================================== */

.intro__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.intro-cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 2.2rem;
}

.intro-card {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--bg-card), transparent);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.intro-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.intro-card__title {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.intro-card__text {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ==========================================================================
   Galerie preview (full-bleed, homepage)
   ========================================================================== */

.galerie-preview__title {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #000;
  padding: clamp(1.8rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.galerie-preview__title h2 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.galerie-preview__grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .galerie-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1000px) {
  .galerie-preview__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.galerie-preview__item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.galerie-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: grayscale(0.15) brightness(0.9);
}

.galerie-preview__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, 0.6) 100%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
  z-index: 1;
  pointer-events: none;
}

.galerie-preview__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
  z-index: 2;
  pointer-events: none;
}

.galerie-preview__item:hover img {
  transform: scale(1.06);
  filter: grayscale(0) brightness(1);
}

.galerie-preview__item:hover::before,
.galerie-preview__item:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Tattoo-Stile
   ========================================================================== */

.stile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 700px) {
  .stile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stile-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
}

.stile-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.62);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.stile-card:hover img {
  transform: scale(1.07);
  filter: grayscale(0) brightness(0.75);
}

.stile-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.1) 0%, rgba(10, 9, 8, 0.92) 82%);
}

.stile-card__content {
  position: absolute;
  inset: 0;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stile-card__title {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  margin-bottom: 0.4rem;
}

.stile-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 30ch;
}

/* ==========================================================================
   CTA / Anfrage section
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--gold-glass), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  margin-bottom: 1.2rem;
}

.cta__text {
  color: var(--text-muted);
  margin-bottom: 2.4rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta__hint {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.cta__hint code {
  color: var(--gold);
  font-family: var(--font-body);
}

/* Contact form */
.form {
  margin-top: 3rem;
  text-align: left;
  display: grid;
  gap: 1.2rem;
}

.form__fields {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 700px) {
  .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  outline: none;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field--checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
}

.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form__note {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.form__success {
  display: none;
  padding: 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--gold-glass);
  text-align: center;
}

.form__success.is-visible {
  display: block;
}

.form.is-submitted .form__fields,
.form.is-submitted .form__foot {
  display: none;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.2rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.faq-item__q:hover {
  color: var(--gold-light);
}

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform var(--dur-fast) var(--ease);
}

.faq-item__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.faq-item__icon::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-mid) var(--ease);
}

.faq-item__a-inner {
  padding: 0 0.2rem 1.6rem;
  color: var(--text-muted);
  max-width: 62ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  display: inline-block;
  margin-bottom: 0.8rem;
}

.footer__logo {
  display: block;
  height: 110px;
  width: auto;
}

.footer__tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer__heading {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

.footer__list {
  display: grid;
  gap: 0.65rem;
}

.footer__list a,
.footer__list span {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--dur-fast) var(--ease);
}

.footer__list a:hover {
  color: var(--gold);
}

.footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  color: var(--text-muted);
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__social svg {
  width: 17px;
  height: 17px;
}

.footer__bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer__bottom-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer__bottom-links a:hover {
  color: var(--gold);
}

.footer-ng-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: 1.4rem;
  margin-bottom: 0.85rem;
}

.footer-ng-link {
  display: block;
  width: fit-content;
}

.footer-ng-logo {
  display: block;
  height: 42px;
  width: auto;
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease);
}

.footer-ng-link:hover .footer-ng-logo {
  opacity: 1;
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */

.float-wa {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform var(--dur-fast) var(--ease);
}

.float-wa:hover {
  transform: scale(1.08);
}

.float-wa svg {
  width: 26px;
  height: 26px;
  color: #171310;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.placeholder {
  padding: 0.05em 0.4em;
  border-radius: 3px;
  background: var(--gold-glass);
  border: 1px dashed var(--border-strong);
  color: var(--gold-light);
  font-size: 0.94em;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #171310;
  padding: 0.8rem 1.2rem;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Page header (subpages)
   ========================================================================== */

.page-header {
  padding: 10.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
}

.page-header__lead {
  margin-top: 1.1rem;
  max-width: 60ch;
  color: var(--text-muted);
}

/* ==========================================================================
   Portfolio page: filter + masonry
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.filter-btn {
  padding: 0.6rem 1.3rem;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.03);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(244, 239, 230, 0.28);
  transform: translateY(-1px);
}

.filter-btn.is-active {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 65%, var(--gold-dark) 100%);
  border-color: var(--gold);
  color: #171310;
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(201, 162, 74, 0.6);
}

.masonry {
  columns: 2;
  column-gap: clamp(0.6rem, 1.4vw, 1.1rem);
}

@media (min-width: 640px) {
  .masonry {
    columns: 3;
  }
}

@media (min-width: 1000px) {
  .masonry {
    columns: 4;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: clamp(0.6rem, 1.4vw, 1.1rem);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}

.masonry-item.is-hidden {
  display: none;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: grayscale(0.15) brightness(0.92);
}

.masonry-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, 0.6) 100%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
  z-index: 1;
  pointer-events: none;
}

.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
  z-index: 3;
  pointer-events: none;
}

.masonry-item:hover {
  transform: translateY(-3px);
}

.masonry-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0) brightness(1);
}

.masonry-item:hover::before,
.masonry-item:hover::after {
  opacity: 1;
}

.masonry-item__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.masonry-item:hover .masonry-item__tag {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 5, 4, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease), visibility 0s linear var(--dur-mid);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-mid) var(--ease), visibility 0s;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
}

.lightbox__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  max-width: 100%;
}

.lightbox__body img {
  max-height: 74vh;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.lightbox__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.lightbox__nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox__nav--prev {
  left: 1.5rem;
}

.lightbox__nav--next {
  right: 1.5rem;
}

@media (max-width: 700px) {
  .lightbox__nav {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   Stile placeholder card (Cover-up)
   ========================================================================== */

.stile-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--bg-card), var(--bg-card) 10px, var(--bg-elevated-2) 10px, var(--bg-elevated-2) 20px);
  border: 1px dashed var(--border-strong);
}

.stile-card--placeholder .stile-card__content {
  position: static;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.stile-card--placeholder .stile-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.stile-card--placeholder .stile-card__icon svg {
  width: 24px;
  height: 24px;
}

.stile-card--placeholder .stile-card__title {
  margin-bottom: 0.3rem;
}

.stile-card--placeholder .placeholder {
  margin-top: 0.3rem;
}

/* ==========================================================================
   Portrait image / placeholder
   ========================================================================== */

.portrait {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  background: repeating-linear-gradient(135deg, var(--bg-card), var(--bg-card) 10px, var(--bg-elevated-2) 10px, var(--bg-elevated-2) 20px);
  border: 1px dashed var(--border-strong);
}

.portrait--placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.portrait--placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 24ch;
}

/* ==========================================================================
   Two-column split layout (subpages)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split--wide-left {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .split--wide-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  .split__sticky {
    position: sticky;
    top: 6.5rem;
  }
}

/* Contact info list (kontakt.html) */
.contact-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated) 120%);
}

.info-list {
  display: grid;
  gap: 1.4rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-row__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.info-row__icon svg {
  width: 18px;
  height: 18px;
}

.info-row__label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.info-row__value {
  font-size: 1.05rem;
  font-weight: 600;
}

.map-embed {
  margin-top: 1.6rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.callout {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--gold-glass);
}

.callout__icon {
  flex-shrink: 0;
  color: var(--gold);
  width: 24px;
  height: 24px;
}

.callout p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.callout strong {
  color: var(--text);
}

/* ==========================================================================
   Before/After compare slider
   ========================================================================== */

.compare {
  max-width: 760px;
  margin: 0 auto;
}

.compare__frame {
  position: relative;
  aspect-ratio: 6 / 5;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: ew-resize;
  touch-action: pan-y;
  --x: 50%;
}

.compare__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare__after {
  z-index: 1;
}

.compare__before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}

.compare__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem;
  background: repeating-linear-gradient(135deg, var(--bg-card), var(--bg-card) 10px, var(--bg-elevated-2) 10px, var(--bg-elevated-2) 20px);
}

.compare__before .compare__placeholder {
  background: repeating-linear-gradient(135deg, var(--bg-elevated-2), var(--bg-elevated-2) 10px, var(--bg-card) 10px, var(--bg-card) 20px);
}

.compare__after .compare__placeholder {
  background: repeating-linear-gradient(135deg, var(--bg-card), var(--bg-card) 10px, var(--gold-glass) 10px, var(--gold-glass) 20px);
}

.compare__placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.compare__placeholder p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 20ch;
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(201, 162, 74, 0.55);
}

.compare__handle {
  position: absolute;
  top: 50%;
  left: var(--x);
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171310;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  cursor: ew-resize;
}

.compare__handle:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.compare__handle svg {
  width: 22px;
  height: 22px;
}

.compare__tag {
  position: absolute;
  bottom: 1rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(10, 9, 8, 0.75);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}

.compare__tag--before {
  left: 1rem;
}

.compare__tag--after {
  right: 1rem;
}

.compare__caption {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.legal-content ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
