/* =========================================================
   TS Malerarbeiten – Landingpage
   Warm, handwerklich, vertrauenswürdig.
   Mobile First.
   ========================================================= */

:root {
  /* Farbpalette – abgeleitet aus dem TS-Malerarbeiten-Logo
     (Marineblau-Teal · Türkis · Limettengrün) */
  --clay:        #0e7390;   /* Primär-Akzent: Logo-Türkis (Buttons, Icons, Links) */
  --clay-dark:   #0a5c74;   /* Hover */
  --clay-soft:   #4fc3d6;   /* helles Türkis für dunkle Flächen */
  --green:       #6f8a16;   /* Logo-Limettengrün (Labels/Eyebrows, kontraststark) */
  --green-soft:  #a8c030;   /* helles Limettengrün für dunkle Flächen */
  --blue:        #143f56;   /* tiefes Marineblau-Teal (dunkle Sektionen, Überschriften-Akzent) */
  --blue-deep:   #0d3346;   /* Footer */
  --cream:       #f6f7f4;   /* klares, sehr leicht warmes Weiß */
  --sand:        #e7ebe4;   /* heller, kühl-neutraler Ton (Sektionswechsel) */
  --sand-dark:   #d8ddd2;
  --charcoal:    #1f2e36;   /* kühles Dunkel (Text) */
  --muted:       #5a6770;   /* gedämpfter Text */
  --line:        #d8ded5;

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 4px 14px rgba(44, 39, 34, 0.08);
  --shadow-md: 0 12px 34px rgba(44, 39, 34, 0.14);
  --shadow-lg: 0 24px 60px rgba(44, 39, 34, 0.22);

  --ff-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-sans:  "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;            /* Sicherung gegen horizontales Verschieben (bricht kein sticky) */
}

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* Lange deutsche Komposita (z. B. "Renovierungsarbeiten") sauber umbrechen
     statt die Seite seitlich aufzudehnen */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

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

a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--ff-serif); font-weight: 600; line-height: 1.15; color: var(--charcoal); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.section { padding: 72px 0; }

@media (min-width: 760px) {
  .section { padding: 104px 0; }
}

/* ---------- Section heads ---------- */
.section-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 12px;
}
.section-eyebrow.light { color: var(--green-soft); }

.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 16px; }

.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }

.section-head.center { text-align: center; margin: 0 auto 52px; max-width: 720px; }
.section-head.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; box-shadow: var(--shadow-md); }

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

.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--cream); color: var(--blue); }

.btn-block { width: 100%; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }

.brand-logo { height: 56px; width: auto; object-fit: contain; display: block; }

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

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 9px 14px;
  color: var(--charcoal);
  font-weight: 500;
  border-radius: 8px;
}
.nav-list a:hover { background: var(--sand); text-decoration: none; color: var(--clay-dark); }

.nav-cta {
  background: var(--clay);
  color: #fff !important;
}
.nav-cta:hover { background: var(--clay-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--charcoal);
  transition: transform .25s ease, opacity .25s ease;
}
.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); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-list.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-list a { padding: 13px 12px; font-size: 1.08rem; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: #2c2722 url("../assets/15.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,63,86,.62) 0%, rgba(13,51,70,.62) 100%),
    linear-gradient(90deg, rgba(8,26,34,.80) 0%, rgba(8,26,34,.32) 60%, rgba(8,26,34,.12) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: 70px; max-width: 760px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: rgba(14, 115, 144, 0.92);
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  max-width: 56ch;
  color: rgba(255,255,255,.94);
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  font-size: 0.98rem;
}

/* =========================================================
   ÜBER MICH
   ========================================================= */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
}

.about-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sand);
  aspect-ratio: 4 / 5;
  max-width: 420px;
}
.portrait-img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 28%; }

.portrait-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 35%, var(--sand) 0%, var(--sand-dark) 100%);
  color: var(--clay);
  text-align: center;
}
.about-portrait.portrait-missing .portrait-placeholder { display: flex; }
.portrait-monogram {
  font-family: var(--ff-serif);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 3px solid var(--clay);
  border-radius: 50%;
}
.portrait-note { font-weight: 600; color: var(--muted); letter-spacing: .04em; }

.portrait-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(20,63,86,.92);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 2;
}

.about-text p { color: #443d35; margin: 0 0 18px; }
.about-text .btn { margin-top: 10px; }

.about-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
}
.about-facts li {
  flex: 1 1 130px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.fact-num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
}
.fact-label { display: block; margin-top: 4px; font-size: 0.9rem; color: var(--muted); }

/* =========================================================
   LEISTUNGEN
   ========================================================= */
.services { background: var(--sand); }

