/* ==========================================================================
   Kanzler Service – Bodenbeläge & Komplettbäder
   ========================================================================== */

:root {
  --bg: #0e0e10;
  --bg-alt: #151518;
  --surface: #1c1c20;
  --border: #2a2a30;
  --text: #ececee;
  --text-muted: #a3a3ab;
  --accent: #fec107;
  --accent-dark: #d9a300;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #ffd54f;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.6rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s,
    transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #141414;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #000;
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #141414;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(14, 14, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  background: rgba(14, 14, 16, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav .nav-cta {
  padding: 0.5rem 1.4rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

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

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 10, 12, 0.92) 25%,
    rgba(10, 10, 12, 0.55) 60%,
    rgba(10, 10, 12, 0.35)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.hero-kicker {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 34rem;
  color: #d6d6da;
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 6.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.9rem;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 0.55rem;
}

.section-head p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Leistungen / Cards
   -------------------------------------------------------------------------- */

.services-intro {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.services-intro .section-head {
  margin-bottom: 0;
}

.services-img {
  position: relative;
  padding: 1.25rem 0 0 1.25rem;
}

.services-img .accent-box {
  position: absolute;
  inset: 0 auto auto 0;
  width: 65%;
  height: 65%;
  background: var(--accent);
  border-radius: var(--radius);
}

.services-img img {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.25s, border-color 0.25s;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(254, 193, 7, 0.12);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #141414;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  background: rgba(254, 193, 7, 0.15);
}

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

.gallery-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
  align-items: center;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.about-text blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  font-size: 1.15rem;
  font-style: italic;
  color: #d6d6da;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-sign {
  font-weight: 700;
  color: var(--accent) !important;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-list a,
.contact-list span {
  color: var(--text);
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.8rem 1rem;
  font: inherit;
  transition: border-color 0.2s;
}

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

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #e05252;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.field-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.field-check label {
  margin: 0;
  font-weight: 400;
}

.form-status {
  margin-bottom: 1rem;
}

.form-status .alert {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-status .alert-error {
  border: 1px solid #e05252;
  color: #ff8f8f;
  background: rgba(224, 82, 82, 0.08);
}

.form-status .alert-success {
  border: 1px solid #3ecf6f;
  color: #7fe3a4;
  background: rgba(62, 207, 111, 0.08);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer nav a {
  color: var(--text-muted);
}

.site-footer nav a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 8, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  max-width: min(1100px, 90vw);
  max-height: 86vh;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 6px;
}

.lightbox figcaption {
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
  z-index: 301;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: var(--accent);
  color: #141414;
}

.lb-close {
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.6rem;
}

.lb-prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   To top
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #141414;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 90;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  color: #000;
}

/* --------------------------------------------------------------------------
   Reveal-Animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Rechtliche Seiten (Impressum / Datenschutz / Danke)
   -------------------------------------------------------------------------- */

.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 2rem;
}

.legal-page h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 0.55rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin: 2.2rem 0 0.8rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
}

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

.legal-page ul {
  padding-left: 1.4rem;
}

.legal-page address {
  font-style: normal;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .services-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-img {
    order: 2;
    max-width: 560px;
  }

  .about-img {
    order: 2;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(14, 14, 16, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.25rem 6%;
    gap: 1.1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .section {
    padding: 4.5rem 0;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallery {
    grid-auto-rows: 180px;
  }

  .lb-prev {
    left: 0.5rem;
  }

  .lb-next {
    right: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
