/* ==========================================================================
   Kuhnen — Bäckerei Confiserie Café · Premium Landing Page
   ========================================================================== */

:root {
  --cream: #FAF3E7;
  --cream-dark: #F1E3C8;
  --brown-900: #241811;
  --brown-800: #34241a;
  --brown-700: #4a3222;
  --brown-500: #7a5c46;
  --red-700: #7c2420;
  --red-600: #a3312a;
  --gold-500: #e0a83c;
  --gold-300: #f0cd7f;
  --white: #ffffff;
  --green-600: #4c7a4f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -20px rgba(36, 24, 17, 0.35);
  --shadow-card: 0 12px 30px -14px rgba(36, 24, 17, 0.25);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown-900);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red-600);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brown-900);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--brown-700); }
.muted { color: var(--brown-500); font-size: 0.9em; }

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

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--red-600);
  margin: 0 0 4px;
  display: inline-block;
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { display: block; }
.section-lead { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.full-width { width: 100%; }

.btn-primary {
  background: var(--red-600);
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(163, 49, 42, 0.55);
}
.btn-primary:hover { background: var(--red-700); }

.btn-outline {
  background: transparent;
  border-color: var(--red-600);
  color: var(--red-600);
}
.btn-outline:hover { background: var(--red-600); color: #fff; }

.btn-outline-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover { background: #fff; color: var(--brown-900); }

.btn-ghost {
  background: var(--cream-dark);
  color: var(--brown-800);
}
.btn-ghost:hover { background: var(--gold-300); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 231, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36,24,17,0.08);
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-img { height: 58px; width: auto; display: block; }
.footer-logo-img { height: 50px; }

.nav { display: flex; gap: 16px; flex-wrap: nowrap; align-items: center; }
.nav a {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--brown-800);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--red-600);
  transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--brown-900);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 110px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(224,168,60,0.3), transparent 45%),
    linear-gradient(160deg, rgba(36,24,17,0.94) 0%, rgba(58,36,24,0.88) 45%, rgba(124,36,32,0.85) 100%),
    url("../images/cafe-laden.jpg");
  background-size: cover;
  background-position: center 65%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
}
.hero-inner { max-width: 720px; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}
.hero-scroll span {
  display: block;
  width: 4px; height: 8px;
  background: var(--gold-300);
  border-radius: 4px;
  margin: 7px auto 0;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--brown-900); padding: 36px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-300); font-weight: 600; }
.trust-label { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.trust-badge-img { height: 44px; width: auto; }

/* ---------- Sections generic ---------- */
section { padding: 96px 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--red-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--brown-800);
  font-weight: 500;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--gold-500);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Sortiment ---------- */
