/* ============================================================
   Häkelstube Lomi – Stylesheet
   ============================================================ */

/* === WEBFONT (lokal, DSGVO-sauber) =========================
   Schritte zum Aktivieren:
   1. Nunito-Woff2-Dateien (400/700/800) aus
      https://gwfh.mranftl.com/fonts/nunito?subsets=latin
      herunterladen und unter assets/fonts/ ablegen.
   2. Die @font-face-Regeln unten entkommentieren.
   3. Der Fallback-Stack (system-ui etc.) greift,
      solange die Dateien nicht vorhanden sind.

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/nunito-v26-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/nunito-v26-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-v26-latin-800.woff2") format("woff2");
}
*/

/* === DESIGN TOKENS ========================================= */
:root {
  --green:    #1F3A2E;
  --lavender: #B9A7D8;
  --cream:    #F6F1E6;
  --text:     #1B1B1B;
  --muted:    #4A4A4A;
  --border:   rgba(31, 58, 46, 0.18);

  --peach:  #F7B7A3;
  --sky:    #8FD3FF;
  --butter: #FFE58A;
  --mint:   #98E6C1;
  --pink:   #FF9BCB;

  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 14px 30px rgba(31, 58, 46, 0.10);
  --shadow-pop:  0 16px 34px rgba(31, 58, 46, 0.16);
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 10%, rgba(143, 211, 255, 0.15) 0, transparent 24%),
    radial-gradient(circle at 90%  8%, rgba(255, 155, 203, 0.14) 0, transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(152, 230, 193, 0.13) 0, transparent 22%),
    var(--cream);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* === FLORAL FRAME (4 Ecken + Kanten-Akzente) =============== */
.floral-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.floral-frame {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floral-corner {
  position: absolute;
  width: clamp(140px, 22vw, 300px);
  height: clamp(140px, 22vw, 300px);
  filter: drop-shadow(0 6px 14px rgba(31, 58, 46, 0.14));
}

.fc-tl { top: 0;    left: 0; }
.fc-tr { top: 0;    right: 0; transform: scaleX(-1); }
.fc-bl { bottom: 0; left: 0;  transform: scaleY(-1); }
.fc-br { bottom: 0; right: 0; transform: scale(-1, -1); }

.floral-edge {
  position: absolute;
  width: 54px;
  height: 54px;
  display: none;
  filter: drop-shadow(0 3px 6px rgba(31, 58, 46, 0.10));
}

.fe-top    { top: 10px;    left: 50%; transform: translateX(-50%); }
.fe-bottom { bottom: 10px; left: 50%; transform: translateX(-50%); }
.fe-left   { left: 10px;   top: 50%;  transform: translateY(-50%); }
.fe-right  { right: 10px;  top: 50%;  transform: translateY(-50%); }

@media (min-width: 900px) {
  .floral-edge { display: block; }
}

@media (max-width: 479px) {
  .floral-corner { opacity: 0.88; }
}

/* === PAGE SHELL ============================================= */
.page-shell {
  position: relative;
  z-index: 1;
  /* Rahmen-Abstand + iPhone Safe Area */
  padding: clamp(18px, 3vw, 36px);
  padding-top:    max(clamp(18px, 3vw, 36px), env(safe-area-inset-top,    0px));
  padding-right:  max(clamp(18px, 3vw, 36px), env(safe-area-inset-right,  0px));
  padding-bottom: max(clamp(18px, 3vw, 36px), env(safe-area-inset-bottom, 0px));
  padding-left:   max(clamp(18px, 3vw, 36px), env(safe-area-inset-left,   0px));
}

/* === SKIP LINK + SR-ONLY (WP-kompatibel) =================== */
.skip-link,
.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  clip-path: inset(50%);
}

.skip-link:focus-visible,
.screen-reader-text:focus,
.screen-reader-text:focus-visible {
  left: 1rem;
  top: 1rem;
  clip-path: none;
}

/* === FOCUS STYLES =========================================== */
:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 6px;
}

/* === LAYOUT ================================================= */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* === SECTIONS =============================================== */
.section {
  position: relative;
  padding: 5rem 0;
  scroll-margin-top: 88px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 #fff;
}

.section-intro {
  color: var(--muted);
  margin: 0.8rem 0 2rem;
  max-width: 70ch;
}

/* Stich-Trenner */
.stitch-separator {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto 2rem;
  border-top: 2px dashed rgba(31, 58, 46, 0.22);
  position: relative;
}

.stitch-separator span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -60%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 800;
}

/* Dekorative Punkte in freien Sectionbereichen (niemals über Text) */
.section-doodles::before,
.section-doodles::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
}

.section-doodles::before {
  inset: 1rem auto auto 6%;
  width: 100px;
  height: 100px;
  background:
    radial-gradient(circle at 20px 20px, var(--pink)   3px, transparent 3px),
    radial-gradient(circle at 60px 34px, var(--sky)    3px, transparent 3px),
    radial-gradient(circle at 28px 68px, var(--mint)   4px, transparent 4px);
}

