/* ==========================================================================
   Moni Francis – Redesign layer
   Loaded after theme.css / colour.css on every page.
   Keeps the original palette (slate #323A45, burgundy #9F1046, sand #e9e6e1)
   and the Lato typeface; modernises layout, type scale, depth and motion.
   ========================================================================== */

:root {
  --mf-hue: #9F1046;
  --mf-hue-dark: #680C2F;
  --mf-hue-soft: rgba(159, 16, 70, 0.09);
  --mf-ink: #323A45;
  --mf-ink-2: #3E4957;
  --mf-sand: #e9e6e1;
  --mf-sand-2: #d8d3cb;
  --mf-paper: #f6f4f1;
  --mf-text: #4a4f57;
  --mf-muted: #7a7f87;
  --mf-line: rgba(50, 58, 69, 0.08);
  --mf-r-sm: 10px;
  --mf-r: 16px;
  --mf-r-lg: 24px;
  --mf-shadow-sm: 0 1px 2px rgba(50, 58, 69, 0.05), 0 4px 14px rgba(50, 58, 69, 0.06);
  --mf-shadow-md: 0 6px 16px rgba(50, 58, 69, 0.08), 0 18px 44px rgba(50, 58, 69, 0.12);
  --mf-shadow-hue: 0 8px 22px rgba(159, 16, 70, 0.32);
  --mf-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
html { height: 100%; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--mf-paper);
  color: var(--mf-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body > * { flex-shrink: 0; }
body > #footer2 { margin-top: auto; }
/* flex items with auto margins would shrink-to-fit; keep full width where Bootstrap sets no fixed width */
@media (max-width: 767px) { body > .container { width: 100%; } }

p { margin-bottom: 18px; }

a { transition: color .2s ease; }
a:hover { color: var(--mf-hue-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--mf-ink); }
h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25 !important;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
h3 { font-size: 21px; font-weight: 700; line-height: 1.35 !important; letter-spacing: -0.2px; }
h4, h5 { font-weight: 700; }

hr { border-top-color: var(--mf-line); }

::selection { background: var(--mf-hue); color: #fff; }

/* Keyboard focus (the theme removed all outlines) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--mf-hue) !important;
  outline-offset: 3px;
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  min-height: 0;
  background: rgba(50, 58, 69, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-top: 3px solid var(--mf-hue);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px rgba(20, 24, 30, 0.18);
}

.logo:hover { opacity: 1; }
.logo img { transition: transform .3s var(--mf-ease), height .3s var(--mf-ease); }
.logo:hover img { transform: scale(1.03); }

#main_menu .nav > li > a {
  position: relative;
  color: #c9ccd2;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#main_menu .nav > .active > a,
#main_menu .nav > .active > a:hover,
#main_menu .nav > .active > a:focus {
  background: var(--mf-hue) !important;
  color: #fff !important;
}

#main_menu .dropdown-menu > li > a {
  color: #c9ccd2;
  font-size: 14px;
  transition: color .2s ease, background-color .2s ease, padding-left .2s var(--mf-ease);
}

.navbar-toggle {
  color: #fff;
  background-color: var(--mf-hue);
  border-radius: 12px;
  transition: background-color .2s ease;
}
.navbar-toggle:hover { background-color: var(--mf-hue-dark); }

/* ----- Desktop + tablet nav (pills) ----- */
@media (min-width: 768px) {
  #main_menu .nav > li { margin-left: 4px; }
  #main_menu .nav > li > a {
    padding: 10px 18px;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    border-radius: 999px;
  }
  #main_menu .nav > li > a:hover,
  #main_menu .nav > li > a:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
  }
  #main_menu .nav > .active > a,
  #main_menu .nav > .active > a:hover {
    background: var(--mf-hue) !important;
    box-shadow: var(--mf-shadow-hue);
  }

  .dropdown-menu,
  .navbar-nav ul {
    top: calc(100% + 12px);
    left: 50%;
    min-width: 230px;
    width: auto;
    padding: 8px;
    transform: translateX(-50%);
    background: var(--mf-ink);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: var(--mf-r) !important;
    box-shadow: 0 24px 48px rgba(10, 12, 16, 0.35) !important;
  }
  /* hover bridge over the gap between pill and panel */
  .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }
  .dropdown-menu > li:first-child,
  .dropdown-menu > li:last-child { margin: 0; }
  #main_menu .dropdown-menu > li > a {
    padding: 10px 16px !important;
    border-radius: var(--mf-r-sm);
  }
  #main_menu .dropdown-menu > li > a:hover,
  #main_menu .dropdown-menu > li > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.07) !important;
    padding-left: 22px !important;
  }
}

