:root {
  --kf-primary: #1f4e36;
  --wf-accent: #b8292f;
  --wf-gold: #e09f3e;
  --kf-brand-dark: #2b241f;
  --kf-light: #fbf6eb;
  --kf-font-brand: 'Signika Negative', sans-serif;
  --header-height: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #2b241f;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  touch-action: pan-y;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  box-sizing: border-box;
}

h1, p, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* --- 2. HEADER & BRANDING --- */
.header-wrapper {
  background: var(--kf-light);
  border-bottom: 6px solid var(--kf-primary);

  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(31, 78, 54, 0.1);
}

.header-wrapper.is-scrolled .logo-badge {
  transform: translateY(-100%) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  position: relative;
  width: 100%;
}

.brand-lettering {
  font-family: var(--kf-font-brand);
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: -1.5px;
  line-height: 1;
  flex-shrink: 0;
}

.brand-kitchen { color: var(--kf-brand-dark); }
.brand-fox { color: var(--wf-accent); }

/* Navigation im Header */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-right: 250px;
}

.main-nav a {
  text-decoration: none;
  color: var(--kf-brand-dark);
  font-family: var(--kf-font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}

.main-nav a:hover {
  color: var(--wf-accent);
}

/* --- 3. LOGO BADGE (DER FUCHS IM FENSTER) --- */
.logo-badge {
  position: absolute;
  right: -30px;
  top: -40px;
  width: 260px;
  height: 260px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(31, 78, 54, 0.16);
  display: flex;
  align-items: flex-end; /* Unten ausrichten, damit sie am Rand aufliegt */
  justify-content: center;
  z-index: 1100;
  border: 2px solid rgba(31, 78, 54, 0.12);
  backface-visibility: hidden;
  overflow: visible; /* Mütze darf oben leicht überstehen */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.logo-badge img {
  width: 78%;
  height: auto;
  transform: translateY(11px); /* Schiebt sie tiefer, sodass die Pfoten unten auf dem Kreis liegen */
}

/* --- 4. HERO SEKTION --- */
.hero-section h1 {
  font-family: var(--kf-font-brand);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0px;
  text-shadow: 2px 2px 10px rgba(15, 36, 25, 0.8);
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 650px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 5px rgba(15, 36, 25, 0.8);
}

/* --- 5. APP-BUTTONS (QUICK GRID) --- */
.app-grid-quick {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

.quick-btn {
  display: inline-block;
  background: var(--wf-accent);
  border: 2px solid var(--wf-accent);
  color: var(--kf-light) !important;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.quick-btn:hover {
  background: var(--kf-primary);
  border-color: var(--kf-primary);
  transform: translateY(-3px);
}

/* --- 6. FOOTER --- */
.footer-wrapper {
  padding: 40px 0;
  text-align: center;
  background: #f3ead8;
  border-top: 3px solid var(--kf-primary);
}

.footer-links a {
  color: var(--kf-primary);
  font-weight: bold;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  color: var(--wf-accent);
}

/* --- 4. NAVIGATION & MOBILE OVERLAY --- */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 6000;
  -webkit-tap-highlight-color: transparent;
}

/* --- 10. CHARAKTER KARTEN (ORIGINAL DESIGN) --- */
.fuchs-card {
  display: flex;
  background: #fffdf9;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(31, 78, 54, 0.1);
  max-width: 900px;
  margin: 20px auto;
  overflow: hidden;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  border: 1px solid #e6dcc8;
}

.fuchs-left {
  flex: 0 0 40%;
  background: #f4ede0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
}

.fuchs-left img {
  max-width: 110%;
  height: auto;
  display: block;
}

.fuchs-right {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.fuchs-info h2 {
  margin: 0 0 5px 0;
  font-size: 28px;
  color: var(--kf-brand-dark);
  font-family: var(--kf-font-brand);
}

.fuchs-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 50px;
  background: var(--wf-accent);
  color: #fffdf9;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.fuchs-text {
  font-size: 16px;
  line-height: 1.6;
  color: #554b44;
  margin-bottom: 30px;
}

/* Chat-Fenster Logik */
.fuchs-chat-box {
  background: #f2eadc;
  padding: 15px;
  border-radius: 15px;
  border-left: 6px solid var(--kf-primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.fuchs-chat-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: #fffdf9;
  border: 2px solid var(--wf-gold);
}

.fuchs-chat-main {
  flex: 1;
}

.fuchs-chat-label {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--kf-primary);
  opacity: 0.85;
}

.fuchs-chat-content {
  font-size: 15px;
  font-style: italic;
  color: #3a322c;
}

@media (max-width: 768px) {
  .fuchs-card {
    flex-direction: column;
  }
  .fuchs-left {
    padding-top: 40px;
  }
}

/* ==========================================================================
11. FAQ BEREICH (KARTEN AKKORDEON)
   ========================================================================== */
.kitchenfox-chat-container {
  max-width: 90%;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px;
}

.faq-card-wrapper {
  background: #fffdf9;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(31, 78, 54, 0.08);
  overflow: hidden;
  border: 1px solid #e6dcc8;
  transition: all 0.3s ease;
}

.faq-card-wrapper:hover {
  box-shadow: 0 8px 30px rgba(31, 78, 54, 0.14);
  transform: translateY(-2px);
}

.faq-card-wrapper.is-active {
  border-color: var(--wf-accent);
}

.faq-card-header {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fffdf9;
}

.faq-card-header h3 {
  margin: 0;
  font-family: var(--kf-font-brand);
  color: var(--kf-brand-dark);
  font-size: 1.4rem;
  line-height: 1.3;
}

.faq-toggle-icon {
  font-size: 0.8rem;
  color: #8c7f73;
  transition: transform 0.4s ease;
}

.faq-card-wrapper.is-active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--wf-accent);
}

.gusto-response-area {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-chat-pair.is-typing .gusto-response-area,
.faq-chat-pair.is-active .gusto-response-area {
  grid-template-rows: 1fr;
}

.typing-wrapper, .answer-wrapper {
  min-height: 0;
  overflow: hidden;
  display: none;
}

.faq-chat-pair.is-typing .typing-wrapper {
  display: block;
}

.faq-chat-pair.is-active .answer-wrapper {
  display: block;
}

.faq-card-body {
  padding: 0 30px 30px 30px;
  border-top: 1px solid #efe7d6;
  background: #faf5ea;
  padding-top: 25px;
}

.faq-fox-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.faq-fox-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--kf-primary);
  object-fit: cover;
}

