/* SESTO Mode & Flair – Stylesheet (ohne Framework) */

/* ---------- Schriften (lokal, kein Google-Aufruf) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-regular.woff2") format("woff2"),
       url("../fonts/open-sans-regular.woff") format("woff");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-600.woff2") format("woff2"),
       url("../fonts/open-sans-600.woff") format("woff");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-700.woff2") format("woff2"),
       url("../fonts/open-sans-700.woff") format("woff");
}
@font-face {
  font-family: "Calligraffitti";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/calligraffitti.woff2") format("woff2"),
       url("../fonts/calligraffitti.woff") format("woff");
}

/* ---------- Grundwerte ---------- */
:root {
  --navy: #0c3263;
  --navy-dark: #082447;
  --text: #333;
  --muted: #666;
  --line: #e5e5e5;
  --bg: #fff;
  --max: 1080px;
  --gutter: 20px;
  --header-h: 120px;
  --header-h-small: 80px;
  --script: "Apple Chancery", "Calligraffitti", cursive;
  --sans: "Open Sans", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(24px, 3vw, 30px); }
h2 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 1.4em; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #fff;
  color: var(--navy);
  padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  transition: box-shadow .3s;
}
.site-header.is-small { box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height .3s;
}
.site-header.is-small .header-inner { height: var(--header-h-small); }

.logo { display: block; flex-shrink: 0; }
.logo img {
  width: 300px;
  height: auto;
  max-height: 96px;
  transition: max-height .3s, width .3s;
}
.site-header.is-small .logo img { width: 200px; max-height: 64px; }

/* Hauptmenü */
.main-nav ul { list-style: none; margin: 0; padding: 0; }

.main-nav > ul { display: flex; align-items: center; gap: 4px; }

.main-nav li { position: relative; }

.main-nav a,
.main-nav .submenu-toggle {
  display: block;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--script);
  font-size: 25px;
  line-height: 1.2;
  background: none;
  border: 0;
  cursor: pointer;
}
.main-nav a:hover,
.main-nav .submenu-toggle:hover,
.main-nav [aria-current="page"] { color: #fff; opacity: .75; }

.main-nav .has-sub > a::after,
.main-nav .submenu-toggle::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-5px) rotate(45deg);
}

.main-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 10px 0;
  background: var(--navy);
  border-top: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.main-nav .sub a { padding: 6px 20px; font-size: 22px; }

.main-nav .has-sub:hover > .sub,
.main-nav .has-sub:focus-within > .sub,
.main-nav .has-sub.is-open > .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Burger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .25s, background .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  :root { --header-h: 96px; --header-h-small: 72px; }
  .logo img { width: 220px; max-height: 70px; }
  .site-header.is-small .logo img { width: 170px; max-height: 54px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .25);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.is-open { max-height: 80vh; overflow-y: auto; }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 20px;
  }
  .main-nav a, .main-nav .submenu-toggle { padding: 10px 0; font-size: 22px; width: 100%; text-align: left; }
  .main-nav .sub {
    position: static;
    min-width: 0;
    padding: 0 0 0 20px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .main-nav .submenu-toggle { cursor: default; }
  .main-nav .has-sub > a::after,
  .main-nav .submenu-toggle::after { display: none; }
  .main-nav .sub a { font-size: 20px; padding: 6px 0; }
}

/* ---------- Slider ---------- */
.hero {
  position: relative;
  height: clamp(220px, 30vw, 460px);
  overflow: hidden;
  background: #eee;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease, transform 6s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}
.hero-dots button[aria-current="true"] { background: #fff; }

/* ---------- Inhalt ---------- */
main { display: block; }

.section { padding: 50px 0; }
.section + .section { padding-top: 0; }

.page-head { padding-top: 50px; padding-bottom: 10px; }
.page-head .kicker {
  margin: 0 0 .2em;
  font-size: 20px;
  color: var(--muted);
}

.grid { display: grid; gap: 30px 5.5%; }
.grid-2-1 { grid-template-columns: 2fr 1fr; align-items: center; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 760px) {
  .grid-2-1, .grid-1-2, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid > .spacer { display: none; }
}

.welcome h1 { margin-bottom: .3em; }
.welcome h3 { font-size: 16px; color: var(--muted); }

.categories h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: .02em;
}
.categories h2::before {
  content: "";
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-right: .35em;
  background: var(--text);
  vertical-align: .1em;
}

.intro p { max-width: none; }
.tagline { margin-top: 1.5em; font-size: 18px; }

.lead-list { list-style: none; margin: 0 0 1.5em; padding: 0; }
.lead-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.lead-list li:first-child { border-top: 1px solid var(--line); }

/* Kontaktblöcke / Öffnungszeiten */
.info-card h2 { margin-top: 0; }
.info-card address { font-style: normal; margin-bottom: 1em; }

.hours { border-collapse: collapse; margin: 0 0 1.5em; }
.hours th, .hours td { text-align: left; vertical-align: top; padding: 4px 24px 4px 0; }
.hours th { font-weight: 600; white-space: nowrap; }

/* Store-Teaser */
.store-teaser { display: block; text-decoration: none; color: inherit; }
.store-teaser h2 { margin: 0 0 .5em; }
.store-teaser img { width: 100%; transition: opacity .25s; }
.store-teaser:hover img { opacity: .85; }
.store-teaser .more { display: inline-block; margin-top: .6em; color: var(--navy); }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .gallery, .gallery-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 400 / 284;
  background: #f2f2f2;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 300;
  color: #fff;
  background: rgba(12, 50, 99, .45);
  opacity: 0;
  transition: opacity .25s;
}
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .9);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, .5);
}
.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ccc;
  font-size: 13px;
}
@media (max-width: 560px) {
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 4px; transform: none; }
}

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity .3s; transform: none; }
}

/* ---------- Rechtstexte ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose a { word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}
.site-footer .container { padding-top: 40px; padding-bottom: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { background: var(--navy-dark); color: rgba(255, 255, 255, .6); font-size: 12px; }
.footer-bottom .container { padding-top: 14px; padding-bottom: 14px; }

.welcome img { max-width: 340px; width: 100%; }