/* Desktop sizes */
@media (min-width: 980px) {
  .header .logo { margin-top: 10px !important; margin-bottom: 10px !important; }
  .header .logo img { height: 72px; width: auto; }
  #main_menu .nav { margin-top: 26px; transition: margin .3s var(--mf-ease); }

  .header.is-compact .logo { margin-top: 8px !important; margin-bottom: 8px !important; }
  .header.is-compact .logo img { height: 50px; }
  .header.is-compact #main_menu .nav { margin-top: 13px; }
}

/* Tablet sizes */
@media (min-width: 768px) and (max-width: 979px) {
  .logo { margin: 12px 0 !important; }
  .logo img { height: 56px; width: auto; }
  #main_menu .nav { margin: 20px 0 0 !important; }
  #main_menu .nav > li { margin-left: 0; }
  #main_menu .nav > li > a {
    padding: 10px 11px !important;
    margin: 0 !important;
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

/* Phone nav */
@media (max-width: 767px) {
  .header { position: relative; }
  .navbar-toggle { top: 22px; }
  .navbar-collapse { border-top: 0; box-shadow: none; }
  #main_menu .nav > li { border-top-color: rgba(255, 255, 255, 0.06); }
  #main_menu .nav > li > a { padding: 16px 20px; letter-spacing: 0.14em; }
  #main_menu .nav > .active > a,
  #main_menu .nav > .active > a:hover {
    background: rgba(159, 16, 70, 0.22) !important;
    box-shadow: inset 4px 0 0 var(--mf-hue);
  }
  .dropdown-menu > li { background-color: rgba(0, 0, 0, 0.15); }
}

/* ==========================================================================
   Page title band
   ========================================================================== */
#banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 320px at 88% -10%, rgba(159, 16, 70, 0.12), transparent 70%),
    radial-gradient(520px 280px at -5% 110%, rgba(50, 58, 69, 0.08), transparent 70%),
    var(--mf-sand);
}

/* vinyl-record motif */
#banner .intro_wrapper { position: relative; }
#banner .intro_wrapper:has(h1.title)::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  width: 340px;
  height: 340px;
  margin-top: -150px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--mf-hue) 0 34px, rgba(255, 255, 255, 0.55) 35px 38px, transparent 39px),
    repeating-radial-gradient(circle, rgba(50, 58, 69, 0.07) 0 1px, transparent 1px 7px),
    radial-gradient(circle, rgba(50, 58, 69, 0.06), rgba(50, 58, 69, 0.02));
  opacity: .9;
  pointer-events: none;
}

#banner .intro_wrapper:has(h1.title) { padding: 72px 15px 64px !important; }
#banner:has(h1.title) { padding-bottom: 0 !important; }
#banner .intro_wrapper:has(h1.title) .inner_content { padding-top: 0; position: relative; z-index: 1; }

#intro {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  font-size: 12px;
  line-height: 18px !important;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mf-hue);
  background: var(--mf-hue-soft);
  border-radius: 999px;
}

h1.title {
  font-size: 60px;
  line-height: 1.05 !important;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--mf-ink);
  margin: 0 0 6px;
  max-width: 820px;
}
#banner .btn { margin-top: 22px; }

/* Quote bands under sliders become a floating card */
#banner:has(.welcome_index) {
  overflow: visible;
  background: transparent;
  z-index: 30;
}
#banner:has(.welcome_index) .intro_wrapper { padding-bottom: 10px; }
#banner:has(.welcome_index) .inner_content { padding-top: 0; }

