/* ===========================
   Mampfies – Light Recipe Theme (WHITE + ORANGE)
   Hero image is in HTML (<img class="m-hero-img">)
   =========================== */

:root{
  --bg: #ffffff;
  --text: #1b1b22;
  --muted: rgba(27,27,34,.72);
  --border: rgba(27,27,34,.10);

  /* Highlight: ORANGE */
  --accent: #e089ad;
  --accentSoft: rgba(102, 161, 164, 0.18);
  --shadow: 0 18px 40px rgba(20, 20, 30, 0.10);
  --shadowHover: 0 26px 60px rgba(20, 20, 30, 0.14);
}

/* Base */
.mampfies-page{
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a{ color: inherit; }
.m-muted{ color: var(--muted); }

/* ===========================
   Navbar
   =========================== */
.m-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: .75rem 0;
  background: rgba(255,255,255,.84);
  border-bottom: 1px solid rgba(27,27,34,.08);
  backdrop-filter: blur(16px);
}

.m-logo-img{
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}

/* Wenn das Logo sehr hell ist: leicht mehr Kontrast */
.m-logo-img{
  /* optional: */
  /* filter: saturate(1.05) contrast(1.05); */
}

@media (max-width: 575.98px){
  .m-logo-img{ height: 34px; }
}

.m-logo-badge{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 14px 30px var(--accentSoft);
}

.m-brand-title{
  font-weight: 750;
  letter-spacing: .01em;
  line-height: 1.1;
}

.m-brand-sub{
  font-size: .82rem;
  color: var(--muted);
}

.m-nav-links .nav-link{
  color: rgba(27,27,34,.82);
  font-weight: 550;
  padding: .4rem .85rem;
  position: relative;
}

.m-nav-links .nav-link::after{
  content:"";
  position:absolute;
  left:.85rem;
  right:.85rem;
  bottom: .1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease-out;
  opacity: .9;
}

.m-nav-links .nav-link:hover{ color: rgba(27,27,34,1); }
.m-nav-links .nav-link:hover::after{ transform: scaleX(1); }

.m-nav-toggler{
  border: 1px solid rgba(27,27,34,.18);
  border-radius: 999px;
  padding: .25rem .65rem;
}

/* ===========================
   Buttons
   =========================== */
.m-btn-primary{
  border: 0;
  color: #111;
  font-weight: 700;
  border-radius: 999px;
  padding: .85rem 1.6rem;
  background: var(--accent);
  box-shadow: 0 14px 30px var(--accentSoft);
}

.m-btn-primary:hover{ filter: saturate(1.06) contrast(1.02); }

.m-btn-ghost{
  border-radius: 999px;
  padding: .85rem 1.6rem;
  border: 1px solid rgba(27,27,34,.16);
  background: rgba(255,255,255,.86);
  color: var(--text);
}

.m-btn-small{
  border-radius: 999px;
  padding: .55rem .95rem;
  border: 0;
  background: var(--accent);
  color:#111;
  font-weight: 650;
}

.m-btn-small-ghost{
  border-radius: 999px;
  padding: .55rem .95rem;
  border: 1px solid rgba(27,27,34,.16);
  background: rgba(255,255,255,.86);
}

/* ===========================
   Hero (image in HTML)
   =========================== */
.m-hero{
  position: relative;
  padding: 8.5rem 0 4.5rem;
  overflow: hidden;
  background: #fff;
}

/* <img class="m-hero-img" ...> behaves like background */
.m-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: saturate(1.02) contrast(1.02);
}

/* overlay for readability */
.m-hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.78) 45%,
      rgba(255,255,255,1) 100%
    ),
    radial-gradient(circle at 20% 30%, rgba(255,106,0,.20), transparent 50%);
}

.m-hero-content{ position: relative; z-index: 2; }

.m-eyebrow{
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  color: rgba(27,27,34,.70);
  margin-bottom: .75rem;
}

.m-hero-title{
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin-bottom: .8rem;
  font-weight: 800;
}

.m-accent{
  color: var(--accent);
}

.m-hero-subtitle{
  max-width: 44rem;
  color: rgba(27,27,34,.78);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.m-chip-row{
  display:flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 1.4rem;
}

.m-chip{
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(27,27,34,.12);
  background: rgba(255,255,255,.86);
  color: rgba(27,27,34,.86);
}

.m-cta-row{
  display:flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
  margin-top: .4rem;
}

.m-meta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.6rem;
}

.m-meta-label{
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(27,27,34,.60);
}

.m-meta-value{ font-weight: 700; }

.m-scroll{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 3.2rem;
  text-decoration: none;
  color: rgba(27,27,34,.75);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
}