.faq-fox-name {
  font-weight: bold;
  color: var(--kf-primary);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.faq-answer-content {
  color: #3a322c;
  line-height: 1.7;
  font-size: 1.1rem;
  padding-left: 65px;
}

.typing-indicator {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-left: 65px;
  margin-top: -10px;
  margin-bottom: 10px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: var(--wf-accent);
  border-radius: 50%;
  animation: kf-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes kf-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media screen and (max-width: 768px) {
  .faq-card-header {
    padding: 20px;
  }
  .faq-card-header h3 {
    font-size: 1.2rem;
  }
  .faq-card-body {
    padding: 20px;
  }
  .faq-answer-content, .typing-indicator {
    padding-left: 0;
    margin-top: 15px;
  }
}

/* ==========================================================================
12. HILFE-SEKTION (BAUKASTEN-MODULE)
   ========================================================================== */
.help-text-block,
.help-image-block,
.help-video-block {
  max-width: 800px;
  margin: 0 auto 35px auto;
  padding: 0 20px;
}

.help-headline {
  font-family: var(--kf-font-brand);
  color: var(--kf-primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
  margin-top: 20px;
}

.help-content {
  font-size: 1.15rem;
  color: #2b241f;
  line-height: 1.8;
}

.help-image-block {
  text-align: center;
}

.help-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(31, 78, 54, 0.1);
  border: 1px solid #e6dcc8;
}

.help-image-caption {
  font-size: 0.9rem;
  color: #7a6f66;
  margin-top: 10px;
  font-style: italic;
}

.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(31, 78, 54, 0.12);
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
13. LIGHTBOX (VANILLA JS)
   ========================================================================== */
.help-image.js-lightbox-trigger {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-image.js-lightbox-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(224, 159, 62, 0.25);
}

.kf-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 36, 25, 0.88);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.kf-lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.kf-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kf-lightbox-overlay.is-active .kf-lightbox-img {
  transform: scale(1);
}

.kf-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fbf6eb;
  font-size: 3.5rem;
  cursor: pointer;
  line-height: 1;
  font-family: var(--kf-font-brand);
  transition: color 0.2s;
  user-select: none;
}

