/* ---------- Fonts  ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/DMSans-latin.woff2") format("woff2");
  font-feature-settings: "ss03" on;
}

@font-face {
  font-family: "Basteleur";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/Basteleur-Bold.woff2") format("woff2");
}

/* ---------- Variables ---------- */
:root {
  --pink: #ffa0c8;
  --red: #ff0024;
  --black: #000000;
  --white: #ffffff;
  --max-width: 47.5rem;
  --gap-section: clamp(3.5rem, 9vw, 6rem);
  --header-h: 5rem;

  --fs-hero-headline: clamp(2.7rem, 2rem + 2.05vw, 3.8rem);
  --fs-hero-subline: clamp(1.75rem, 1.45rem + 1.28vw, 2.25rem);
  --fs-headline: clamp(2.5rem, 9vw, 4.5rem);
  --fs-headline-sm: clamp(1.875rem, 5.2vw, 2.625rem); 
  --fs-nav-link: clamp(2rem, 8vw, 3.5rem);
  --fs-hero: clamp(1.75rem, 6vw, 2.625rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.125rem;
  --fs-body-lg: 1.375rem;
  --fs-pill: var(--fs-body);
  --fs-note: 0.9375rem;
  --fs-sm: 1rem;
  --fs-xxs: 0.8125rem;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}
html {
  background: var(--pink);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--pink);
  color: var(--black);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400;
  position: relative;
}

body.nav-active {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
p {
  margin: 0 0 1.25rem;
}
p:last-child {
  margin-bottom: 0;
}
[id] {
  scroll-margin-top: var(--header-h);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Fixierter Hintergrund  ---------- */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bg-fixed svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  opacity: 0.4;
}

.bg-fixed svg path,
.bg-fixed svg polygon,
.bg-fixed svg circle,
.bg-fixed svg ellipse,
.bg-fixed svg rect {
  fill: var(--white);
  transition: fill 0.25s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* ---------- Sticky Site-Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1.125rem 0;
  transition:
    padding 0.3s ease,
    background-color 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--white);
  padding: 0.625rem 0;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header-mark {
  display: block;
  width: 3rem;
  opacity: 0;
  visibility: hidden;
  transition:
    width 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.site-header.is-scrolled .site-header-mark {
  width: 2.375rem;
  opacity: 1;
  visibility: visible;
}
.site-header-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.burger {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background-color 0.25s ease;
}

.site-header:not(.is-scrolled) .burger:hover,
.site-header:not(.is-scrolled) .burger:focus-visible {
  background: var(--white);
}
.site-header:not(.is-scrolled) .burger:hover span,
.site-header:not(.is-scrolled) .burger:focus-visible span {
  background: var(--black);
}
.site-header.is-scrolled .burger:hover,
.site-header.is-scrolled .burger:focus-visible {
  background: var(--pink);
}
.site-header.is-scrolled .burger:hover span,
.site-header.is-scrolled .burger:focus-visible span {
  background: var(--black);
}

.nav-overlay .burger {
  background: var(--white);
}
.nav-overlay .burger span {
  background: var(--black);
}
.nav-overlay .burger:hover,
.nav-overlay .burger:focus-visible {
  background: var(--black);
}
.nav-overlay .burger:hover span,
.nav-overlay .burger:focus-visible span {
  background: var(--white);
}
.burger[aria-expanded="true"] span:nth-child(1),
.burger.is-close span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2),
.burger.is-close span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3),
.burger.is-close span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Vollbild-Navigationsoverlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.125rem 0;
  transition: padding 0.3s ease;
}
body.is-scrolled .nav-overlay-top {
  padding: 0.625rem 0;
}
.nav-overlay-top-inner {
  display: flex;
  justify-content: flex-end;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.nav-links li + li {
  margin-top: clamp(1rem, 4vw, 1.75rem);
}
.nav-link {
  display: inline-block;
  font-family: "Basteleur", "DM Sans", system-ui, sans-serif;
  font-weight: 900;
  font-size: var(--fs-nav-link);
  text-decoration: none;
  color: var(--white);
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--pink);
}

/* ---------- Hero (volle Viewport-Höhe) ----------*/
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100dvh;
  margin-top: calc(-1 * var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 2.5rem;
  overflow: hidden;
}

.hero-sticker {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  max-width: 18.75rem;
}

.hero-sticker--sterne {
  transform: rotate(-8deg);
  top: 23%;
  left: -6%;
  max-width: clamp(8.75rem, 7.25rem + 6.4vw, 11.25rem);
}

.hero-sticker--orchideen {
  bottom: 22%;
  left: -22%;
  max-width: clamp(15rem, 12rem + 12.8vw, 20rem);
}

.hero-sticker--hunde {
  bottom: 6%;
  right: 5%;
  max-width: clamp(12.5rem, 10.25rem + 9.6vw, 16.25rem);
}