.section-doodles::after {
  inset: auto 6% 1rem auto;
  width: 110px;
  height: 110px;
  background:
    radial-gradient(circle at 22px 22px, var(--butter)   4px, transparent 4px),
    radial-gradient(circle at 70px 50px, var(--pink)     3px, transparent 3px),
    radial-gradient(circle at 38px 84px, var(--lavender) 4px, transparent 4px);
}

/* === CARD ================================================== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* === HEADER ================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 240;
  background: rgba(246, 241, 230, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner > .main-nav,
.header-inner > .menu-toggle,
.header-inner > .legal-back {
  align-self: center;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.brand--image,
.brand--logo {
  line-height: 0;
  padding: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.brand--image img,
.brand--logo .custom-logo {
  display: block;
  width: auto;
  height: 72px;
  max-height: 100%;
}

@media (min-width: 720px) {
  .brand--image img,
  .brand--logo .custom-logo {
    height: 84px;
  }
}

.brand--logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  height: 100%;
}

/* === HAMBURGER BUTTON ====================================== */
.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* X-Animation wenn offen */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* === NAVIGATION ============================================ */
.main-nav {
  position: fixed;
  inset: 72px 0 auto 0;
  z-index: 239;
  background: rgba(246, 241, 230, 0.97);
  border-bottom: 1px solid var(--border);
  transform: translateY(-120%);
  transition: transform 0.23s ease;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
}

.main-nav.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
}

.main-nav a {
  text-decoration: none;
  display: inline-block;
  padding: 0.45rem 0.3rem;
  border-radius: 10px;
  font-weight: 700;
  transition: color 0.15s ease;
}

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

.main-nav a.active {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--lavender);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

body.menu-open {
  overflow: hidden;
}

/* === HERO ================================================== */
.hero-grid {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

/* Grid-Items müssen schrumpfen dürfen, sonst zwingt das
   width-Attribut des Hero-Bildes (600px) eine zu breite Spur. */
.hero-grid > * {
  min-width: 0;
}

.sticker {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(31, 58, 46, 0.14);
  padding: 0.32rem 0.75rem;
  font-weight: 700;
  font-size: 0.87rem;
}

.sticker-mint   { background: var(--mint); }
.sticker-peach  { background: var(--peach); }
.sticker-sky    { background: var(--sky); }
.sticker-butter { background: var(--butter); }
.sticker-lav    { background: var(--lavender); }

.hero h1 {
  margin: 0.7rem 0 0;
  line-height: 1.12;
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.hero-sub {
  margin: 1rem 0 1.5rem;
  max-width: 56ch;
  color: var(--muted);
}

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

/* === BUTTONS =============================================== */
.btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

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

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 10px 22px rgba(31, 58, 46, 0.26);
}

.btn-secondary {
  background: rgba(185, 167, 216, 0.18);
  border-color: rgba(185, 167, 216, 0.85);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(185, 167, 216, 0.30);
}

/* === SHOP TEASER =========================================== */
.shop-teaser {
  margin: 1rem 0 0;
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px dashed rgba(31, 58, 46, 0.28);
  background: #fff;
  font-size: 0.92rem;
}

.shop-teaser a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.shop-teaser a:hover {
  text-decoration: underline;
}

/* === HERO VISUAL =========================================== */
.hero-visual {
  position: relative;
  /* overflow:visible, damit die aus der Karte ragenden Mini-Sticker
     (left/right: negativ) nicht abgeschnitten werden */
  overflow: visible;
  padding: 0.8rem;
}

.hero-visual > img,
.hero-visual > .hero-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid var(--border);
  background: linear-gradient(130deg, rgba(185, 167, 216, 0.35), rgba(31, 58, 46, 0.08));
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(185, 167, 216, 0.28), rgba(143, 211, 255, 0.18));
}

.mini-sticker {
  position: absolute;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(31, 58, 46, 0.2);
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
}

.hero-visual .mini-sticker:nth-of-type(1) { top: 1.1rem; left: -0.5rem; }
.hero-visual .mini-sticker:nth-of-type(2) { top: 46%;   right: -0.4rem; }
.hero-visual .mini-sticker:nth-of-type(3) { bottom: 0.8rem; right: 2rem; }

.bubble {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(31, 58, 46, 0.12);
}

.bubble-1 { width: 16px; height: 16px; top: 18%;  right: 18%; animation: floaty 5s ease-in-out infinite; }
.bubble-2 { width: 10px; height: 10px; bottom: 20%; left: 15%; animation: floaty 6s ease-in-out infinite; }

/* === ÜBER LOMI ============================================= */
.usp-grid {
  display: grid;
  gap: 1rem;
}

.usp-card {
  padding: 1.1rem;
}

.usp-icon {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1;
}

.usp-card h3 {
  margin: 0.4rem 0 0.2rem;
}

.usp-card p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
}

