/* Kreationswunder – reines CSS, kein JavaScript, keine externen Ressourcen.
   Schriften liegen lokal unter /fonts (Raleway und PT Serif, SIL Open Font License). */

@font-face { font-family: "Raleway"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/raleway-300.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/raleway-400.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/raleway-500.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/raleway-600.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/raleway-700.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 300; font-display: swap; src: url("/fonts/raleway-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/raleway-400-italic.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ptserif-400.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ptserif-400-italic.woff2") format("woff2"); }

:root {
  --primary: #787484;
  --primary-dark: #5f5b6b;
  --text: #4f5260;
  --heading: #292c3d;
  --muted-bg: #f6f5f8;
  --bg: #ffffff;
  --line: #e5e3ea;
  --font: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "PT Serif", Georgia, serif;
  --dark: #4a4652;
  --footer: #8a8697;
  --script: "Segoe Script", "Brush Script MT", "URW Chancery L", cursive;
  --wrap: 1140px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.05rem/1.7 var(--font);
}

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

a { color: var(--primary-dark); }

h1, h2, h3 {
  color: var(--heading);
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 .5em;
}
.eyebrow a { color: inherit; text-decoration: none; }

.prose { max-width: 70ch; }
.prose.center { margin-inline: auto; }
.prose-page { margin-inline: auto; }
.prose strong { color: var(--heading); }

.note { font-size: .85rem; color: #7d7f8a; margin-top: 2rem; }

.button {
  display: inline-block;
  padding: .75em 1.6em;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--primary);
  transition: background .2s;
}
.button:hover, .button:focus-visible { background: var(--primary-dark); border-color: var(--primary-dark); }
.button-ghost { background: transparent; color: var(--primary-dark); }
.button-ghost:hover, .button-ghost:focus-visible { color: #fff; }

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

/* ---------- Kopfzeile ---------- */

.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.logo { display: block; flex: none; }
.logo img { width: 150px; height: auto; }

nav ul { list-style: none; margin: 0; padding: 0; }
nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
nav a:hover, nav a[aria-current="page"] { color: var(--heading); }
nav a[aria-current="page"] { font-weight: 700; }

.nav-desktop ul { display: flex; gap: 1.8rem; }
.header-icons { display: none; gap: 14px; }
.icon { display: inline-block; vertical-align: -3px; }
.icon-link { color: var(--heading); display: inline-flex; padding: 4px; }
.icon-link:hover { color: var(--primary); }

@media (min-width: 1000px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 110px; }
  .nav-left { justify-self: end; }
  .nav-right { display: flex; align-items: center; justify-content: space-between; }
  .logo { grid-column: 2; grid-row: 1; }
  .logo img { width: 210px; }
  .nav-left { grid-column: 1; grid-row: 1; }
  .nav-right { grid-column: 3; grid-row: 1; padding-right: 72px; }
  .header-icons { display: flex; grid-column: 3; grid-row: 1; justify-self: end; }
}