.hero-sticker--elster {
  transform: rotate(6deg);
  top: 32%;
  right: -8%;
  max-width: clamp(10rem, 8.125rem + 8vw, 13.125rem);
}

.hero-mark {
  position: relative;
  z-index: 2;
  width: min(38%, 11.875rem);
  margin: 0 auto;
  flex-shrink: 0;
}

.hero-mark span {
  display: block;
}
.mark-svg svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-tagline {
  position: relative;
  z-index: 2;
  margin: auto auto;
  max-width: 80%;
  transform: translateY(-20px);
}

.hero-headline {
  font-family: "Basteleur", "DM Sans", system-ui, sans-serif;
  font-weight: 900;
  font-size: var(--fs-hero-headline);
  line-height: 1;
  margin: 0 0 1.25rem;
}
.hero-subline {
  font-weight: 400;
  font-size: var(--fs-hero-subline);
  line-height: 1.1;
  margin: 0;
}

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border-radius: 100px;
  padding: 0.625rem 1.75rem;
  font-weight: 600;
  font-size: var(--fs-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.pill:hover,
.pill:focus-visible,
.band--pink .pill:hover,
.band--pink .pill:focus-visible {
  background: var(--white);
  color: var(--black);
}
.band--white .pill:hover,
.band--white .pill:focus-visible {
  background: var(--pink);
  color: var(--black);
}
.hero .pill {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  flex-shrink: 0;
}

.section > .pill {
  align-self: center;
}

/* ---------- Bänder (abwechselnd rosa / weiß) ---------- */
.band {
  padding: var(--gap-section) 0;
}
.band--white {
  background: var(--white);
}
.band--pink {
  background: var(--pink);
}

/* ---------- Content sections ---------- */
.section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.section-title {
  font-family: "Basteleur", "DM Sans", system-ui, sans-serif;
  font-weight: 900;
  font-size: var(--fs-headline);
  line-height: auto;
  color: var(--black);
  margin: 0;
}
.section-text {
  font-size: var(--fs-body);
  line-height: 1.4;
}
.insta-link {
  font-size: var(--fs-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  width: fit-content;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}
.section-block-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.section-block-text {
  font-size: var(--fs-body);
  line-height: 1.4;
}

.photo-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.photo-grid::-webkit-scrollbar {
  display: none;
}
.photo-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.photo-grid > * {
  flex: 0 0 auto;
  width: 86%;
  scroll-snap-align: start;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}
.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    width 0.2s ease,
    height 0.2s ease,
    background-color 0.2s ease;
}
.slider-dot.is-active {
  background: var(--black);
}
.slider-dot--sm {
  width: 5px;
  height: 5px;
}
.photo-grid img {
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
}
#grid-flashes img {
  aspect-ratio: 1 / 1;
}
a.photo-grid-item {
  display: block;
  overflow: hidden;
}
a.photo-grid-item[hidden] {
  display: none;
}
a.photo-grid-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
a.photo-grid-item:hover img {
  transform: scale(1.06);
}