.m-arrow{
  width: 14px;
  height: 14px;
  border-left: 2px solid rgba(27,27,34,.55);
  border-bottom: 2px solid rgba(27,27,34,.55);
  transform: rotate(-45deg);
  animation: mPulse 1.6s infinite;
}

@keyframes mPulse{
  0% { transform: translateY(0) rotate(-45deg); opacity: .45; }
  50% { transform: translateY(4px) rotate(-45deg); opacity: 1; }
  100% { transform: translateY(0) rotate(-45deg); opacity: .45; }
}

/* ===========================
   Cards
   =========================== */
.m-card{
  position: relative;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(27,27,34,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.m-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadowHover);
}

.m-card-body{ padding: 1.6rem 1.5rem; }

.m-icon-pill{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--accent);
  box-shadow: 0 14px 30px var(--accentSoft);
  color: #111;
  margin-bottom: .9rem;
}

.m-hero-card{
  position: relative;
  max-width: 440px;
  margin-left: auto;
}

/* optional glow wrapper, if you still use it */
.m-card-glow{
  position:absolute;
  inset:-2px;
  border-radius: 24px;
  background: var(--accent);
  filter: blur(18px);
  opacity: .22;
  z-index:0;
}

.m-card-inner{
  position:relative;
  z-index:1;
  border-radius: 24px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(27,27,34,.10);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  backdrop-filter: blur(18px);
}

.m-card-title{
  font-size: 1.15rem;
  margin-bottom: .5rem;
  font-weight: 800;
}

.m-card-text{ color: rgba(27,27,34,.76); }

.m-mini-list{
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .45rem;
}

.m-mini-list i{ margin-right: .5rem; }
.m-card-actions{
  display:flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

/* ===========================
   Sections
   =========================== */
.m-section{
  padding: 4.5rem 0;
}

.m-section-alt{
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,106,0,.03), rgba(255,255,255,1));
}

.m-section-header{
  text-align:center;
  max-width: 760px;
  margin: 0 auto 2.6rem;
}

.m-section-header p{
  color: rgba(27,27,34,.72);
  line-height: 1.65;
}

.m-divider{
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  margin: 1.1rem auto 0;
}

/* Tags */
.m-tag-row{ display:flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.m-tag{
  padding: .32rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(27,27,34,.12);
  background: rgba(255,255,255,.90);
  font-size: .78rem;
  letter-spacing: .08em;
  color: rgba(27,27,34,.82);
}

/* Bullets */
.m-bullets{
  margin: .9rem 0 0;
  padding-left: 1.2rem;
  color: rgba(27,27,34,.78);
}

.m-bullets li{ margin-bottom: .35rem; }

/* Note */
.m-note{ border-left: 6px solid rgba(102,161,164,.55); }

/* ===========================
   Timeline
   =========================== */
.m-timeline{
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 1.3rem;
}

.m-timeline::before{
  content:"";
  position:absolute;
  left: 12px;
  top: .3rem;
  bottom: .3rem;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .28;
}

.m-step{
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.6rem;
}

.m-step-marker{
  position:absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  box-shadow: 0 14px 30px var(--accentSoft);
}

.m-step-card{
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(27,27,34,.10);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem;
}

.m-step-card p{ margin-bottom: 0; color: rgba(27,27,34,.78); }

.m-summary{
  text-align:center;
  max-width: 760px;
  margin: 2rem auto 0;
  color: rgba(27,27,34,.78);
}

/* ===========================
   FAQ / Details
   =========================== */
.m-accordion{
  padding: 0;
}

.m-accordion summary{
  cursor:pointer;
  list-style:none;
  padding: 1.2rem 1.25rem;
  font-weight: 750;
}

.m-accordion summary::-webkit-details-marker{ display:none; }

.m-accordion-body{
  padding: 0 1.25rem 1.2rem;
  color: rgba(27,27,34,.76);
  line-height: 1.6;
}

/* ===========================
   Footer / Contact
   =========================== */
.m-footer{
  padding: 4.5rem 0 2.5rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(102, 161, 164, 0.18), transparent 55%),
    rgba(255,255,255,1);
  border-top: 1px solid rgba(27,27,34,.08);
}

.m-footer-eyebrow{
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  color: rgba(27,27,34,.68);
  margin-bottom: .6rem;
}

.m-footer-title{
  font-weight: 850;
  margin-bottom: .8rem;
}

.m-footer-text{
  color: rgba(27,27,34,.78);
  max-width: 40rem;
  line-height: 1.7;
}

.m-social-row{
  display:flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.2rem;
}

.m-social{
  text-decoration:none;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(27,27,34,.10);
  color: rgba(27,27,34,.86);
}

.m-form .form-label{
  font-weight: 650;
  color: rgba(27,27,34,.80);
}