.welcome_index {
  position: relative;
  width: 86%;
  margin: -84px auto 0;
  padding: 52px 64px 46px;
  font-size: 34px;
  line-height: 1.45;
  color: var(--mf-ink);
  background: #fff;
  border-radius: var(--mf-r-lg);
  box-shadow: var(--mf-shadow-md);
}
.welcome_index::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -32px;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  border-radius: 50%;
  background: var(--mf-hue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4 18h5l2-4V6H4v8h3l-3 4zm9 0h5l2-4V6h-7v8h3l-3 4z'/%3E%3C/svg%3E") no-repeat center / 28px 28px;
  box-shadow: var(--mf-shadow-hue);
}
.welcome_index .small {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mf-muted);
}

.hue_block {
  border-radius: 8px;
  padding: 0 10px 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ==========================================================================
   Content
   ========================================================================== */
.wrapper { padding-bottom: 96px; }
.container.wrapper > .inner_content { padding-top: 56px; }

/* Readable column for long text pages */
.prose {
  float: none;
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.85;
}
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }

.cap {
  font-size: 64px;
  line-height: 60px;
  height: auto;
  margin: 4px 10px 0 0;
  color: var(--mf-hue);
  font-weight: 700;
}

.wrapper img { border-radius: var(--mf-r); }
.wrapper img[src$=".png"],
.wrapper .singImage,
.wrapper .well img { border-radius: 0; }

blockquote {
  border-left-width: 4px;
  background: #fff;
  border-radius: 0 var(--mf-r) var(--mf-r) 0;
  padding: 18px 24px;
  box-shadow: var(--mf-shadow-sm);
}

.fa-ul > li { margin-bottom: 8px; }

/* ----- Shared card look ----- */
.tile,
.tile2:not(.pricing-table),
.well,
.team_sections {
  background: #fff;
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r);
  box-shadow: var(--mf-shadow-sm);
  transition: transform .35s var(--mf-ease), box-shadow .35s var(--mf-ease), border-color .35s ease;
}
.tile:hover,
.tile2:not(.pricing-table):hover,
.team_sections:hover {
  transform: translateY(-4px);
  box-shadow: var(--mf-shadow-md);
  border-color: rgba(159, 16, 70, 0.18);
}
.well { padding: 28px 30px; }

/* Icon tiles (Sprecherin / Voice-over) */
.tile { padding: 30px 18px 22px; }
.intro-icon-disc.cont-large {
  width: 64px;
  height: 64px;
  line-height: 64px;
  text-align: center;
  background: var(--mf-hue-soft) !important;
  box-shadow: none !important;
  transition: background-color .3s ease, transform .3s var(--mf-ease);
}
.intro-icon-disc .intro-icon-large {
  font-size: 24px;
  line-height: 64px;
  color: var(--mf-hue);
  transition: color .3s ease;
}
.tile:hover .intro-icon-disc { background: var(--mf-hue) !important; transform: scale(1.06); }
.tile:hover .intro-icon-large { color: #fff; }
.tile h6 { margin: 18px 0 0; font-size: 14px; line-height: 1.4; color: var(--mf-ink); }

/* Awards / press (Presse) */
.team_sections { padding: 26px 18px 18px; margin-bottom: 6px; }
.team_sections img.th {
  border-radius: var(--mf-r-sm);
  padding: 6px;
  background: var(--mf-sand) !important;
}
.team_sections small.muted { letter-spacing: 0.12em; font-size: 12px; text-transform: uppercase; font-weight: 700; }

/* Quote box */
.testimonial1,
.testimonial2,
.testimonial3 {
  border-radius: var(--mf-r);
  padding: 28px 28px 20px;
  line-height: 1.6;
  box-shadow: var(--mf-shadow-md);
}
.testimonial1 p,
.testimonial2 p,
.testimonial3 p { font-size: 18px; font-style: italic; }
.testimonial1:after,
.testimonial2:after,
.testimonial3:after { border-width: 9px; margin-left: -9px; left: 50%; }

/* ----- Image cards ----- */
.hover_colour,
.hover_img {
  display: block;
  overflow: hidden;
  border-radius: var(--mf-r);
  box-shadow: var(--mf-shadow-sm);
}
.hover_colour img,
.hover_img img {
  border-radius: 0 !important;
  transition: transform .6s var(--mf-ease);
}
.hover_colour:hover img,
.hover_img:hover img { transform: scale(1.05); }

/* image + description = one card (Aktuelle / Vergangene Projekte) */
.hover_img:has(+ .item_description),
.hover_colour:has(+ .item_description) {
  border-radius: var(--mf-r) var(--mf-r) 0 0;
  box-shadow: none;
}
.item_description {
  padding: 22px 26px 26px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--mf-muted);
  background: #fff;
  border-bottom: 0;
  border-radius: 0 0 var(--mf-r) var(--mf-r);
  box-shadow: var(--mf-shadow-sm);
}
.item_description:hover { border-bottom: 0; }
.item_description a { display: inline-block; margin-bottom: 6px; font-size: 15px; letter-spacing: 0.08em; }
.item_description a:hover { color: var(--mf-hue-dark); }

