/* =========================================================
   Schneiderei Steffanie von Grafenstein — Stylesheet
   ========================================================= */

/* ---- Selbst gehostete Schriften (kein Google-Fonts-CDN,
   daher keine Datenübertragung an Dritte beim Seitenaufruf) ---- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Fallback-Schriftzug-Schrift, falls "Birthstone" mal nicht lädt. */
@font-face {
  font-family: "Logo Script Placeholder";
  src: url("../fonts/beaurivage-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Birthstone";
  src: url("../fonts/Birthstone-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farbpalette – abgeleitet aus dem Plakat (Aquarell-Rosa + Figur). */
  --color-bg: #fffdfc;
  --color-bg-soft: #fbf3f5;
  --color-tint: #f6e2e8;
  --color-accent: #c8648c;
  --color-accent-deep: #a84a70;
  --color-btn: #c8648c;
  --color-btn-hover: #b4527b;
  --color-mauve: #c88caa;
  --color-blush: #dcbec8;
  --color-plum: #3d232d;
  --color-ink: #2e2a28;
  --color-ink-soft: #6b6260;
  --color-line: #f2e0e5;

  --font-body: "Montserrat", -apple-system, "Segoe UI", sans-serif;
  --font-script: "Birthstone", "Logo Script Placeholder", cursive;

  --container-width: 1140px;
  --radius: 18px;
  --shadow-soft: 0 18px 40px -22px rgba(140, 50, 85, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.3em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); }
h3 { font-size: 1.7rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  font-weight: 600;
  margin-bottom: 0.8em;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 60ch;
}

.section {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

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

.section-title-wrap {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-title-wrap .lead { margin-left: auto; margin-right: auto; }

/* ---- Sponge-Tupfer Deko ---- */
.sponge-deco {
  position: absolute;
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  /* weicher Auslauf an allen vier Kanten: keine harten Linien */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%),
                      linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 70%, transparent 100%),
              linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-composite: intersect;
}
.sponge-deco img { width: 100%; height: 100%; }
.sponge-deco--tr { top: -80px; right: -80px; }
.sponge-deco--bl { bottom: -80px; left: -80px; transform: rotate(180deg); }
.sponge-deco--br { bottom: -80px; right: -80px; transform: scaleX(-1); }
.sponge-deco--tl { top: -80px; left: -80px; transform: rotate(90deg); }

.section > .container { position: relative; z-index: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--color-btn);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--color-btn-hover); }
.btn-outline {
  background: transparent;
  border-color: var(--color-btn);
  color: var(--color-accent-deep);
}
.btn-outline:hover { background: var(--color-tint); }
.btn-lg {
  padding: 18px 38px;
  font-size: 1.08rem;
}
.btn-phone {
  flex-direction: column;
  gap: 2px;
  padding: 16px 46px;
  text-align: center;
}
.btn-phone .btn-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.92;
}
.btn-phone .btn-number {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 252, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--color-ink);
  line-height: 1;
  white-space: nowrap;
}
.brand span { color: var(--color-accent-deep); }
.brand-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.brand-sub {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-ink-soft);
  line-height: 1;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); background: var(--color-ink); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); background: var(--color-ink); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--color-accent-deep);
  color: var(--color-accent-deep);
}

