/* ====================================================================
   Techauer Blumenwerkstatt — v2, matched to the shop's own identity:
   eggshell paper, magenta/pink from the logo, soft botanical green
   script accents. Type: Fraunces (display) + Karla (text), self-hosted.
   ==================================================================== */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper:    #FBF8EE;   /* eggshell, like the old site */
  --ink:      #3A3335;
  --pink:     #A73B7E;   /* logo magenta */
  --pink-d:   #862F65;
  --pink-bar: #F7E6EF;   /* light pink top bar */
  --green:    #7FA98C;   /* script/accent green from the logo */
  --line:     #E7DFD2;
  --card:     #FFFFFF;
  --foot:     #45333E;   /* deep plum, echoes the pink */
  --maxw:     1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* anchors (#anfahrt …) land below the sticky header instead of under it */
[id] { scroll-margin-top: 24px; }
@media (min-width: 881px) { [id] { scroll-margin-top: 230px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 540;
  line-height: 1.15;
  color: var(--pink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: 1.4em; }
p  { margin: 0 0 1em; max-width: 70ch; }
a  { color: var(--pink); text-decoration-color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--pink-d); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--pink); color: #fff; padding: .5em 1em; }
.skip:focus { left: 8px; z-index: 99; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ---- top bar: light pink strip like the original -------------------- */
.topbar { background: var(--pink-bar); color: var(--pink-d); font-size: .88rem; border-bottom: 1px solid #EFD8E4; }
.topbar a { color: var(--pink-d); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--pink); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 16px; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 18px; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }

/* ---- header: centered logo, nav beneath ----------------------------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); z-index: 50; }
@media (min-width: 881px) { .site-head { position: sticky; top: 0; } }
.head-in { display: flex; flex-direction: column; align-items: center; padding: 14px 16px 0; position: relative; }
.brand { display: block; }
.brand img { width: 200px; height: auto; }
.nav-toggle {
  display: none; font: inherit; font-weight: 700;
  background: var(--pink); color: #fff; border: 0; border-radius: 6px;
  padding: 8px 14px; position: absolute; right: 16px; top: 22px;
}
.mainnav ul { list-style: none; display: flex; justify-content: center; gap: 2px 8px; margin: 10px 0 0; padding: 0 0 10px; flex-wrap: wrap; }
.mainnav a {
  display: inline-block; text-decoration: none; font-weight: 700;
  color: var(--ink); padding: 6px 13px; border-radius: 6px;
}
.mainnav a:hover { color: var(--pink); }
.mainnav a[aria-current="page"] { background: var(--pink); color: #fff; }

@media (max-width: 880px) {
  .head-in { align-items: flex-start; padding-top: 10px; }
  .brand img { width: 150px; }
  .nav-toggle { display: block; top: 34px; }
  .mainnav { display: none; width: 100%; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; gap: 0; margin-top: 6px; }
  .mainnav a { display: block; padding: 11px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .mainnav a[aria-current="page"] { border-radius: 6px; }
}

/* ---- hero slideshow (homepage) -------------------------------------- */
.hero { position: relative; max-width: 1400px; margin: 18px auto 0; padding: 0 16px; }
.hero-frame { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 21 / 9; min-height: 260px; }
.hero-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-frame img.on { opacity: 1; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 4vw, 40px);
  background: linear-gradient(transparent, rgba(45, 25, 38, .65));
  color: #fff;
}
.hero-caption .script {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 430;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem); line-height: 1.2; display: block;
}
.hero-caption .sub { color: #F4E3EC; font-weight: 700; }
@media (max-width: 640px) { .hero-frame { aspect-ratio: 4 / 3; } }

/* ---- homepage sections ---------------------------------------------- */
.intro-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr; padding-top: 36px; }
.intro-grid h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-top: .4em; }
.about-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1.4fr; align-items: start; padding-top: 20px; }
.about-grid img { border-radius: 12px; }
@media (max-width: 880px) { .intro-grid, .about-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-list li { padding: 2px 0; font-weight: 700; }

.woche {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; align-self: start; box-shadow: 0 2px 10px rgba(60, 30, 45, .05);
}
.woche h2 { margin-top: 0; }
.woche-img img { border-radius: 8px; }
.woche p { margin: .8em 0 0; }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; display: grid; border-radius: 12px; overflow: hidden;
  text-decoration: none; background: var(--foot); min-height: 190px;
}
.card img { grid-area: 1/1; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.card:hover img { opacity: .7; }
.card span {
  grid-area: 1/1; align-self: end; padding: 12px 14px; color: #fff;
  font-family: "Fraunces", Georgia, serif; font-size: 1.25rem;
  background: linear-gradient(transparent, rgba(45, 25, 38, .8));
}

/* ---- content pages --------------------------------------------------- */
.page-hero { position: relative; max-width: 1400px; margin: 18px auto 0; padding: 0 16px; }
.page-hero-frame { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 21 / 8; min-height: 220px; }
.page-hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: #fff;
  padding: clamp(16px, 3.5vw, 36px);
  background: linear-gradient(transparent, rgba(45, 25, 38, .65));
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
@media (max-width: 640px) { .page-hero-frame { aspect-ratio: 16 / 10; } }
.prose { padding-top: 30px; }
.note { font-size: .9rem; color: #7A6A72; border-left: 3px solid var(--green); padding-left: 12px; }

/* ---- galleries: full-resolution sources, scaled DOWN by the browser -- */
.gallery-sec { padding-bottom: 40px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.g-item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.g-item:hover img { transform: scale(1.03); }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(40, 22, 33, .94); display: grid; place-items: center; z-index: 100; }
.lb[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.lb img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: 6px; }
.lb figcaption { color: #E8DCE3; font-size: .9rem; }
.lb button {
  position: absolute; background: none; border: 0; color: #fff; border-radius: 8px;
  font-size: 2.2rem; cursor: pointer; padding: 8px 16px; line-height: 1;
  min-width: 48px; min-height: 48px;
}
.lb button:hover { background: rgba(255, 255, 255, .12); }
.lb button:focus-visible { outline-color: #fff; }
.lb .lb-close { top: 8px; right: 12px; }
.lb .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---- kontakt ---------------------------------------------------------- */
.kontakt-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .kontakt-grid { grid-template-columns: 1fr; } }
.btn {
  display: inline-block; background: var(--pink); color: #fff; text-decoration: none;
  border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--pink-d); color: #fff; }
.map-consent {
  border: 1px dashed var(--green); border-radius: 12px; padding: 20px;
  background: var(--card); margin-bottom: 40px;
}
.map-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; margin-bottom: 40px; }

/* ---- footer ----------------------------------------------------------- */
.site-foot { background: var(--foot); color: #E8DCE3; margin-top: 56px; }
.site-foot h2 { color: #fff; font-size: 1.15rem; margin-top: 0; }
.site-foot a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); padding: 36px 16px 8px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-legal { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: .9rem; }
.foot-legal p { margin: 0; }