.kf-lightbox-close:hover {
  color: var(--wf-gold);
}

/* ==========================================================================
14. BILD & TEXT SPLIT BLOCK (HILFE SEKTION)
   ========================================================================== */
.help-split-block {
  max-width: 900px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.help-split-block.layout-img-left {
  flex-direction: row;
}

.help-split-block.layout-img-right {
  flex-direction: row-reverse;
}

.help-split-block.layout-img-center {
  justify-content: center;
}

.help-split-block:not(.layout-img-center) .help-split-image-container {
  flex: 0 0 30%;
  max-width: 300px;
}

.help-split-block:not(.layout-img-center) .help-split-text-container {
  flex: 1;
}

.help-split-block.layout-img-center .help-split-image-container {
  width: 100%;
  max-width: 450px;
}

@media screen and (max-width: 768px) {
  .help-split-block {
    flex-direction: column !important;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .help-split-block:not(.layout-img-center) .help-split-image-container {
    max-width: 250px;
  }
}

/* ==========================================================================
15. KONTO LÖSCHEN FORMULAR
   ========================================================================== */
.deletion-card-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.deletion-card {
  background: #fffdf9;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(31, 78, 54, 0.08);
  max-width: 500px;
  width: 100%;
  border: 2px solid #e6dcc8;
}

.deletion-card h2 {
  color: var(--kf-primary);
  margin-top: 0;
  font-family: var(--kf-font-brand);
  font-size: 2rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 20px;
}

.deletion-intro-text {
  margin-bottom: 25px;
  color: #554b44;
  font-size: 1.05rem;
}

.deletion-label {
  display: block;
  margin: 20px 0 8px;
  color: var(--kf-brand-dark);
  font-weight: bold;
}

.deletion-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e6dcc8;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 1rem;
  font-family: var(--kf-font-body);
  background: #fbf6eb;
  color: var(--kf-brand-dark);
  transition: var(--transition);
}

.deletion-input:focus {
  border-color: var(--kf-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 78, 54, 0.15);
}

.deletion-btn {
  background: var(--wf-accent);
  color: #fbf6eb;
  border: none;
  padding: 16px;
  width: 100%;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
  transition: 0.3s ease;
  text-transform: uppercase;
}

.deletion-btn:hover {
  background: #961e23;
  transform: translateY(-2px);
}

.deletion-msg {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  font-weight: bold;
  text-align: center;
}

.deletion-msg.error {
  background: #fdf2f2;
  color: #b8292f;
  border: 1px solid #f3c6c8;
}

.deletion-msg.success {
  background: #edf7f1;
  color: #1f4e36;
  border: 1px solid #b7dec7;
}

.deletion-hp {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* ==========================================================================
16. 404 FEHLERSEITE
   ========================================================================== */
.error-404-section {
  padding: 60px 0;
  text-align: center;
}

.error-404-content {
  max-width: 650px;
  margin: 0 auto;
  background: #fffdf9;
  padding: 50px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(31, 78, 54, 0.06);
  border: 2px solid #e6dcc8;
}

.headline-404 {
  font-family: var(--kf-font-brand);
  font-size: 3.5rem;
  color: var(--kf-brand-dark);
  margin-bottom: 15px;
  line-height: 1.1;
}

.headline-404 span {
  color: var(--wf-accent);
}

.text-404 {
  font-size: 1.2rem;
  color: #554b44;
  margin-bottom: 30px;
  line-height: 1.6;
}

.image-wrapper-404 {
  margin-bottom: 30px;
}

.fox-task-list {
  list-style: none;
  padding: 0;
  text-align: left;
  display: inline-block;
  margin-bottom: 30px;
}

.fox-task-list li {
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
}

.fox-task-list li::before {
  content: '🦊';
  position: absolute;
  left: 0;
}

.wait-text {
  font-style: italic;
  margin-bottom: 20px;
}

.image-wrapper-404 img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(31, 78, 54, 0.12);
}

.cta-back-home p {
  font-style: italic;
  color: #7a6f66;
  margin-bottom: 15px;
}

/* ==========================================================================
17. DOWNLOAD / APP STORE BEREICH
   ========================================================================== */
.download-section {
  background: linear-gradient(135deg, #1f4e36 0%, #2b6447 100%);
  color: var(--kf-light);
  padding: 80px 0;
  border-top: 3px solid var(--wf-gold);
  border-bottom: 3px solid var(--wf-gold);
  margin: 40px 0;
}

.download-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.download-content {
  flex: 1;
}

.download-content h2 {
  font-family: var(--kf-font-brand);
  font-size: 3rem;
  color: var(--kf-light);
  margin-bottom: 20px;
  line-height: 1.1;
}

.download-text {
  font-size: 1.2rem;
  color: #f3ead8;
  margin-bottom: 30px;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  background: #14110f;
  color: #fbf6eb !important;
  text-decoration: none !important;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid rgba(224, 159, 62, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.store-icon {
  font-size: 1.8rem;
  margin-right: 15px;
  line-height: 1;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-text small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 3px;
}

.store-text strong {
  font-size: 1.3rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.5px;
}

.download-image {
  flex: 0 0 40%;
  text-align: center;
}

.download-image img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

@media screen and (max-width: 768px) {
  .download-section {
    padding: 50px 0;
  }
  .download-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .download-buttons {
    justify-content: center;
  }
  .download-content h2 {
    font-size: 2.2rem;
  }
  .store-text {
    align-items: flex-start;
  }
}

/* ==========================================================================
18. HILFE / SIDEBAR NAVIGATION
   ========================================================================== */
.kf-nav-block {
  background: #fffdf9;
  border: 1px solid #e6dcc8;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(31, 78, 54, 0.04);
  overflow: hidden;
  max-width: 400px;
}

.kf-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  background: #fbf6eb;
  transition: background 0.3s ease;
}

.kf-nav-header:hover {
  background: #f3ead8;
}

.kf-nav-header h4 {
  margin: 0;
  font-family: var(--kf-font-brand);
  color: var(--kf-brand-dark);
  font-size: 1.2rem;
}

.kf-nav-icon {
  font-size: 0.8rem;
  color: var(--wf-accent);
  transition: transform 0.3s ease;
}

.kf-nav-block.is-open .kf-nav-header {
  border-bottom: 1px solid #e6dcc8;
}

.kf-nav-block.is-open .kf-nav-icon {
  transform: rotate(180deg);
}

.kf-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  background: #fffdf9;
}

.kf-nav-block.is-open .kf-nav-list {
  display: block;
}

.kf-nav-list li {
  border-bottom: 1px solid #f2eadc;
}

.kf-nav-list li:last-child {
  border-bottom: none;
}

.kf-nav-list a {
  display: block;
  padding: 12px 20px 12px 30px;
  color: #4d433c;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: all 0.2s ease;
}

.kf-nav-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--wf-accent);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.kf-nav-list a:hover {
  color: var(--kf-primary);
  background: #fbf6eb;
  padding-left: 35px;
}

.kf-nav-list a:hover::before {
  transform: scaleY(1);
}

/* =========================================================================
19. HILFE MENÜ / INHALTSVERZEICHNIS
========================================================================= */
.kf-help-menu-wrapper {
  background: #fffdf9;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(31, 78, 54, 0.06);
  border: 1px solid #e6dcc8;
  max-width: 400px;
  margin-bottom: 30px;
}

.kf-help-menu-title {
  font-family: var(--kf-font-brand);
  color: var(--kf-primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #e6dcc8;
  padding-bottom: 10px;
  margin-top: 0;
}

.kf-help-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kf-help-menu-item {
  margin-bottom: 10px;
}

.kf-help-link {
  display: block;
  padding: 12px 15px;
  color: var(--kf-brand-dark);
  text-decoration: none;
  font-weight: bold;
  background: #fbf6eb;
  border-radius: 8px;
  transition: all 0.2s;
  border: 1px solid #e6dcc8;
}

.kf-help-link:hover {
  background: #f3ead8;
  color: var(--wf-accent);
  border-color: var(--wf-gold);
  transform: translateX(5px);
}

.kf-help-details {
  background: #fbf6eb;
  border-radius: 8px;
  border: 1px solid #e6dcc8;
  overflow: hidden;
}

.kf-help-summary {
  padding: 12px 15px;
  font-weight: bold;
  color: var(--kf-brand-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.kf-help-summary::after {
  content: '▼';
  font-size: 0.7rem;
  color: #8c7f73;
  transition: transform 0.3s;
}

.kf-help-details[open] .kf-help-summary {
  background: #f3ead8;
  color: var(--kf-primary);
  border-bottom: 1px solid #e6dcc8;
}

.kf-help-details[open] .kf-help-summary::after {
  transform: rotate(180deg);
  color: var(--wf-accent);
}

.kf-help-submenu {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  background: #fffdf9;
}

.kf-help-submenu li a {
  display: block;
  padding: 8px 15px 8px 30px;
  color: #554b44;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.kf-help-submenu li a:hover {
  color: var(--wf-accent);
  font-weight: bold;
}

/* ==========================================================================
20. NEUE STARTSEITEN-SEKTIONEN (FEATURES & SHOWCASE)
   ========================================================================== */
.features-section,
.app-showcase-section {
  padding: 80px 0;
}

.grid-3-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  text-align: center;
}

.grid-2-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-box {
  padding: 30px;
  border-radius: 15px;
  background: #fffdf9;
  border: 1px solid #e6dcc8;
  box-shadow: 0 5px 20px rgba(31, 78, 54, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(31, 78, 54, 0.1);
}

.fefature-icon {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-family: var(--kf-font-brand);
  color: var(--kf-primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-box p {
  color: #554b44;
  line-height: 1.6;
}

.app-showcase-section {
  background: linear-gradient(to right, #f3ead8, #fffdf9);
  border-top: 2px solid #e6dcc8;
}

.showcase-text h2 {
  font-family: var(--kf-font-brand);
  font-size: 2.5rem;
  color: var(--kf-brand-dark);
  margin-bottom: 25px;
  line-height: 1.1;
}

.showcase-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 35px;
}

.showcase-text li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #3a322c;
}

.showcase-image {
  text-align: center;
}

.showcase-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(31, 78, 54, 0.16);
}

.cta-button {
  display: inline-block;
  background: var(--wf-accent);
  color: #fbf6eb !important;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(184, 41, 47, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(31, 78, 54, 0.28);
  background: var(--kf-primary);
}

@media (max-width: 768px) {
  .features-section, .app-showcase-section {
    padding: 50px 0;
  }

  .grid-2-columns {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .showcase-image {
    order: -1;
    margin-bottom: 20px;
  }

  .showcase-text ul {
    text-align: left;
    display: inline-block;
    margin-top: 20px;
  }

  .feature-box {
    padding: 25px;
  }
}

/* --- DER FUCHS KARTEN-STAPEL --- */
.fx-image-stack {
  position: relative;
  display: inline-block;
  z-index: 1;
  margin-top: 30px;
  margin-right: 30px;
}

.fx-frame {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 12px;
  opacity: 0;
}

.fx-frame-1 {
  background-color: var(--wf-gold);
  z-index: -2;
  animation: fxSlideInBack 10.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.4s;
}

.fx-frame-2 {
  background-color: var(--kf-primary);
  z-index: -1;
  animation: fxSlideInMiddle 8.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.2s;
}

.fx-main-image {
  position: relative;
  z-index: 10;
  border-radius: 12px;
  display: block;
  max-width: 100%;
  height: auto;
  border: 8px solid #fffdf9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  animation: fxPopIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fxPopIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fxSlideInMiddle {
  0% { transform: translate(50px, -50px); opacity: 0; }
  100% { transform: translate(15px, -15px); opacity: 1; }
}

@keyframes fxSlideInBack {
  0% { transform: translate(80px, -80px); opacity: 0; }
  100% { transform: translate(30px, -30px); opacity: 1; }
}

.hamburger::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: var(--kf-brand-dark) !important;
  border-radius: 4px;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* --- MOBILE MENU STYLING --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--kf-light);
  z-index: 900;
  padding: 130px 20px 40px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-section {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-overlay.is-open .mobile-nav-section {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.is-open .mobile-nav-section:nth-child(3) {
  transition-delay: 0.1s;
}

.mobile-nav-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #8c7f73;
  margin-bottom: 20px;
  font-weight: 700;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  font-family: var(--kf-font-brand);
  font-size: 2rem;
  color: var(--kf-brand-dark);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
  display: block;
}

.mobile-nav a:hover {
  color: var(--wf-accent);
}

.mobile-nav-section:last-child a {
  color: var(--kf-primary);
}

.mobile-nav-section:last-child a:hover {
  color: var(--wf-accent);
}

.mobile-nav-divider {
  height: 1px;
  background: #e6dcc8;
  margin: 30px 0;
  width: 100%;
}

/* --- 5. RESPONSIVE BREAKPOINT --- */
@media (max-width: 1100px) {
  .main-nav { display: none !important; }
  .hamburger {
    display: block !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 24px;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--kf-brand-dark);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 10px; opacity: 1; color: var(--wf-accent); }
  .hamburger span:nth-child(3) { top: 20px; }

  .hamburger.is-active span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  .hamburger.is-active span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
  }

  .header-content {
    height: 90px;
  }

  .brand-lettering {
    font-size: 2.5rem;
  }

  .logo-badge {
    width: 150px;
    height: 150px;
    top: -20px;
    right: 60px;
  }

  .header-wrapper.is-scrolled .logo-badge {
    transform: translateY(-120%) scale(0.1);
    opacity: 0;
  }

  .hero-section {
    background: linear-gradient(rgba(20, 45, 32, 0.45), rgba(20, 45, 32, 0.45)),
      url('media/fox_at_work_wide.jpg') no-repeat center center;
    background-size: cover;
    color: var(--kf-light);
    padding: 40px 0;
    border-bottom: 6px solid var(--kf-primary);
    min-height: 450px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .logo-badge {
    display: none;
  }
}

@media (max-width: 775px) {
  .fuchs-left {
    display: none;
  }
}

.table-responsive {
  scrollbar-width: thin;
  scrollbar-color: var(--kf-primary) #f3ead8;
}

#absenceTable th {
  font-family: var(--kf-font-brand);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  #absenceTable {
    font-size: 0.85rem;
  }
  .kf-section-header {
    text-align: center;
  }
}

/* ==========================================================================
21. BREADCRUMBS (NAVIGATIONS-PFAD) - REFINED
   ========================================================================== */
.kf-breadcrumb-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 25px 0 10px 0;
  margin: 0;
  font-family: var(--kf-font-brand);
  font-size: 1rem;
  line-height: 1.2;
  list-style: none;
}

.kf-breadcrumb-wrapper a.kf-breadcrumb-link {
  color: var(--kf-brand-dark);
  text-decoration: none;
  font-weight: 700;
  font-style: italic;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.kf-breadcrumb-wrapper a.kf-breadcrumb-link:hover {
  color: var(--wf-accent);
  border-bottom-color: var(--wf-accent);
}

.kf-breadcrumb-separator {
  margin: 0 12px;
  color: var(--kf-primary);
  font-weight: 700;
  font-size: 1.1rem;
  user-select: none;
}

.kf-breadcrumb-current {
  color: #8c7f73;
  font-weight: 700;
  font-style: italic;
  cursor: default;
}

header.header-wrapper + main .container .kf-breadcrumb-wrapper {
  margin-top: 5px;
}

@media (max-width: 768px) {
  .kf-breadcrumb-wrapper {
    padding: 15px 0 5px 0;
    font-size: 0.9rem;
  }

  .kf-breadcrumb-separator {
    margin: 0 8px;
  }
}

.help-header {
  border-left: 6px solid var(--kf-primary);
  padding-left: 20px;
  margin-bottom: 40px;
}

.help-content ul.fox-task-list {
  margin: 20px 0;
}

.fuchs-chat-box {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}