.projects .element { margin-bottom: 30px; overflow: visible; }
/* let hover shadows show: theme + Isotope (inline style) clip with overflow:hidden */
.projects,
.projects.isotope { overflow: visible !important; }
.projects .element > .hover_img,
.projects .element > .item_description {
  transition: transform .35s var(--mf-ease), box-shadow .35s var(--mf-ease);
}
.projects .element:hover > .hover_img,
.projects .element:hover > .item_description { transform: translateY(-4px); }
.projects .element:hover > .item_description { box-shadow: var(--mf-shadow-md); }

/* ----- CD / film / production grid ----- */
#grid-gallery { margin-top: 0; }
.grid figure { padding: 0 15px 30px 0; transition: transform .35s var(--mf-ease); }
.grid li:hover figure { transform: translateY(-4px); }
.grid-gallery .hover_img { border-radius: var(--mf-r) var(--mf-r) 0 0; box-shadow: none; }
.grid figcaption {
  background: #fff;
  padding: 24px 24px 22px;
  border-radius: 0 0 var(--mf-r) var(--mf-r);
  box-shadow: var(--mf-shadow-sm);
  transition: box-shadow .35s var(--mf-ease);
}
.grid-gallery figcaption:only-child { border-radius: var(--mf-r); border-top: 4px solid var(--mf-hue); }
.grid li:hover figcaption { box-shadow: var(--mf-shadow-md); }
.grid figcaption h3 { font-size: 19px; font-weight: 700; color: var(--mf-ink); }
.grid figcaption h3 a { color: var(--mf-ink); }
.grid figcaption p { font-size: 14px; line-height: 1.7; color: var(--mf-muted); }