.timeline h3 {
  margin-top: 0;
}

.timeline ol {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.4rem;
}

.timeline li {
  color: var(--muted);
}

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

.materials {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.85rem;
  padding: 0.28rem 0.65rem;
}

/* === GALERIE =============================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-chip:hover {
  background: rgba(31, 58, 46, 0.06);
}

.filter-chip.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
  outline: none;
}

.gallery-card:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 2px;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(185, 167, 216, 0.28), rgba(143, 211, 255, 0.18));
}

.gallery-card figcaption {
  padding: 0.9rem;
}

.gallery-card h3 {
  margin: 0;
  font-size: 1rem;
}

.gallery-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem !important;
}

.tags span {
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(31, 58, 46, 0.14);
}

/* === SOCIAL ================================================ */
.social-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.social-card,
.contact-card,
.contact-side {
  padding: 1.2rem;
}

.social-card h3,
.contact-card h3,
.contact-side h3 {
  margin-top: 0;
}

/* TikTok-Fallback-Box */
.embed-placeholder {
  min-height: 200px;
  margin-top: 0.8rem;
  border: 1px dashed rgba(31, 58, 46, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg,
    rgba(143, 211, 255, 0.18),
    rgba(255, 155, 203, 0.16));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.5rem;
}

.embed-placeholder-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.45;
}

.embed-placeholder-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* === KONTAKTFORMULAR ======================================= */
form {
  display: grid;
  gap: 0.6rem;
}

.form-hint {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

label {
  font-weight: 700;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid rgba(31, 58, 46, 0.28);
  border-radius: 14px;
  padding: 0.66rem 0.78rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(185, 167, 216, 0.25);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.22rem;
  flex-shrink: 0;
  accent-color: var(--green);
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.9rem;
}

.contact-buttons {
  display: grid;
  gap: 0.55rem;
}

.muted {
  color: var(--muted);
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
}

/* === LIGHTBOX ============================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 14, 14, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  width: min(900px, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
}

.lightbox-content img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}

.lightbox-content figcaption {
  padding: 1rem 1.1rem;
}

.lightbox-content h3 {
  margin: 0;
}

.lightbox-content p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.lightbox-close,
.lightbox-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.7rem;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
}

.lightbox-arrow.prev { left: 1rem; }
.lightbox-arrow.next { right: 1rem; }

/* === BACK TO TOP =========================================== */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 180;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(31, 58, 46, 0.22);
  background: linear-gradient(160deg, var(--sky), var(--lavender));
  color: var(--green);
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-2px);
}

/* Back-to-Top bei offener Lightbox ausblenden */
body.lightbox-open .to-top {
  opacity: 0;
  pointer-events: none;
}

/* === FOOTER ================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2rem;
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-inner nav a:hover {
  color: var(--green);
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.palette-preview {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.palette-preview span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* === ANIMATIONEN =========================================== */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* === LEGAL-SEITEN (Impressum / Datenschutz) ================ */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(185, 167, 216, 0.18);
  border: 1px solid rgba(185, 167, 216, 0.85);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.legal-back:hover {
  background: rgba(185, 167, 216, 0.30);
}


.legal-hero {
  padding: 3rem 0 1rem;
  scroll-margin-top: 88px;
}

.legal-hero h1 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: 0.01em;
}

.legal-hero p {
  color: var(--muted);
  margin: 0.6rem 0 0;
  max-width: 70ch;
}

.legal-content {
  padding: 1rem 0 4rem;
}

.legal-content > .card {
  padding: clamp(1.2rem, 2.8vw, 2.2rem);
}

.legal-content h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.3rem;
  color: var(--green);
}

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

.legal-content h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content dl {
  margin: 0.4rem 0 0.9rem;
  color: var(--text);
  max-width: 72ch;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.3rem;
}

.legal-content li + li {
  margin-top: 0.2rem;
}

.legal-content dt {
  font-weight: 700;
  margin-top: 0.8rem;
}

.legal-content dd {
  margin: 0.1rem 0 0;
  color: var(--muted);
}

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

.legal-content address {
  font-style: normal;
  background: rgba(185, 167, 216, 0.16);
  border: 1px dashed rgba(31, 58, 46, 0.22);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  display: inline-block;
}

.legal-content .placeholder {
  color: #7A3E3E;
  font-weight: 700;
}

.legal-toc {
  margin: 0 0 1.6rem;
  padding: 1rem 1.2rem;
  background: rgba(143, 211, 255, 0.10);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.legal-toc strong {
  display: block;
  margin-bottom: 0.4rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 1.4rem;
}

.legal-toc a {
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}

/* === RESPONSIVE: 720 px+ =================================== */
@media (min-width: 720px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .usp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === RESPONSIVE: 980 px+ =================================== */
@media (min-width: 980px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* === RESPONSIVE: 1240 px+ ================================== */
@media (min-width: 1240px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === REDUCED MOTION ======================================== */
@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;
  }
}