.service-cards {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .service-cards { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.service-card--accent {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.service-card--accent h3 { color: #fff; }
.service-card--accent p { color: rgba(255,255,255,.88); }
.service-card--accent .service-icon { background: rgba(255,255,255,.12); color: #fff; }
.service-card--accent .service-list li { color: rgba(255,255,255,.92); }
.service-card--accent .service-list li::before { color: var(--clay-soft); }

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  color: var(--clay);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.service-icon svg { width: 34px; height: 34px; }

.service-card h3 { font-size: 1.35rem; margin: 0 0 12px; }
.service-card > p { color: var(--muted); margin: 0 0 18px; }

.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: #443d35;
  font-size: 0.98rem;
}
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-weight: 700;
}

/* =========================================================
   REFERENZEN / GALERIE
   ========================================================= */
.references { background: var(--cream); }

.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 680px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--sand);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-item::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(20,63,86,.5);
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }

/* =========================================================
   GUTACHTEN-HIGHLIGHT (Schimmel)
   ========================================================= */
.expert-band { background: var(--blue); color: #fff; }
.expert-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .expert-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.expert-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.expert-text .section-title { color: #fff; }
.expert-text p { color: rgba(255,255,255,.88); margin: 0 0 22px; }

.expert-points { list-style: none; margin: 0 0 28px; padding: 0; }
.expert-points li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-weight: 500;
}
.expert-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px; height: 22px;
  background: var(--clay);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem;
}

/* =========================================================
   ZERTIFIKATE
   ========================================================= */
.certificates { background: var(--sand); }

.cert-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  max-width: 880px;
  margin: 0 auto 40px;
  border-top: 5px solid var(--clay);
}
@media (min-width: 720px) {
  .cert-highlight { flex-direction: row; text-align: left; gap: 36px; padding: 40px 44px; }
}
.cert-seal { width: 150px; height: 150px; object-fit: contain; flex-shrink: 0; }
.cert-highlight-text h3 { font-size: 1.4rem; margin: 0 0 12px; color: var(--blue); }
.cert-highlight-text p { color: var(--muted); margin: 0; }

.cert-logos {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 620px) { .cert-logos { grid-template-columns: repeat(3, 1fr); } }

.cert-logo {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cert-logo img {
  height: 78px;
  width: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}
.cert-logo figcaption { font-size: 0.92rem; color: var(--muted); font-weight: 500; }

.cert-hint {
  text-align: center;
  color: var(--muted);
  margin: 34px auto 0;
  max-width: 60ch;
  font-size: 0.98rem;
}

/* =========================================================
   KONTAKT
   ========================================================= */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
}

.contact-intro p { color: var(--muted); }

.contact-direct { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-direct li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 500;
}
.contact-direct a { color: var(--charcoal); }
.contact-direct a:hover { color: var(--clay-dark); }
.contact-ico {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--sand);
  color: var(--clay);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.15rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 540px) { .contact-form { padding: 38px; } }

.form-row { margin-bottom: 18px; }
.form-grid-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 7px;
  color: var(--charcoal);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--ff-sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(14,115,144,.18);
  background: #fff;
}
.contact-form textarea { resize: vertical; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  color: var(--muted);
  margin-bottom: 22px;
}
.form-consent input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--clay); }

.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok  { color: #2f7a43; }
.form-status.err { color: #b1342c; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.78); }
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  padding-block: 50px;
  align-items: center;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-logo { height: 54px; width: auto; background: #fff; padding: 14px 20px; border-radius: 12px; }
.footer-brand p { margin: 14px 0 0; font-size: 0.95rem; }

.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 720px) { .footer-legal { align-items: flex-end; } }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 20px;
  font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }

/* =========================================================
   MODAL (Impressum / Datenschutz)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(8, 26, 34, 0.6);
  padding: 5vh 18px;
  overflow-y: auto;
}
.modal.open { display: flex; }

.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  width: 100%;
  margin: auto;
  border-top: 5px solid var(--clay);
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 42px; height: 42px;
  font-size: 1.8rem; line-height: 1;
  color: var(--charcoal);
  background: var(--sand);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.modal-close:hover { background: var(--sand-dark); }

.modal-body {
  padding: 38px clamp(22px, 5vw, 48px);
  max-height: 82vh;
  overflow-y: auto;
}
.modal-body:focus { outline: none; }
.modal-body h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 22px;
  color: var(--blue);
}
.modal-body h3 {
  font-size: 1.08rem;
  font-family: var(--ff-sans);
  font-weight: 700;
  margin: 24px 0 6px;
  color: var(--charcoal);
}
.modal-body p { margin: 0 0 12px; color: #3c474d; font-size: 0.98rem; }
.modal-body .legal-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 12, 0.93);
  padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox-figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox-figure img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox-figure figcaption { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 0.98rem; }

.lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  width: 48px; height: 48px;
  font-size: 2rem; line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

@media (max-width: 560px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* =========================================================
   TO-TOP
   ========================================================= */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--clay);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--clay-dark); text-decoration: none; }

/* =========================================================
   Accessibility / Motion
   ========================================================= */
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   Bild-Schutz (Download erschweren)
   Hinweis: reiner Client-Schutz, kein echter Kopierschutz.
   ========================================================= */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* verhindert das iOS-"Bild sichern"-Menü */
  pointer-events: auto;
}