.m-input{
  border-radius: 14px;
  border: 1px solid rgba(27,27,34,.14);
  background: rgba(255,255,255,.95);
}

.m-input:focus{
  border-color: rgba(255,106,0,.65);
  box-shadow: 0 0 0 2px rgba(255,106,0,.18);
}

.m-form-hint{
  margin-top: .9rem;
  font-size: .92rem;
  color: rgba(27,27,34,.70);
}

.m-footer-meta{
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(27,27,34,.10);
  display:flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  color: rgba(27,27,34,.62);
  font-size: .9rem;
}

.m-footer-link{
  color: rgba(27,27,34,.70);
  text-decoration: none;
}

.m-footer-link:hover{ text-decoration: underline; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 991.98px){
  .m-hero{ padding-top: 6.5rem; }
  .m-hero-card{ margin: 0 auto; }
}

@media (max-width: 575.98px){
  .m-meta-row{ flex-direction: column; gap: .8rem; }
  .m-scroll{ display:none; }
}
.m-about-img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  display: block;
}

@media (max-width: 991.98px){
  .m-about-img{ height: 280px; }
}

/* FIX: Primary Button darf beim Hover nicht weiß werden */
.btn.m-btn-primary:hover,
.btn.m-btn-primary:focus,
.btn.m-btn-primary:focus-visible,
.btn.m-btn-primary:active{
  background-color: #d56a97 !important;
  border-color: #d56a97 !important;
  color: #111 !important;
  box-shadow: 0 18px 40px rgba(213,106,151,.28) !important;
  filter: none !important;
}

.btn.m-btn-primary{
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #111 !important;
}


/* ===========================
   Reveal Animations
   =========================== */
.m-reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

.m-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Varianten (optional) */
.m-reveal--up{ transform: translateY(22px); }
.m-reveal--down{ transform: translateY(-18px); }
.m-reveal--left{ transform: translateX(-18px); }
.m-reveal--right{ transform: translateX(18px); }
.m-reveal--scale{ transform: scale(.98); }

/* weniger Bewegung, falls User prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .m-reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===========================
   Parallax (nur translateY)
   =========================== */
.m-parallax{
  will-change: transform;
  transform: translateY(0);
}


/* ===========================
   Legal Pages (Impressum/Datenschutz)
   =========================== */

.m-legal-hero{
  position: relative;
  padding: 7.5rem 0 2.5rem;
  overflow: hidden;
  background: #fff;
}

.m-legal-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 18%, rgba(224,137,173,.14), transparent 55%),
    radial-gradient(circle at 82% 22%, rgba(102,161,164,.14), transparent 55%),
    radial-gradient(circle at 50% 95%, rgba(224,137,173,.08), transparent 60%);
  z-index:0;
}

.m-legal-hero .container{ position: relative; z-index: 1; }

.m-legal-title{
  font-weight: 900;
  letter-spacing: -.01em;
  font-size: clamp(2.0rem, 3.2vw, 2.8rem);
  margin-bottom: .6rem;
}