/* ---- Hero (Startseite) ---- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  /* sanfter Auslauf: das Aquarell blendet unten weich in den Seitenhintergrund aus */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
}
@media (max-width: 720px) {
  /* Auf dem Handy das ganze Aquarell zeigen statt nur der leeren Mitte */
  .hero-bg img { object-fit: fill; }
}
.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Aquarell-Flecken im oberen Bereich der Unterseiten (gleiche Optik wie Startseite) */
main.has-top-wash {
  position: relative;
  z-index: 0;
}
.page-wash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  max-height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.page-wash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
}
@media (max-width: 720px) {
  .page-wash { height: 640px; }
  .page-wash img { object-fit: fill; }
}
.hero-figure {
  height: clamp(220px, 32vw, 400px);
  width: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 24px 30px rgba(140, 50, 85, 0.18));
}
.hero-kicker {
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  letter-spacing: 0.1em;
  color: var(--color-accent-deep);
  margin: 0 0 4px;
}
.hero-logo {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 9vw, 6rem);
  margin: 0 0 14px;
  color: var(--color-ink);
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 46ch;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 44px;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.04em;
}
.hero-note a {
  color: var(--color-accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* ---- Teaser Kacheln Startseite ---- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.workshop-banner {
  margin-bottom: 28px;
}
.workshop-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  object-position: 50% 78%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: block;
}
.teaser-card {
  background: var(--color-btn);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  border: none;
  color: #fff;
}
.teaser-icon {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  opacity: 0.95;
}
.teaser-card h3 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.3em;
  color: #fff;
}
.teaser-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #fff;
  font-weight: 500;
}
.teaser-card li { margin-bottom: 6px; }
.teaser-card p { color: #fff; margin-bottom: 0; }

/* ---- Leistungen ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.service-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--color-ink-soft);
}
.service-card li { margin-bottom: 6px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}
.process-step {
  text-align: center;
  padding: 10px;
}
.process-step .num {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--color-accent-deep);
  display: block;
  margin-bottom: 6px;
}

/* ---- Galerie ---- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.gallery-tab {
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--color-btn);
  color: var(--color-accent-deep);
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.gallery-tab.is-active {
  background: var(--color-btn);
  color: #fff;
}
.gallery-section-title {
  text-align: center;
  margin-bottom: 30px;
}
.sketch-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  max-width: 720px;
  margin: -10px auto 46px;
  padding: 22px 30px;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.sketch-strip img { height: 130px; width: auto; }
.sketch-strip p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  max-width: 30ch;
  text-align: left;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}
.gallery-grid:last-child { margin-bottom: 0; }
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-soft);
  background: var(--color-tint);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:focus-visible { outline: 3px solid var(--color-accent-deep); outline-offset: 3px; }
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(46,42,40,0.72), transparent);
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 22, 24, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 26px;
  right: 34px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox-cap {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  text-align: center;
  color: #f3e4e8;
  font-size: 0.95rem;
}

/* ---- Über mich ---- */
.about-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}
.about-intro p {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  margin: 0;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
/* Textblock oben und unten exakt an der Foto-Kante ausrichten:
   Die Oberkante der Schrift (nicht die Zeilenbox) schließt mit dem Foto ab,
   die Unterkante der letzten Zeile (Grundlinie) ebenfalls. */
.about-text h2 { margin-top: -0.34em; text-align: center; }
.about-text p:last-child { margin-bottom: -0.3em; }
.about-greeting { margin-top: 1.4em; font-weight: 600; }
@supports (text-box: trim-both cap alphabetic) {
  .about-text { text-box: trim-both cap alphabetic; }
  .about-text h2 { margin-top: -0.325em; text-align: center; }
  .about-text p:last-child { margin-bottom: 0; }
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}
.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 34px;
}
.about-stat strong {
  display: block;
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--color-accent-deep);
  line-height: 1;
}
.about-stat span {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* ---- Kontakt ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.contact-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .label {
  min-width: 130px;
  font-weight: 600;
  color: var(--color-accent-deep);
}
.contact-note {
  background: var(--color-tint);
  border-radius: var(--radius);
  padding: 30px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-plum);
  color: #f3e6ea;
  padding: 50px 0 30px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand {
  font-family: var(--font-script);
  font-size: 1.6rem;
}
.footer-links ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.footer-links a { opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  padding-top: 22px;
  font-size: 0.82rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Rechtsseiten (Impressum / Datenschutz) ---- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 1.6em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content .placeholder {
  background: var(--color-tint);
  padding: 2px 8px;
  border-radius: 6px;
  font-style: italic;
}
.legal-content ul { color: var(--color-ink-soft); }

/* ---- Utility ---- */
.page-hero {
  padding: 64px 0 20px;
  text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 84px;
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,0.2);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
