/* ================================================
   AMR WEBDESIGN 2026 - Haupt-CSS v6
   ================================================ */

/* ------------------------------------------------
   FONTS — Montserrat + Inter (lokal)
   ------------------------------------------------ */
@font-face {
  font-family: "Montserrat";
  src: url('../Fonts/Montserrat/Montserrat-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url('../Fonts/Montserrat/Montserrat-Variable-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url('../Fonts/Inter/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------
   BOOTSTRAP OVERRIDES — muss vor allem anderen stehen
   ------------------------------------------------ */
a, a:link, a:visited {
  color: #d56a34;
  text-decoration: none;
}
a:hover {
  color: #3f170e;
  text-decoration: underline;
}
.nav-link,
.nav-link:link,
.nav-link:visited {
  color: #3f170e !important;
  text-decoration: none !important;
}
.nav-link:hover,
.nav-link:focus {
  color: #555555 !important;
  text-decoration: none !important;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: var(--font-size-base, 16px);
  color: var(--color-text, #333);
  background-color: var(--page-bg, #ffffff);
  margin: 0;
  padding: 0;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--color-headings, #3f170e);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* ------------------------------------------------
   CONTAINER
   ------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--layout-max-width, 1140px);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ------------------------------------------------
   TOPBAR
   ------------------------------------------------ */
.topbar {
  background-color: var(--topbar-bg, #2a0e08);
  color: #cccccc;
  min-height: var(--topbar-height, 40px);
  display: flex;
  align-items: center;
}
.topbar a {
  color: #cccccc;
  font-size: 0.85rem;
  text-decoration: none;
}
.topbar a:hover {
  color: #ffffff;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .topbar { display: none !important; }
}

/* ------------------------------------------------
   LOGO
   ------------------------------------------------ */
.logo-section {
  background-color: var(--page-bg, #ffffff);
  padding: 0.6rem 0;
  text-align: center;
}
.logo-section img {
  width: auto;
  max-height: var(--logo-height, 60px);
  max-width: var(--logo-width, 200px);
  margin: 0 auto;
  display: inline-block;
}

/* ------------------------------------------------
   NAVIGATION — Bootstrap Navbar
   ------------------------------------------------ */

/* AMR Dropdown Button — trennt Link von Toggle */
.amr-dropdown-btn {
  background: transparent;
  border: none;
  color: #3f170e;
  padding: 0 0.5rem;
  cursor: pointer;
  font-size: 0.7rem;
  vertical-align: middle;
  line-height: 1;
}
.amr-dropdown-btn:hover {
  color: #d56a34;
}

/* AMR Dropdown Button — SVG Chevron */
.amr-dropdown-btn {
  background: transparent;
  border: none;
  color: #3f170e;
  padding: 0 0.4rem;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.amr-dropdown-btn svg {
  width: 12px;
  height: 12px;
  stroke: #3f170e;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.amr-dropdown-btn:hover svg {
  stroke: #d56a34;
}
.nav-item.dropdown.show .amr-dropdown-btn svg {
  transform: rotate(180deg);
}

/* Aktive Seite — kein Bootstrap-Blau */
.nav-item.active > .nav-link,
.dropdown-item.active,
.dropdown-item:active {
  background-color: #f5e6d8 !important;
  color: #3f170e !important;
}

/* Nav-Item mit Unterseiten — Link und Button in einer Zeile */
.nav-item.dropdown {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-item.dropdown .nav-link {
  flex: 0 0 auto;
}
.nav-item.dropdown .dropdown-menu {
  top: 100%;
  left: 0;
  position: absolute;
}

/* Mobile: untereinander */
@media (max-width: 767px) {
  .nav-item.dropdown {
    flex-wrap: wrap;
  }
  .nav-item.dropdown .amr-dropdown-btn {
    padding: 0.8rem 1rem;
  }
  .nav-item.dropdown .dropdown-menu {
    position: static !important;
    width: 100%;
  }
}

/* ---- NAVBAR — Logo links, Nav rechts ---- */
.amr-navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f0dfc0;
  padding: 0.75rem 0;
  width: 100%;
}
.amr-navbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin-right: 1rem;
  line-height: 1;
  flex-shrink: 1;
  min-width: 0;
  max-width: calc(100% - 80px);
}
.amr-navbar .navbar-brand img {
  height: var(--logo-height, 75px);
  width: auto;
  max-width: 100%;
  display: block;
}
.amr-navbar .navbar-toggler {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .amr-navbar .navbar-brand img {
    height: 48px !important;
    max-width: 200px;
  }
}
.amr-navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: var(--layout-max-width, 1280px);
}
@media (min-width: 768px) {
  .amr-navbar .container {
    flex-wrap: nowrap;
  }
}
.amr-navbar .navbar-nav {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}
.amr-navbar .navbar-collapse {
  justify-content: flex-end;
  flex-grow: 0;
}

/* ---- DESKTOP ---- */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f0dfc0;
  padding: 0.75rem 0;
  width: 100%;
}
.navbar > .container {
  justify-content: space-between;
}
.navbar-collapse {
  flex-grow: 0;
  justify-content: flex-end;
}
.navbar-nav {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navbar .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link:link,
.navbar .navbar-nav .nav-link:visited {
  color: #3f170e !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 1rem 1.1rem !important;
  white-space: nowrap;
  text-decoration: none !important;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active {
  color: #555555 !important;
  background-color: #f5e6d8;
  border-radius: 4px;
  text-decoration: none !important;
}
.navbar-toggler {
  background-color: transparent !important;
  border: 2px solid #d56a34 !important;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 0 0 0 0.5rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d56a34' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1em;
  height: 1em;
}

/* ---- DROPDOWN DESKTOP ---- */
.navbar .dropdown-menu {
  background-color: #fdf6ec;
  border: 1px solid #f0dfc0;
  border-top: 2px solid #d56a34;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.navbar .dropdown-item,
.navbar .dropdown-item:link,
.navbar .dropdown-item:visited {
  color: #3f170e !important;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  text-decoration: none !important;
}
.navbar .dropdown-item:hover {
  background-color: #f5e6d8;
  color: #555555 !important;
}

/* ---- MOBILE ---- */
@media (max-width: 767px) {
  .navbar {
    flex-wrap: wrap;  /* Collapse kann nach unten klappen */
  }
  .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
    background-color: #fdf6ec;
    border-top: 1px solid #f0dfc0;
  }
  .navbar-collapse .navbar-nav {
    flex-direction: column !important;
    width: 100%;
    padding: 0.25rem 0;
  }
  .navbar-collapse .navbar-nav .nav-item {
    width: 100%;
    display: block;
  }
  .navbar-collapse .navbar-nav .nav-link,
  .navbar-collapse .navbar-nav .nav-link:link,
  .navbar-collapse .navbar-nav .nav-link:visited {
    padding: 0.8rem 1.5rem !important;
    border-bottom: 1px solid #f0dfc0;
    width: 100%;
    display: block;
    color: #3f170e !important;
    font-weight: 500;
    white-space: normal;
    border-radius: 0;
    text-decoration: none !important;
  }
  .navbar-collapse .navbar-nav .nav-link:hover {
    color: #555555 !important;
    background-color: #f5e6d8;
  }
  .navbar-collapse .dropdown-menu {
    position: static !important;
    background-color: #f5e6d8 !important;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-top: 1px solid #f0dfc0 !important;
    margin: 0;
  }
  .navbar-collapse .dropdown-item,
  .navbar-collapse .dropdown-item:link,
  .navbar-collapse .dropdown-item:visited {
    color: #3f170e !important;
    padding: 0.6rem 2rem;
    text-decoration: none !important;
  }
  .navbar-collapse .dropdown-item:hover {
    background-color: #ecdec8 !important;
    color: #555555 !important;
  }
  .amr-threecol .col-md-4,
  .amr-twocol .col-md-6 {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }
}
/* ------------------------------------------------
   HERO SLIDER — img-basiert, kein Cropping
   ------------------------------------------------ */
.amr-hero-wrapper {
  width: 100%;
  overflow: hidden;
}
.hero-slider-wrapper {
  width: 100%;
  position: relative;
}
.hero-slide {
  position: relative;
  width: 100%;
  line-height: 0;
  background: transparent;
}

/* Bild — Desktop feste Höhe mit object-fit, Mobile proportional */
.hero-slide-img {
  width: 100%;
  display: block;
  height: 65vh;
  min-height: 450px;
  max-height: 800px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .hero-slide {
    min-height: 320px;
  }
  .hero-slide-img {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
  }
}

/* Text-Overlay — absolut über dem Bild, nur unten */
.hero-text-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.2) 30%,
    rgba(0,0,0,0.65) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem;
}
.hero-text-wrapper {
  max-width: 700px;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  line-height: 1.2;
  white-space: normal;
}
.hero-teaser {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-teaser p {
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
}
.hero-teaser p.lead {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.85), 0 0 30px rgba(0,0,0,0.5);
}
.hero-btn {
  display: inline-block;
  background: #d56a34;
  color: #ffffff !important;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  margin-top: 0.5rem;
}
.hero-btn:hover {
  background: #ffffff;
  color: #3f170e !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}
.swiper-button-next,
.swiper-button-prev { color: #ffffff !important; }
.swiper-pagination-bullet-active { background: #ffffff !important; }

@media (max-width: 767px) {
  .hero-title { font-size: 1.25rem; white-space: normal; }
  .hero-teaser { font-size: 0.85rem; }
  .hero-text-overlay { padding: 1rem 0 1.5rem; }
  .hero-btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
  .swiper-button-next,
  .swiper-button-prev {
    width: 28px !important;
    height: 28px !important;
    top: auto !important;
    bottom: 1rem !important;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 0.75rem !important;
  }
}

/* ------------------------------------------------
   HERO SECTION — Startseite (amr-hero Partial)
   ------------------------------------------------ */
.amr-hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.amr-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.amr-hero-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.amr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.55) 100%
  );
}

.amr-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 2rem;
  max-width: var(--layout-max-width, 1140px);
  margin: 0 auto;
  width: 100%;
}

.amr-hero-badge {
  display: inline-block;
  background: rgba(213,106,52,0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.amr-hero-headline {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.amr-hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.amr-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.amr-btn-primary {
  background: #d56a34;
  color: #fff !important;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background 0.2s;
}
.amr-btn-primary:hover { background: #b85528; }
.amr-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background 0.2s;
}
.amr-btn-secondary:hover { background: rgba(255,255,255,0.25); }

.amr-trustbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(63,23,14,0.75);
  backdrop-filter: blur(4px);
}
.amr-trustbar-item {
  flex: 1 1 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.amr-trustbar-item:last-child { border-right: none; }
.amr-trustbar-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f5e6d8;
}
.amr-trustbar-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.2rem;
}

@media (max-width: 767px) {
  .amr-hero { min-height: 380px; }
  .amr-hero-content { padding: 2rem 1.2rem 1.5rem; }
  .amr-trustbar-item {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .amr-trustbar-item:last-child { border-bottom: none; }
}

/* ------------------------------------------------
   PAGE WRAPPER
   ------------------------------------------------ */
.page-wrapper {
  width: 100%;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

/* ------------------------------------------------
   MAIN CONTENT
   ------------------------------------------------ */
.amr-main {
  max-width: var(--layout-max-width, 1140px);
  margin: 0 auto;
  padding: 2.5rem 2rem;
}
.amr-fullwidth {
  width: 100%;
  max-width: var(--layout-max-width, 1140px);
  margin: 0 auto;
  padding: 2rem;
}
/* .frame Basis — wird durch frame-default/layout-1/2/3 überschrieben */
.frame {
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------
   FRAME LAYOUTS — Erscheinungsbild im Backend
   ------------------------------------------------ */

/* Standard — kein Rahmen, nur Abstand */
.frame-default {
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------
   ZWEISPALTER + DREISPALTER — responsiv
   ------------------------------------------------ */
.amr-twocol,
.amr-threecol {
  max-width: var(--layout-max-width, 1140px);
  margin: 0 auto;
  padding: 2rem;
}
.amr-twocol .row,
.amr-threecol .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  gap: 0;
}
.amr-twocol .col-md-6,
.amr-threecol .col-md-4 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Abstand zwischen Elementen im Zwei- und Dreispalter */
.amr-twocol .frame,
.amr-threecol .frame {
  margin-bottom: 1rem;
}
.amr-twocol .frame:last-child,
.amr-threecol .frame:last-child {
  margin-bottom: 0;
}

/* Schrift im Dreispalter etwas kompakter */
.amr-threecol .ce-headline {
  font-size: 1.3rem;
  word-break: break-word;
  hyphens: auto;
}
.amr-threecol .ce-bodytext {
  font-size: 0.95rem;
}

/* Mobile: alles untereinander */
@media (max-width: 767px) {
  .amr-twocol .col-md-6,
  .amr-threecol .col-md-4 {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  .amr-main { padding: 1.5rem 1.2rem; }
  .amr-fullwidth { padding: 1.5rem 1.2rem; }
  .amr-twocol,
  .amr-threecol { padding: 1.5rem 1.2rem; }
  .container { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* ------------------------------------------------
   CARD MENU
   ------------------------------------------------ */
.card-menu-container {
  max-width: var(--layout-max-width, 1140px);
  margin: 0 auto;
  padding: 2rem;
}
.card-menu-item {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.card-menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-menu-item .card-img-top {
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  height: 200px;
  width: 100%;
}
.card-menu-item .btn-outline-primary {
  border-color: var(--accent, #d56a34);
  color: var(--accent, #d56a34);
}
.card-menu-item .btn-outline-primary:hover {
  background-color: var(--accent, #d56a34);
  color: #ffffff;
}
.card-title a {
  color: var(--color-headings, #3f170e);
  text-decoration: none;
}
.card-title a:hover {
  color: var(--accent, #d56a34);
  text-decoration: none;
}

@media (max-width: 767px) {
  .card-menu-container { padding: 1.5rem 1.2rem; }
  .row-cols-md-2 > * { flex: 0 0 100%; max-width: 100%; }
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
.amr-footer {
  background-color: var(--footer-bg, #3f170e);
  color: var(--footer-text, #ffffff);
  padding: 2.5rem 0 1.5rem;
}

/* Logo im Footer — kein übermäßiger Abstand */
.amr-footer .mb-5 {
  margin-bottom: 0.75rem !important;
}
.amr-footer figure {
  margin-bottom: 0.5rem !important;
}
.amr-footer a,
.amr-footer a:link,
.amr-footer a:visited {
  color: #f5e6d8 !important;
  text-decoration: none;
}
.amr-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}
.amr-footer h3, .amr-footer h4, .amr-footer h5 {
  color: #ffffff;
}
.amr-footer p {
  color: rgba(255,255,255,0.85);
}
.subfooter {
  background-color: #2a0e08;
  color: rgba(255,255,255,0.65);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.subfooter a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.subfooter a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .amr-footer { padding: 2rem 0 1rem; }
  .amr-footer .row > * {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

/* ------------------------------------------------
   FRAME LAYOUTS — Erscheinungsbild im Backend
   ------------------------------------------------ */

/* Standard — keine besondere Auszeichnung */
.frame-default {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.frame-default:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Layout 1 — Cremig hell, warm und einladend */
.frame-amr-cream {
  background-color: #fdf6ec;
  border: 1px solid #f0dfc0;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}
.frame-amr-cream h1,
.frame-amr-cream h2,
.frame-amr-cream h3,
.frame-amr-cream h4 {
  color: #3f170e;
}

/* Layout 2 — Card-Stil, klare Kante, leichter Schatten */
.frame-amr-card {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.frame-amr-card h1,
.frame-amr-card h2,
.frame-amr-card h3,
.frame-amr-card h4 {
  color: #3f170e;
}

/* Layout 3 — Logo-Braun Akzent, Text hervorgehoben */
.frame-amr-accent {
  border-left: 4px solid #d56a34;
  background-color: #fdf6ec;
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.frame-amr-accent h1,
.frame-amr-accent h2,
.frame-amr-accent h3,
.frame-amr-accent h4 {
  color: #3f170e;
  font-size: 1.4em;
}
.frame-amr-accent p {
  font-size: 1.05em;
  color: #444;
}

/* Abstände davor/dahinter */
.frame-space-before-extra-small { margin-top: 0.5rem; }
.frame-space-before-small       { margin-top: 1rem; }
.frame-space-before-medium      { margin-top: 2rem; }
.frame-space-before-large       { margin-top: 3rem; }
.frame-space-before-extra-large { margin-top: 5rem; }

.frame-space-after-extra-small  { margin-bottom: 0.5rem; }
.frame-space-after-small        { margin-bottom: 1rem; }
.frame-space-after-medium       { margin-bottom: 2rem; }
.frame-space-after-large        { margin-bottom: 3rem; }
.frame-space-after-extra-large  { margin-bottom: 5rem; }


.ce-textpic .d-md-flex { gap: 2rem; }
.ce-gallery img { border-radius: 8px; }
.ce-bodytext p:last-child { margin-bottom: 0; }

/* Mobile: Bild unter Text */
@media (max-width: 767px) {
  .ce-textpic .d-md-flex {
    flex-direction: column !important;
  }
  .ce-textpic .ce-gallery {
    max-width: 100% !important;
  }
}