/* Burger-Menü: natives <details>, funktioniert ohne Skript */
.nav-mobile { display: none; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 10px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; height: 2px; background: var(--heading); transition: transform .2s, opacity .2s; }
.nav-mobile[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
.nav-mobile[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile nav {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(41, 44, 61, .08);
}
.nav-mobile li a { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }

@media (max-width: 999px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- Startseite ---------- */

.hero { padding: 40px 0 56px; }
.hero-inner { display: grid; gap: 32px; align-items: start; }
.hero-panel {
  background: var(--primary);
  color: #fff;
  padding: 40px 28px;
}
.hero-panel h1 { color: #fff; margin: 0 0 1.2em; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.hero-logo { width: min(280px, 80%); }
.hero-text .eyebrow { color: var(--heading); font-size: .72rem; }
.serif { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.6; text-align: justify; hyphens: auto; color: var(--heading); }
.serif strong { color: var(--primary-dark); }
@media (min-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-panel { padding: 56px 48px; min-height: 100%; }
}

.angebote { display: grid; gap: 32px; }
@media (min-width: 860px) { .angebote { grid-template-columns: 1fr 1fr; gap: 48px; } }
.angebot {
  background: var(--primary);
  color: #f1f0f4;
  text-align: center;
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
}
.angebot h2 { color: #fff; text-transform: uppercase; font-weight: 300; margin: 0; }
.angebot h2::after { content: ""; display: block; width: 70px; height: 1px; background: rgba(255,255,255,.6); margin: 18px auto; }
.angebot-sub { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: #fff; margin: 0 0 1.2rem; }
.angebot-text { font-size: .92rem; }
.angebot-cta { margin: auto 0 0; padding-top: 1.2rem; }
.button-outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.button-outline:hover, .button-outline:focus-visible { background: #fff; color: var(--heading); border-color: #fff; }

.goodies h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.goodies .eyebrow { color: var(--heading); }
.goodies .prose { color: #7d7f8a; }
.goodie-pakete {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.goodie-pakete li {
  display: flex; flex-direction: column; gap: 8px;
  text-align: center; padding: 28px 20px;
  box-shadow: 2px 14px 40px rgba(41, 44, 61, .14);
  font-size: .9rem;
}
.goodie-pakete strong { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--primary-dark); }

.offer { padding: 56px 0; }
.offer-alt { background: var(--muted-bg); }
.offer-inner { max-width: 820px; }
@media (min-width: 860px) { .offer { padding: 80px 0; } }

.section-title { text-transform: uppercase; font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.tipp { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #7d7f8a; }

/* Kopfbereich der Unterseiten: Mauve-Band wie im Original */
.page-head {
  background: var(--primary);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.page-head h1 { color: #fff; text-transform: uppercase; font-weight: 300; margin: 0; }
.page-head .eyebrow { color: #fff; max-width: 820px; margin: 1rem auto 0; line-height: 1.6; }
.page-head .prose { margin-top: 1rem; }
.page-head-dunkel { background: var(--dark); }
.page-head-dunkel h1 { text-transform: none; }
.page-head-hell { background: var(--bg); color: var(--text); }
.page-head-hell h1 { color: var(--heading); }
@media (min-width: 860px) { .page-head { padding: 88px 0 72px; } }

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px 16px;
  margin-top: 24px;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 40px 28px; } }
.grid-small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
@media (min-width: 640px) { .grid-small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; margin: 0; }
.card-img { position: relative; display: block; overflow: hidden; box-shadow: 0 6px 18px rgba(41, 44, 61, .15); }
.card-img img { aspect-ratio: 5 / 8; object-fit: cover; width: 100%; transition: transform .35s; }

/* Infos im Cover beim Überfahren / Antippen (wie im Original) */
.card-hover .card-img { cursor: pointer; }
.card-hover .card-img:hover img,
.card-hover .card-img:focus-within img { transform: scale(1.06); }
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 24px;
  text-align: center;
  background: rgba(255, 255, 255, .84);
  color: var(--text);
  font-size: .82rem;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  transform: scale(.94);
  /* visibility verzögert ausblenden, damit Links im unsichtbaren Overlay nicht antippbar sind */
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.card-hover .card-img:hover .card-overlay,
.card-hover .card-img:focus-within .card-overlay {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.card-hover .card-img:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.card-overlay p { margin: 0; }
.card-overlay-title { font-size: 1.15rem; font-weight: 400; color: var(--heading); }
.card-overlay-prices {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--heading);
}
.card-overlay-text p { margin: 0; }
.card-overlay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.card-overlay .button-pill { background: #4a4652; border-color: #4a4652; padding: .7em 1.4em; font-size: .66rem; }
.card-overlay .button-pill:hover { background: var(--heading); }
.card-overlay .button-pill-light { background: transparent; color: var(--heading); border-color: #4a4652; }
.card-overlay .button-pill-light:hover { color: #fff; }
@media (max-width: 639px) {
  .card-overlay { padding: 12px 10px 14px; gap: 6px; }
  .card-overlay-text { display: none; }
  .card-overlay-title { font-size: 1rem; }
  .card-overlay-prices { font-size: .62rem; letter-spacing: .06em; }
}

/* Großansicht: per Anker-Link (:target) geöffnet, Klick daneben oder auf × schließt */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
}
.lightbox:target { display: flex; }
.lightbox-bg { position: absolute; inset: 0; background: rgba(30, 28, 36, .9); }
.lightbox figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 100%;
  animation: fade-in .35s ease-out;
}
.lightbox img {
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  width: auto;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.lightbox figcaption { color: #fff; text-align: center; font-size: .9rem; }
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 16px;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  text-decoration: none;
}
.card-title { margin-top: 10px; color: var(--heading); font-weight: 600; font-size: .95rem; }
.card-price { font-size: .85rem; color: var(--primary); }
.grid-small .card-img img { filter: grayscale(.35); opacity: .85; }

.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--heading);
  color: #fff;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 8px;
}
.badge-sold { background: #8a8d97; }
.badge-inline { position: static; display: inline-block; }


/* ---------- Kontakt & Fußzeile ---------- */

.kontakt { background: var(--dark); color: #e6e4ea; padding: 72px 0; }
.kontakt h2 { color: #fff; font-weight: 400; }
.kontakt-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 2rem; }
.button-white { background: #fff; color: var(--heading); border-color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.button-white:hover, .button-white:focus-visible { background: #ecebf0; border-color: #ecebf0; color: var(--heading); }

.site-footer { background: var(--footer); color: #fff; padding: 32px 0 28px; text-align: center; }
.footer-inner { display: grid; gap: 12px; justify-items: center; }
.footer-legal ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.footer-legal a { color: #fff; font-size: .72rem; }
.footer-copy { font-size: .78rem; margin: 0; }
.footer-icons { display: flex; gap: 10px; }
.footer-icons .icon-link { color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; padding: 7px; }
.footer-icons .icon-link:hover { background: #fff; color: var(--footer); }
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer-legal { grid-column: 2; }
  .footer-copy { grid-column: 2; }
  .footer-icons { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
}

/* ---------- Preis-Blöcke (Leistungen & Preise) ---------- */

.pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
@media (min-width: 760px) {
  .pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .pkg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; }
  .pkg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .pkg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

.pkg {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 40px 28px 36px;
  background: #fff;
  box-shadow: 2px 18px 50px rgba(41, 44, 61, .18);
  font-size: .92rem;
}
.pkg-grid-4 .pkg { padding: 32px 20px; }

.pkg-name {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.pkg-preis {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--heading);
  margin: 0 0 .8rem;
}
.pkg-grid-4 .pkg-preis { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.pkg-preis sup { font-size: .5em; }
.pkg-zusatz {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.pkg-text p { margin: 0 0 1em; }
.pkg-fuss { font-size: .8rem; opacity: .8; margin: .5rem 0 0; }
.pkg-cta { margin: auto 0 0; padding-top: 1.5rem; }

.pkg-mauve {
  background: linear-gradient(180deg, #8a8697 0%, #6a6676 100%);
  box-shadow: 2px 18px 50px rgba(120, 116, 132, .5);
  color: #f2f1f5;
}
.pkg-dunkel {
  background: linear-gradient(180deg, #57525f 0%, #3c3843 100%);
  box-shadow: 2px 18px 50px rgba(41, 44, 61, .28);
  color: #e6e4ea;
}
.pkg-mauve .pkg-name, .pkg-dunkel .pkg-name,
.pkg-mauve .pkg-preis, .pkg-dunkel .pkg-preis { color: #fff; }
.pkg-mauve strong, .pkg-dunkel strong { color: #fff; }

.button-pill { border-radius: 999px; padding: .8em 2em; font-size: .72rem; }
.pkg-hell .button-pill { background: #4a4652; border-color: #4a4652; box-shadow: 0 6px 16px rgba(41, 44, 61, .25); }
.pkg-mauve .button-pill { background: rgba(41, 44, 61, .35); border-color: transparent; }
.pkg-dunkel .button-pill { background: #fff; border-color: #fff; color: var(--heading); }
.pkg-hell .button-pill:hover { background: var(--heading); }
.pkg-mauve .button-pill:hover { background: rgba(41, 44, 61, .55); }
.pkg-dunkel .button-pill:hover { background: #ecebf0; }

.pkg-hinweis {
  text-align: center;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  max-width: 760px;
  margin: 2.5rem auto 0;
}

/* ---------- Einblenden beim Scrollen (reines CSS) ----------
   Nutzt scroll-gesteuerte Animationen. Browser ohne Unterstützung
   zeigen alles sofort an; wer reduzierte Bewegung eingestellt hat, ebenso. */

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-panel { animation: fade-in .9s ease-out both; }
  .hero-text  { animation: fade-in .9s .2s ease-out both; }

  @supports (animation-timeline: view()) {
    .reveal, .offer-inner, .grid > .card {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    /* leicht versetzt, damit Blöcke nacheinander erscheinen */
    .pkg-grid > :nth-child(2), .grid > .card:nth-child(4n+2 of .card) { animation-range: entry 10% entry 70%; }
    .pkg-grid > :nth-child(3), .grid > .card:nth-child(4n+3 of .card) { animation-range: entry 20% entry 80%; }
    .pkg-grid > :nth-child(4), .grid > .card:nth-child(4n+4 of .card) { animation-range: entry 30% entry 90%; }
  }
}

/* ---------- Sale ---------- */

.sale-preis { font-size: 1.6rem; font-weight: 300; color: var(--heading); }
.sale-alt { font-size: .85rem; font-weight: 700; color: #8a8d97; }
.badge-sale { background: #b0476a; }

/* ---------- Portfolio ---------- */

.kunden {
  list-style: none; padding: 0; margin: 40px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 36px;
  max-width: 980px;
}
.kunden img { max-height: 80px; width: auto; }
.grid-portfolio { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (min-width: 640px) { .grid-portfolio { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 24px; } }

/* ---------- FAQ ---------- */

.faq { max-width: 1000px; }
.faq-thema + .faq-thema { margin-top: 56px; }
.faq-thema h2 { text-transform: uppercase; font-weight: 400; font-size: 1.5rem; }
.faq dl { margin: 0; }
.faq-eintrag { display: grid; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.faq dt { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: #7d7f8a; }
.faq dd { margin: 0; font-size: .95rem; }
.faq dd p { margin: 0 0 .8em; }
@media (min-width: 760px) { .faq-eintrag { grid-template-columns: 280px 1fr; gap: 40px; } }

/* Rechtstexte */
.prose-page h2 { font-size: 1.4rem; margin-top: 2em; }
.prose-page h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.8em; }