/* ----- Pagination (Fotos) ----- */
.holder { margin: 10px 0 26px; }
.holder a {
  display: inline-block;
  min-width: 40px;
  margin: 0 3px 6px 0;
  padding: 6px 14px;
  text-align: center;
  border: 0 !important;
  border-radius: 999px;
  background: #fff;
  color: var(--mf-ink) !important;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--mf-shadow-sm);
  transition: background-color .2s ease, color .2s ease;
}
.holder a:hover { background: var(--mf-ink) !important; color: #fff !important; }
.holder a.jp-current,
.holder a.jp-current:hover { background: var(--mf-hue) !important; color: #fff !important; }
.holder a.jp-disabled,
.holder a.jp-disabled:hover { background: transparent !important; color: #aaa !important; box-shadow: none; }

/* ----- Pricing (Unterricht) ----- */
.pricing-table { padding: 10px 8px; }
.pricing-table ul {
  border-radius: var(--mf-r);
  overflow: hidden;
  box-shadow: var(--mf-shadow-sm);
  transition: transform .35s var(--mf-ease), box-shadow .35s var(--mf-ease);
}
.pricing-table:hover ul { transform: translateY(-4px); box-shadow: var(--mf-shadow-md); }
.pricing-header-row-1,
.pricing-footer { border-radius: 0; }
.pricing-header-row-2 { background: #fff !important; }
.pricing-content-row-odd { background: #faf9f7 !important; }
.pricing-content-row-even { background: #fff !important; }

/* Accordion / tabs */
.panel {
  border: 0 !important;
  border-radius: var(--mf-r) !important;
  overflow: hidden;
  box-shadow: var(--mf-shadow-sm);
}
.nav-tabs a { border-radius: var(--mf-r-sm) var(--mf-r-sm) 0 0 !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
#ajax-contact-form input.btn-form {
  border-radius: 999px !important;
  padding: 12px 26px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--mf-ease), box-shadow .2s var(--mf-ease);
}
.btn-primary,
.btn-inverse,
#ajax-contact-form input.btn-form { box-shadow: 0 4px 12px rgba(159, 16, 70, 0.25); }
.btn-primary:hover,
.btn-inverse:hover,
#ajax-contact-form input.btn-form:hover {
  transform: translateY(-2px);
  box-shadow: var(--mf-shadow-hue);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
#ajax-contact-form input.btn-form { padding: 15px 30px; margin-right: 8px; }

#ajax-contact-form input[type="reset"].btn-form {
  background: transparent;
  color: var(--mf-hue);
  box-shadow: inset 0 0 0 2px var(--mf-hue);
}
#ajax-contact-form input[type="reset"].btn-form:hover,
#ajax-contact-form input[type="reset"].btn-form:focus {
  background: var(--mf-hue);
  color: #fff;
}

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
textarea,
select,
#ajax-contact-form input:not(.btn-form),
#ajax-contact-form textarea {
  background: #fff;
  border: 1.5px solid var(--mf-sand-2);
  border-radius: 12px;
  color: var(--mf-text);
  padding: 12px 14px;
  line-height: 1.4;
  margin-bottom: 20px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
#ajax-contact-form input:not(.btn-form):focus,
#ajax-contact-form textarea:focus {
  border-color: var(--mf-hue);
  box-shadow: 0 0 0 4px var(--mf-hue-soft);
}
#ajax-contact-form input:not(.btn-form),
#ajax-contact-form textarea { width: 100%; max-width: 100%; }
textarea { min-height: 170px; }

.form_info { color: var(--mf-ink); font-weight: 700; font-size: 11.5px; letter-spacing: 0.18em; }
.required { color: var(--mf-hue); }

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(255, 255, 255, 0.10), transparent 70%),
    linear-gradient(160deg, var(--mf-hue) 0%, #7d0c37 100%);
}
#footer h1 {
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.85);
}
.follow_us a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 22px 8px 0;
  font-size: 24px;
  border-radius: 50%;
  color: #fff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  transition: background-color .25s ease, color .25s ease, transform .25s var(--mf-ease), box-shadow .25s ease;
}
.follow_us a:hover {
  background: #fff;
  color: var(--mf-hue);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

#footer2 {
  height: auto;
  padding: 36px 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-top: 0;
  box-shadow: inset 0 3px 0 var(--mf-hue);
}
#footer + #footer2 { box-shadow: none; }
.copyright { color: #9aa0a8; }
.copyright a {
  display: inline-block;
  margin: 0 2px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #c9ccd2;
  transition: background-color .2s ease, color .2s ease;
}
.copyright a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Back to top */
.go-top {
  right: 1.25em;
  bottom: 1.25em;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  background-color: var(--mf-hue);
  box-shadow: var(--mf-shadow-hue);
  transition: background-color .2s ease, transform .2s var(--mf-ease);
}
.go-top svg { vertical-align: middle; }
.go-top:hover { background-color: var(--mf-hue-dark); transform: translateY(-3px); }

/* ==========================================================================
   Termine list
   ========================================================================== */
body #termin,
body .termin { border-bottom-color: var(--mf-line); }
body .termin-link { border-radius: var(--mf-r); transition: background-color .2s ease, box-shadow .2s ease; }
body .termin-link:hover,
body .termin-link:focus { background-color: #fff; box-shadow: var(--mf-shadow-sm); }

/* ==========================================================================
   Scroll reveal (classes added by js/scripts.js)
   ========================================================================== */
.mf-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--mf-ease), transform .8s var(--mf-ease);
}
.mf-reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 979px) {
  #banner .intro_wrapper:has(h1.title)::after { width: 260px; height: 260px; margin-top: -120px; right: -90px; opacity: .6; }
  .welcome_index { width: 94%; padding: 46px 36px 38px !important; font-size: 28px !important; line-height: 1.45 !important; }
}

