/* ==========================================================================
   Mode Lenk Pforzheim — stylesheet
   Josefin Sans (headings/UI) + Lora (body). Palette: black / cream / white.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/josefinsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Tokens ---------- */
:root {
  --black:  #000;
  --ink:    #1a1a1a;
  --muted:  #6f6f6f;
  --line:   #e3ddd4;
  --grey:   #ededed;
  --cream:  #f7f3ed;
  --white:  #fff;

  --display: 'Josefin Sans', 'Century Gothic', system-ui, sans-serif;
  --body:    'Lora', Georgia, 'Times New Roman', serif;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --sect: clamp(3.5rem, 8vw, 6.5rem);

  --head-h: 88px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.7vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem); }
h4 { font-size: 1.125rem; letter-spacing: 0.08em; text-transform: uppercase; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 780px; }

/* Visually hidden but available to screen readers */
.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;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--black); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--display); letter-spacing: 0.1em; text-decoration: none;
}
.skip:focus { left: 0; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gut);
  min-height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 132px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 0.6rem; margin-right: -0.6rem; color: var(--black);
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nav a {
  font-family: var(--display);
  font-size: 0.9375rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: 0.35rem 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--black);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 860px) {
  :root { --head-h: 72px; }
  .brand img { width: 108px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav[data-open="true"] { max-height: 70vh; overflow-y: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gut) 1.5rem; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav a::after { display: none; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--grey); }
.hero__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: center; }
.hero__slide img {
  width: 100%; height: clamp(320px, 56vw, 620px); object-fit: cover;
}
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 1.25rem;
  display: flex; justify-content: center; gap: 0.6rem;
}
.hero__dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.9); background: transparent;
  transition: background 0.25s ease;
}
.hero__dots button[aria-current="true"] { background: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: var(--sect); }
.section--cream { background: var(--cream); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--display); font-size: 0.8125rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1rem;
}
.section__head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section__head p { color: var(--muted); }

.rule { width: 48px; height: 1px; background: var(--black); border: 0; margin: 1.5rem auto; }

/* ---------- Intro (two column) ---------- */
.intro {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) { .intro { grid-template-columns: 0.85fr 1.15fr; } }
.intro__media img { width: 100%; }
.intro__sig {
  font-family: var(--display); font-size: 1.25rem; font-weight: 300;
  letter-spacing: 0.06em; margin-top: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--display); font-size: 0.875rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 2rem; border: 1px solid var(--black); background: var(--black);
  color: #fff; cursor: pointer; transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: transparent; color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--black); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { text-align: center; }
.card__icon {
  width: 44px; height: 44px; margin: 0 auto 1.25rem;
  color: var(--black);
}
.card__icon svg { width: 100%; height: 100%; stroke-width: 1; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.9875rem; }

/* ---------- Brand grid ---------- */
.brands {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 560px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .brands { grid-template-columns: repeat(5, 1fr); } }
.brands li { list-style: none; }
.brand-tile {
  background: var(--white); aspect-ratio: 3 / 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.25rem; text-align: center;
}
.brand-tile img {
  max-height: 46px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.78; transition: filter 0.3s ease, opacity 0.3s ease;
}
.brand-tile:hover img { filter: grayscale(0); opacity: 1; }
.brand-tile span {
  font-family: var(--display); font-size: 0.6875rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* Homepage highlight strip */
.brand-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.brand-strip img {
  max-height: 40px; width: auto; filter: grayscale(100%); opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.brand-strip a:hover img, .brand-strip img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Team ---------- */
.team { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team figure { margin: 0; }
.team img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 22%;
  background: var(--grey);
}
.team figcaption {
  font-family: var(--display); font-size: 1rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  margin-top: 1rem;
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: center; } }
.contact address { font-style: normal; }
.contact dl { margin: 1.75rem 0 0; display: grid; gap: 0.85rem; }
.contact dt {
  font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.contact dd { margin: 0.15rem 0 0; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact a:hover { border-color: var(--black); }

/* Öffnungszeiten — Kontaktblock Startseite */
.contact h3 { margin: 2.25rem 0 0.9rem; font-size: 1.15rem; letter-spacing: 0.06em; }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 2rem; }
.hours dt {
  font-family: var(--display); letter-spacing: 0.08em; text-transform: none;
  font-size: 0.9375rem; color: var(--ink);
}
.hours dd { margin: 0; color: var(--muted); }
.hours .is-closed { color: var(--muted); font-style: italic; }

/* ---------- Article (blog / legal) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 2.5em; font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem); }
.prose h3 { margin-top: 2em; font-size: 1.2rem; letter-spacing: 0.06em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { padding-left: 1.25rem; }
.prose figure { margin: 2.5rem 0; }
.prose figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }
.prose .lead { font-size: 1.15em; }
.legal-meta { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--black); color: #fff; }
.newsletter h2, .newsletter .eyebrow { color: #fff; }
.newsletter .eyebrow { color: rgba(255, 255, 255, 0.6); }
.newsletter p { color: rgba(255, 255, 255, 0.75); }
.nl-form {
  display: grid; gap: 0.75rem; max-width: 620px; margin: 2rem auto 0;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .nl-form { grid-template-columns: 1fr 1fr; } }
.nl-form .nl-email, .nl-form .nl-submit, .nl-form .nl-note { grid-column: 1 / -1; }
.nl-form input {
  width: 100%; font-family: var(--body); font-size: 1rem;
  padding: 0.9rem 1rem; color: #fff;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35);
}
.nl-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.nl-form input:focus { outline: none; border-color: #fff; }
.nl-form button {
  width: 100%; border-color: #fff; background: #fff; color: var(--black);
}
.nl-form button:hover { background: transparent; color: #fff; }
.nl-note { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55); margin: 0.25rem 0 0; }
.nl-note a { color: inherit; }

/* Mailchimp bot trap — must render off-screen, never display:none */
.mc-hidden { position: absolute; left: -5000px; }

/* ---------- Magazin ---------- */
.post-list { grid-template-columns: minmax(0, 420px); justify-content: center; }
.post-list a { text-decoration: none; }
.post-date { text-align: center; color: var(--muted); font-size: 0.9375rem; margin-top: 0.5rem; }

.page-head--tall { padding-block: clamp(4rem, 12vw, 8rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer__grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start;
  text-align: center;
}
@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; text-align: left; }
  .site-footer__grid > :first-child { justify-self: start; }
}
@media (min-width: 1020px) {
  .site-footer__grid { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
}

/* Social-Profile im Footer */
.social { display: flex; gap: 0.75rem; margin-top: 1.25rem; justify-content: center; }
@media (min-width: 700px) { .social { justify-content: flex-start; } }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.social a:hover { background: var(--black); border-color: var(--black); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* Öffnungszeiten — Footer, kompakt */
.hours-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.25rem; }
.hours-list dt { font-size: 0.9375rem; }
.hours-list dd { margin: 0; color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }
.site-footer img { width: 128px; margin-inline: auto; }
@media (min-width: 700px) { .site-footer img { margin-inline: 0; } }
.site-footer h4 { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; font-size: 0.9375rem; line-height: 1.7; }
.colophon {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line); text-align: center;
  font-size: 0.8125rem; color: var(--muted);
}
.colophon a { text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero, .newsletter, .nav-toggle, .btn-row { display: none; }
  body { font-size: 11pt; }
}