.sortiment { background: var(--cream-dark); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.offer-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.offer-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--gold-300), var(--gold-500));
  color: var(--brown-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.offer-card p { font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Occasions ---------- */
.occasions-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.occasion-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.occasion-tags.center { justify-content: center; }
.occasion-tags span {
  background: #fff;
  border: 1.5px solid var(--gold-500);
  color: var(--brown-800);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Locations ---------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.location-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.location-media { aspect-ratio: 4/3; overflow: hidden; }
.location-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.location-card:hover .location-media img { transform: scale(1.05); }
.location-card > .location-top,
.location-card > .location-tag,
.location-card > address,
.location-card > .hours-list,
.location-card > .location-note,
.location-card > .location-actions {
  margin-left: 26px;
  margin-right: 26px;
}
.location-card > .location-top { margin-top: 22px; }
.location-card > .location-actions { margin-bottom: 26px; }
.location-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.location-top h3 { margin-bottom: 0; }
.status-badge { flex-shrink: 0; }
.location-tag { color: var(--red-600); font-size: 0.82rem; font-weight: 600; margin-bottom: 10px; }
.location-card address { font-style: normal; color: var(--brown-700); margin-bottom: 14px; font-size: 0.92rem; }

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--cream-dark);
  color: var(--brown-700);
}
.status-badge.status-open { background: rgba(76,122,79,0.15); color: var(--green-600); }
.status-badge.status-closed { background: rgba(163,49,42,0.12); color: var(--red-600); }
.status-seasonal { background: rgba(224,168,60,0.2); color: #a1751e; }

.hours-list { list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.88rem; }
.hours-list li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed rgba(36,24,17,0.1); color: var(--brown-700); }
.hours-list li:last-child { border-bottom: none; }
.location-note { font-size: 0.75rem; color: var(--brown-500); margin: -8px 0 14px; }

.location-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

/* ---------- Ferien ---------- */
.ferien { background: var(--cream-dark); }
.ferien-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ferien-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ferien-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.ferien-media { aspect-ratio: 3/2; overflow: hidden; }
.ferien-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ferien-card:hover .ferien-media img { transform: scale(1.05); }
.ferien-card-body { padding: 22px 26px 26px; }
.ferien-card-body h3 { color: var(--red-600); }
.ferien-card-body p { margin-bottom: 0; font-size: 0.93rem; }
.ferien-cta { text-align: center; margin-top: 40px; }

/* ---------- Jobs ---------- */
.jobs {
  background: linear-gradient(160deg, var(--brown-900), var(--red-700));
  color: #fff;
  text-align: center;
}
.jobs-inner { max-width: 720px; margin: 0 auto; }
.jobs h2 { color: #fff; }
.jobs .eyebrow { color: var(--gold-300); }
.jobs-lead { color: rgba(255,255,255,0.85); }
.jobs .occasion-tags span { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: #fff; }

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0 36px;
  text-align: left;
}
.job-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.job-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); border-color: var(--gold-300); }
.job-card h3 { color: #fff; font-size: 1.05rem; margin: 0; }
.job-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-card-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(224,168,60,0.18);
  color: var(--gold-300);
}
.job-card-arrow { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--gold-300); }
.jobs-secondary-note { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-top: 20px; }

/* ---------- Job detail page ---------- */
.job-hero {
  background: linear-gradient(160deg, var(--brown-900), var(--red-700));
  color: #fff;
  padding: 130px 0 56px;
}
.job-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.job-hero-back:hover { color: var(--gold-300); }
.job-hero h1 { color: #fff; max-width: 700px; }
.job-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.job-hero-tags span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.job-body { padding: 64px 0; }
.job-body-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.job-content h2 { font-size: 1.4rem; margin-top: 36px; }
.job-content h2:first-child { margin-top: 0; }
.job-content > p:first-of-type { font-size: 1.05rem; color: var(--brown-800); }

.job-info-card {
  background: var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.job-info-card dl { margin: 0 0 22px; display: grid; gap: 14px; }
.job-info-card dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brown-500); margin-bottom: 2px; }
.job-info-card dd { margin: 0; font-weight: 600; color: var(--brown-900); }

.job-cta-band {
  background: linear-gradient(160deg, var(--brown-900), var(--red-700));
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.job-cta-band h2 { color: #fff; }
.job-cta-band p { color: rgba(255,255,255,0.85); max-width: 480px; margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  .job-body-grid { grid-template-columns: 1fr; }
  .job-info-card { position: static; }
}
@media (max-width: 700px) {
  .job-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--brown-800); }
.contact-list svg { color: var(--red-600); flex-shrink: 0; }
.contact-list a { font-weight: 600; }

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.83rem; font-weight: 600; color: var(--brown-800); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(36,24,17,0.15);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--brown-900);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red-600);
  background: #fff;
}
.form-note { font-size: 0.78rem; color: var(--brown-500); text-align: center; margin: 0; }

.form-thanks {
  background: #fff;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-thanks strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--red-600); }
.form-thanks span { color: var(--brown-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-900); color: rgba(255,255,255,0.75); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-tag { margin-top: 16px; font-size: 0.88rem; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.75); transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-300); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a:hover { color: var(--gold-300); }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(36,24,17,0.15);
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.mobile-cta-bar {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mobile-cta-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brown-800);
  padding: 6px 0;
}
.mobile-cta-bar a:first-child { color: var(--red-600); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-primary { display: none; }

  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid rgba(36,24,17,0.08);
    box-shadow: var(--shadow-card);
  }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .mobile-cta-bar { display: grid; }
  body { padding-bottom: 64px; }
}

@media (max-width: 620px) {
  section { padding: 64px 0; }
  .hero { padding: 120px 0 90px; }
  .card-grid, .location-grid, .ferien-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