@media (max-width: 767px) {
  #banner .intro_wrapper:has(h1.title) { padding: 44px 15px 40px !important; }
  #banner .intro_wrapper:has(h1.title)::after { display: none; }
  #banner { background: radial-gradient(360px 200px at 100% 0%, rgba(159, 16, 70, 0.08), transparent 70%), var(--mf-sand); }
  #banner:has(.welcome_index) { background: transparent; }
  h1.title { font-size: 38px; letter-spacing: -0.8px; }
  h2 { font-size: 25px; }
  .container.wrapper > .inner_content { padding-top: 36px; }
  .welcome_index {
    width: 100%;
    margin-top: -16px;
    padding: 44px 22px 30px !important;
    font-size: 23px !important;
    border-radius: var(--mf-r);
  }
  .welcome_index::before { width: 52px; height: 52px; margin-left: -26px; top: -26px; background-size: 22px 22px; }
  .prose { font-size: 16px; }
  .follow_us a { width: 54px; height: 54px; font-size: 20px !important; margin: 18px 5px 0 !important; }
}

@media (min-width: 768px) and (max-width: 1028px) {
  .follow_us a { font-size: 24px !important; margin: 22px 8px 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .mf-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Static card grid (Fremdproduktionen – no masonry on this page)
   Text-only cards start on a new row instead of stacking in one column.
   ========================================================================== */
.grid.grid-static {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
.grid.grid-static::after { content: none; }
.grid.grid-static > li { width: auto; float: none; }
.grid.grid-static { column-gap: 20px; }
.grid.grid-static figure { padding: 0 0 24px; }
.grid.grid-static > li.grid-sizer { display: none; }
.grid.grid-static > li:has(img) + li:not(:has(img)) { grid-column-start: 1; }

@media screen and (max-width: 60em) {
  .grid.grid-static { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 35em) {
  .grid.grid-static { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 24em) {
  .grid.grid-static { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Kontakt page
   ========================================================================== */
body:has(.contact-page) #banner .intro_wrapper:has(h1.title) { padding-bottom: 130px !important; }
.contact-page > .inner_content { padding-top: 0 !important; }

.contact-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  margin-top: -96px;
  background: #fff;
  border-radius: var(--mf-r-lg);
  box-shadow: var(--mf-shadow-md);
  overflow: hidden;
}

/* --- left: details panel --- */
.contact-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 40px 40px;
  color: #c9ccd2;
  background:
    radial-gradient(420px 260px at 110% 110%, rgba(159, 16, 70, 0.45), transparent 70%),
    linear-gradient(165deg, var(--mf-ink-2), var(--mf-ink));
  overflow: hidden;
}
/* record motif peeking from the corner */
.contact-aside::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--mf-hue) 0 26px, rgba(255, 255, 255, 0.25) 27px 29px, transparent 30px),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 6px);
  pointer-events: none;
}
.contact-list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list li > div { padding-top: 8px; }
.contact-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 18px;
  color: #fff;
  background: var(--mf-hue);
  box-shadow: 0 6px 16px rgba(159, 16, 70, 0.35);
}
.contact-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e9a9c1;
}
.contact-list a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.contact-list a:hover { color: #fff; border-bottom-color: #fff; }

.contact-secure {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding: 18px 20px;
  border-radius: var(--mf-r);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.contact-secure img { flex: 0 0 52px; width: 52px; height: auto; margin: 0; border-radius: 0; }
.contact-secure h3 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.contact-secure p { margin: 0; font-size: 13px; line-height: 1.55; color: #b7bcc4; }

/* --- right: form --- */
.contact-main { padding: 48px 52px 44px; }
.contact-main .contact_form { margin: 0; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
}
.form-grid .field-full { grid-column: 1 / -1; }
.form-grid .form_info { display: block; margin: 0 0 8px; }
#ajax-contact-form .form-grid input:not(.btn-form),
#ajax-contact-form .form-grid textarea {
  float: none;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 15px;
  background: var(--mf-paper);
  border: 1.5px solid transparent;
}
#ajax-contact-form .form-grid input:not(.btn-form):hover,
#ajax-contact-form .form-grid textarea:hover { border-color: var(--mf-sand-2); }
#ajax-contact-form .form-grid input:not(.btn-form):focus,
#ajax-contact-form .form-grid textarea:focus {
  background: #fff;
  border-color: var(--mf-hue);
  box-shadow: 0 0 0 4px var(--mf-hue-soft);
}
#ajax-contact-form .form-grid textarea { min-height: 190px; resize: vertical; }

.form-privacy { margin: 4px 0 18px; font-size: 13px; color: var(--mf-muted); }
.form-privacy .fa { margin-right: 6px; color: var(--mf-hue); }
.contact-main .cf-turnstile { margin-bottom: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#ajax-contact-form .form-actions input.btn-form { margin: 0; }
#ajax-contact-form .form-actions input[type="submit"] { min-width: 190px; }
#ajax-contact-form input.btn-form:disabled { opacity: .6; transform: none; cursor: progress; }

/* feedback messages */
.notification_ok,
.notification_error {
  margin: 0 0 18px;
  padding: 16px 20px;
  border-radius: var(--mf-r-sm);
  font-size: 14px;
  text-transform: none;
  text-align: left;
}
.notification_ok { color: #fff; background: var(--mf-hue); box-shadow: var(--mf-shadow-hue); }
.notification_error { color: var(--mf-hue-dark); background: var(--mf-hue-soft); box-shadow: inset 4px 0 0 var(--mf-hue); }

/* --- map consent --- */
.map-consent {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--mf-r-lg);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 55%, rgba(255, 255, 255, 0.75)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(50, 58, 69, 0.06) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(50, 58, 69, 0.06) 38px 39px),
    var(--mf-sand);
  border: 1px solid var(--mf-line);
  box-shadow: var(--mf-shadow-sm);
}
.map-consent-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 26px;
  color: var(--mf-hue);
  background: var(--mf-hue-soft);
}
.map-consent-text { flex: 1 1 auto; }
.map-consent-text h4 { margin: 0 0 6px; font-size: 17px; }
.map-consent-text p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--mf-muted); }
.map-consent .btn { flex: 0 0 auto; }
.map-frame {
  margin-top: 40px;
  border-radius: var(--mf-r-lg);
  overflow: hidden;
  box-shadow: var(--mf-shadow-md);
}

@media (max-width: 991px) {
  .contact-shell { grid-template-columns: 1fr; }
  .contact-aside { padding: 36px 30px; }
  .contact-main { padding: 36px 30px 32px; }
}
@media (max-width: 767px) {
  body:has(.contact-page) #banner .intro_wrapper:has(h1.title) { padding-bottom: 96px !important; }
  .contact-shell { margin-top: -64px; border-radius: var(--mf-r); }
  .contact-aside { padding: 30px 22px; gap: 24px; }
  .contact-main { padding: 30px 22px 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .map-consent { flex-direction: column; text-align: center; padding: 26px 22px; gap: 16px; }
  #ajax-contact-form .form-actions input.btn-form { flex: 1 1 auto; min-width: 0; }
}
.form-grid .form_info { line-height: 1.4; height: auto; }
.form-grid .form_info .required { position: static; display: inline; margin-left: 2px; font-size: inherit; line-height: inherit; vertical-align: baseline; top: auto; }