.m-legal-subtitle{
  max-width: 52rem;
  color: rgba(27,27,34,.76);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Layout: Sidebar + Content */
.m-legal-wrap{
  padding: 2.5rem 0 4.5rem;
}

.m-legal-grid{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 991.98px){
  .m-legal-grid{ grid-template-columns: 1fr; }
}

/* Sticky toc */
.m-legal-toc{
  position: sticky;
  top: 92px;
}

@media (max-width: 991.98px){
  .m-legal-toc{ position: static; top: auto; }
}

.m-legal-toc a{
  text-decoration: none;
  color: rgba(27,27,34,.85);
}

.m-legal-toc a:hover{
  text-decoration: underline;
}

/* Sections */
.m-legal-section{
  scroll-margin-top: 96px; /* für sticky navbar */
}

.m-legal-section h2{
  font-weight: 850;
  font-size: 1.35rem;
  margin-bottom: .65rem;
}

.m-legal-section h3{
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: .5rem;
}

.m-legal-section p,
.m-legal-section li{
  color: rgba(27,27,34,.78);
  line-height: 1.75;
}

.m-legal-section ul{
  margin-top: .4rem;
}

.m-legal-kv{
  display: grid;
  gap: .6rem;
  margin-top: .8rem;
}

.m-legal-kv div{
  padding: .85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(27,27,34,.10);
  background: rgba(255,255,255,.92);
}

.m-legal-kv .label{
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(27,27,34,.58);
  margin-bottom: .1rem;
}

.m-legal-kv .value{
  font-weight: 750;
  color: rgba(27,27,34,.86);
}

/* Small badge row */
.m-legal-badges{
  display:flex;
  flex-wrap:wrap;
  gap: .5rem;
  margin-top: 1rem;
}

@media (max-width: 991.98px){
  .m-parallax{
    transform: none !important;
  }
}

.m-step{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.m-step.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Legal content formatting */
.m-legal-content h1{ font-weight: 900; margin-bottom: 1rem; }
.m-legal-content h2{ font-weight: 850; margin-top: 2rem; margin-bottom: .75rem; }
.m-legal-content h3{ font-weight: 800; margin-top: 1.2rem; margin-bottom: .55rem; }

.m-legal-content p{ color: rgba(27,27,34,.80); line-height: 1.75; }
.m-legal-content ul{ padding-left: 1.15rem; color: rgba(27,27,34,.80); line-height: 1.75; }
.m-legal-content li{ margin-bottom: .35rem; }

.m-legal-content .index{
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: .35rem;
}
.m-legal-content .index .index-link{
  text-decoration: none;
}
.m-legal-content .index .index-link:hover{
  text-decoration: underline;
}

/* Abstand beim Anspringen der Anker (wegen Sticky Nav) */
.m-legal-content [id]{
  scroll-margin-top: 96px;
}

/* Form Status UI */
.m-form-state{
  margin-top: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}

.m-form-loading,
.m-form-success,
.m-form-error{
  padding: 1.1rem 1.1rem;
}

.m-progress{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}

.m-progress-bar{
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  animation: mProgress 1.05s ease-in-out infinite;
}

@keyframes mProgress{
  0%   { transform: translateX(-110%); }
  50%  { transform: translateX(60%); }
  100% { transform: translateX(210%); }
}

/* Success / Error */
.m-form-success h3,
.m-form-error h3{
  margin: 0 0 .35rem;
  font-weight: 850;
}

.m-form-success{
  background: rgba(46, 204, 113, .10);
  border-left: 4px solid rgba(46, 204, 113, .85);
}

.m-form-error{
  background: rgba(231, 76, 60, .10);
  border-left: 4px solid rgba(231, 76, 60, .85);
}

/* ===========================
   Legal pages – Mobile Fix
   (Datenschutz / Impressum)
   =========================== */

/* 1) Text darf überall umbrechen (URLs, lange Begriffe, E-Mail) */
.m-legal-content,
.m-legal-content * {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Links/URLs zusätzlich sicher umbrechen */
.m-legal-content a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 2) Bilder/Embeds im Anwaltstext niemals breiter als Container */
.m-legal-content img,
.m-legal-content iframe,
.m-legal-content video {
  max-width: 100%;
  height: auto;
}

/* 3) Große Listen/Index-Listen: weniger Einzug auf Mobile */
.m-legal-content ul,
.m-legal-content ol {
  padding-left: 1.1rem;
}

.m-legal-content ul.index {
  padding-left: 1.1rem;
}

/* 4) Falls der Generator irgendwo fixe Breiten setzt: neutralisieren */
.m-legal-content [style*="width"] {
  max-width: 100% !important;
}

/* 5) Legal Grid (TOC + Content) auf Mobile untereinander */
@media (max-width: 991.98px) {
  .m-legal-grid {
    display: block !important; /* falls grid/flex */
  }

  .m-legal-toc {
    position: static !important; /* falls sticky */
    margin-bottom: 1rem;
  }
}

/* 6) Typografie und Padding im Card-Body auf sehr kleinen Screens */
@media (max-width: 575.98px) {
  .m-card-body {
    padding: 1rem !important;
  }

  .m-legal-content h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .m-legal-content h2 {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .m-legal-content h3 {
    font-size: 1.05rem;
    line-height: 1.3;
  }
}

/* 100vw kann auf iOS minimal breiter sein -> lieber 100% */
[class*="vw"], .w-100vw {
  width: 100% !important;
}

/* ===========================
   iPhone: kein horizontales Scrollen
   =========================== */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* iOS: verhindert das "Gummi"-Seitwärtsziehen noch zuverlässiger */
body {
  position: relative;
}

/* 100vw kann auf iOS minimal breiter sein -> lieber 100% */
[class*="vw"], .w-100vw {
  width: 100% !important;
}

/* iOS/Phone: verhindert seitliches "Overflow" durch translateX beim Reveal */
@media (max-width: 768px) {
  .m-reveal--left,
  .m-reveal--right {
    transform: translate3d(0, 18px, 0) !important; /* statt translateX */
  }
}

html, body {
  max-width: 100%;
  overflow-x: clip;   /* besser als hidden (wenn unterstützt) */
}

@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}

body {
  touch-action: pan-y;          /* verhindert horizontales “Pan” */
  overscroll-behavior-x: none;  /* verhindert seitliches Gummiband */
}