.load-more-tile {
  aspect-ratio: 1 / 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.load-more-tile:disabled {
  opacity: 0.6;
  cursor: default;
}

.load-more-btn {
  display: none;
  align-self: center;
  margin-top: 1.25rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 0.625rem 1.75rem;
  font-weight: 600;
  font-size: var(--fs-pill);
  font-family: inherit;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.load-more-tile:hover,
.load-more-tile:focus-visible,
.load-more-btn:hover,
.load-more-btn:focus-visible,
.band--pink .load-more-tile:hover,
.band--pink .load-more-tile:focus-visible,
.band--pink .load-more-btn:hover,
.band--pink .load-more-btn:focus-visible {
  background: var(--white);
  color: var(--black);
}
.band--white .load-more-tile:hover,
.band--white .load-more-tile:focus-visible,
.band--white .load-more-btn:hover,
.band--white .load-more-btn:focus-visible {
  background: var(--pink);
  color: var(--black);
}
.load-more-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Kontaktformular ---------- */
.contact-form {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.form-field label {
  font-weight: 600;
  font-size: var(--fs-body);
}
.form-optional {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.85em;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-body);
  padding: 0.625rem 0.875rem;
  border: 2px solid transparent;
  resize: vertical;
  background: var(--pink);
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus {
  background: var(--white);
  border-color: var(--pink);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-body);
  line-height: 1.4;
}
.form-consent input {
  margin-top: 4px;
  flex-shrink: 0;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit {
  align-self: center;
  background: var(--black);
  color: var(--white);
  border-radius: 100px;
  padding: 0.625rem 1.75rem;
  font-weight: 600;
  font-size: var(--fs-pill);
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.form-submit:hover,
.form-submit:focus-visible {
  background: var(--pink);
  color: var(--black);
}
.form-note {
  padding: 1rem 1.25rem;
  font-size: var(--fs-note);
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.form-note--success {
  background: var(--white);
  color: #0a6b2c;
}
.form-note--error {
  background: var(--white);
  color: var(--red);
}

@media (max-width: 420px) {
  .contact-form {
    padding: 1.25rem;
  }
}

.legal-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-top: var(--gap-section);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-copy {
  font-size: var(--fs-xxs);
  opacity: 0.7;
  margin: 0;
}

/* ---------- Static pages (Impressum / Datenschutz) ---------- */
.legal-page {
  padding-block: var(--gap-section);
  position: relative;
  z-index: 2;
}
.legal-page h1 {
  font-family: "Basteleur", "DM Sans", system-ui, sans-serif;
  font-weight: 900;
  font-size: var(--fs-headline-sm);
  color: var(--black);
  margin: 0 0 2rem;
}
.legal-page h2.legal-part-title {
  font-family: "Basteleur", "DM Sans", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 3rem 0 0.5rem;
}
.legal-page h2.legal-part-title:first-of-type {
  margin-top: 0;
}
.legal-page h3 {
  font-weight: 900;
  font-size: var(--fs-h3);
  margin: 1.75rem 0 0.625rem;
}
.legal-page p,
.legal-page li {
  font-size: var(--fs-body);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal-page a {
  text-decoration: underline;
}

body.legal-page-body .site-header {
  background: var(--white);
  padding: 0.625rem 0;
}
body.legal-page-body .site-header-mark {
  width: 2.375rem;
  opacity: 1;
  visibility: visible;
}

/* ---------- Responsive: tablet / desktop ---------- */
@media (min-width: 640px) {
  :root {
    --max-width: 56.25rem;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

    .hero-sticker--sterne {
    top: 7%;
    left: clamp(2%, 3%, 14%);
    max-width: clamp(6.25rem, 18vw, 25rem);
  }
  .hero-sticker--orchideen {
    top: auto;
    bottom: -5%;
    left: clamp(-3%, -3%, 5%);
    max-width: clamp(6.25rem, 32vw, 34.375rem);
  }
  .hero-sticker--hunde {
    top: auto;
    bottom: 5%;
    right: 5%;
    left: auto;
    max-width: clamp(6.25rem, 26vw, 34.375rem);
  }
  .hero-sticker--elster {
    top: 12%;
    right: 10%;
    left: auto;
    max-width: clamp(6.25rem, 21vw, 25rem);
  }
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    gap: 1rem;
  }
  .photo-grid > * {
    width: 100%;
  }
  .photo-grid {
    cursor: default;
  }
  .slider-dots {
    display: none;
  }

  .load-more-tile {
    display: none;
  }
  .load-more-btn {
    display: block;
  }
}

@media (min-width: 1000px) {
  :root {
    --max-width: 65rem;
    --header-h: 5rem;
    --fs-pill: var(--fs-body-lg);
    --fs-hero-headline: clamp(3.2rem, 0.6rem + 4.1vw, 5rem);
    --fs-hero-subline: clamp(2.25rem, -0.5625rem + 3.5vw, 4.5rem);
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-mark {
    width: 10.625rem;
    margin: 1.5rem auto 0;
  }

  .hero-tagline {
    max-width: 50%;
  }

  .hero-subline {
    margin-left: auto;
    margin-right: auto;
  }

  .bg-fixed svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left:0;
  width: 100%;
  height: auto;
  opacity: 0.3;
}

  .section {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .section-title {
    width: 100%;
  }
  .section > .section-text,
  .section > .insta-link {
    max-width: 80%;
    font-size: var(--fs-body-lg);
    line-height: 1.45;
  }
 
  .section-break {
    flex-basis: 100%;
    width: 100%;
    height: 0;
  }

  .contact-form {
    max-width: none;
  }

  .section--about {
    flex-direction: column;
  }
  .section-block {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }
  .section-block--reverse {
    flex-direction: row-reverse;
  }
  .section-block-photo {
    width: 45%;
    flex-shrink: 0;
  }
  .section-block-text {
    flex: 1;
    font-size: var(--fs-body-lg);
    line-height: 1.45;
  }
}

/* ---------- Sehr große Screens ---------*/
@media (min-width: 1800px) {
  :root {
    --max-width: clamp(65rem, 52.375rem + 20.2vw, 84.5rem);
    --fs-headline: clamp(4.5rem, 3.6125rem + 1.42vw, 5.875rem);
  }

  .hero-mark {
    width: 12.1875rem;
  }
}

/* ---------- Lightbox (Flashes: Bild groß + Vor/Zurück) ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-img {
  max-width: min(90vw, 56.25rem);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  padding: 12px;
}
.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 2rem;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}
.lightbox-prev {
  left: 4px;
}
.lightbox-next {
  right: 4px;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.7;
}
@media (min-width: 640px) {
  .lightbox-prev {
    left: 20px;
  }
  .lightbox-next {
    right: 20px;
  }
}
