:root{
  --mr-blue:#032D67;
  --mr-yellow:#FFE000;
  --mr-cyan:#00A7E7;
  --mr-black:#000000;
  --mr-white:#FFFFFF;
  --mr-ink:#101828;
  --mr-muted:#5C6B7A;
  --mr-surface:#F6F8FB;
  --mr-surface-2:#EDF2F7;
  --mr-border:#D8E0E9;
  --mr-radius:20px;
  --mr-radius-sm:12px;
  --mr-shadow:0 14px 38px rgba(3,45,103,.10);
  --mr-shadow-lift:0 22px 52px rgba(3,45,103,.16);
  --mr-transition-soft:clamp(22px,2.2vw,34px);
  --mr-transition-mobile:22px;
  --mr-brand-gradient:linear-gradient(180deg, #00A7E7 0%, #00A7E7 10%, #078FCB 28%, #066EAB 52%, #054A84 74%, #032D67 100%);
  --mr-brand-gradient-overlay:linear-gradient(90deg, rgba(3,45,103,.18) 0%, rgba(3,45,103,.07) 46%, rgba(3,45,103,0) 76%);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--mr-ink);
  background:var(--mr-white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.mr-mobile-nav-open{overflow:hidden}

::selection{background:var(--mr-yellow);color:var(--mr-blue)}
a{text-underline-offset:.18em;text-decoration-thickness:1.5px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--mr-cyan);outline-offset:4px}

/* Header */
.mr-site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:#fff;
  border-bottom:1px solid rgba(3,45,103,.08);
  box-shadow:0 5px 26px rgba(3,45,103,.07);
}
.admin-bar .mr-site-header{top:32px}
.mr-site-header>.wp-block-group{min-height:82px}
.mr-brand{flex:0 0 auto}
.mr-brand .wp-block-site-title{margin:0;line-height:1}
.mr-brand .wp-block-site-title a{
  display:block;
  width:clamp(190px,19vw,255px);
  height:78px;
  background:url("../images/marie-richter-fdp-teltow-flaeming.png") left center/contain no-repeat;
  font-size:0;
  line-height:0;
  text-decoration:none;
}
.mr-site-header .wp-block-navigation{gap:.2rem}
.mr-site-header .wp-block-navigation-item__content{
  padding:.65rem .78rem;
  border-radius:9px;
  color:var(--mr-blue);
  font-weight:750;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.mr-site-header .wp-block-navigation-item__content:hover{
  background:rgba(0,167,231,.08);
  color:var(--mr-blue);
  text-decoration:none;
}
.mr-nav-contact{
  margin-left:.35rem!important;
  background:var(--mr-yellow)!important;
  color:var(--mr-blue)!important;
  border-radius:10px!important;
  font-weight:900!important;
  box-shadow:0 5px 14px rgba(3,45,103,.08);
}
.mr-nav-contact:hover{background:var(--mr-cyan)!important;transform:translateY(-1px)}

.mr-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:.62rem!important;flex:1 1 auto}
.mr-theme-control{display:flex;align-items:center;flex:0 0 auto}
.mr-theme-toggle{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.48rem;
  min-height:42px;
  padding:.48rem .72rem;
  border:1px solid rgba(3,45,103,.14);
  border-radius:999px;
  background:#F6F8FB;
  color:var(--mr-blue);
  font:inherit;
  font-size:.82rem;
  font-weight:850;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(3,45,103,.06);
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.mr-theme-toggle:hover{background:#EDF2F7;border-color:rgba(0,167,231,.42);transform:translateY(-1px)}
.mr-theme-toggle__icon{width:18px;height:18px;display:inline-grid;place-items:center;position:relative;flex:0 0 18px}
.mr-theme-toggle__icon::before{font-size:17px;line-height:1}
.mr-theme-toggle[data-mode="system"] .mr-theme-toggle__icon::before{content:"◐"}
.mr-theme-toggle[data-mode="light"] .mr-theme-toggle__icon::before{content:"☀"}
.mr-theme-toggle[data-mode="dark"] .mr-theme-toggle__icon::before{content:"☾"}

/* Hero */
.mr-hero{
  position:relative;
  overflow:hidden;
  background:
    var(--mr-brand-gradient-overlay),
    var(--mr-brand-gradient);
  color:white;
  isolation:isolate;
  box-shadow:
    inset 0 -18px 28px -28px rgba(0,19,45,.24);
}
.mr-hero::before{
  content:"";
  position:absolute;
  width:210px;
  height:22px;
  right:6vw;
  top:0;
  background:var(--mr-yellow);
  z-index:0;
}
.mr-hero::after{
  content:"";
  position:absolute;
  width:72px;
  height:72px;
  left:-30px;
  bottom:42px;
  background:var(--mr-cyan);
  opacity:.95;
  transform:rotate(12deg);
  z-index:0;
}
.mr-hero>.wp-block-columns,.mr-hero .wp-block-columns{position:relative;z-index:1;margin:0;align-items:center!important;gap:clamp(2rem,5vw,5.5rem)}
.mr-hero h1,.mr-hero h2,.mr-hero p{color:white}
.mr-hero h1{
  font-size:clamp(3rem,6.1vw,5.9rem);
  line-height:.96;
  letter-spacing:-.045em;
  margin-bottom:1.2rem;
  text-wrap:balance;
}
.mr-hero-copy{
  padding-top:clamp(5.4rem,7.8vw,7.8rem);
  padding-bottom:clamp(5.4rem,7.8vw,7.8rem);
  max-width:690px;
}
.mr-hero .wp-block-column:last-child{
  position:relative;
  display:flex;
  align-items:center;
  padding-top:clamp(4.4rem,6vw,6rem);
  padding-bottom:clamp(4.4rem,6vw,6rem);
}
.mr-hero .wp-block-column:last-child::before{
  content:"";
  position:absolute;
  inset:calc(4.4rem + 18px) -18px calc(4.4rem - 18px) 18px;
  background:var(--mr-yellow);
  border-radius:var(--mr-radius);
  z-index:0;
}
.mr-hero .wp-block-column:last-child::after{
  content:"";
  position:absolute;
  width:72px;
  height:14px;
  top:clamp(2.1rem,4vw,3.7rem);
  left:-12px;
  background:var(--mr-cyan);
  z-index:2;
}
.mr-hero-image{width:100%;margin:0;position:relative;z-index:1}
.mr-hero-image img{
  width:100%;
  height:auto;
  max-height:570px;
  object-fit:cover;
  object-position:center center;
  display:block;
  border-radius:var(--mr-radius);
  box-shadow:0 26px 60px rgba(0,0,0,.28);
}
.mr-kicker{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.095em;
  color:var(--mr-cyan);
  font-size:.82rem;
  margin-bottom:.5rem;
}
.mr-kicker::before{content:"";width:24px;height:4px;background:currentColor;display:block}
.mr-hero .mr-kicker{color:var(--mr-yellow)}
.mr-bar{width:min(190px,42%);height:8px;background:var(--mr-yellow);margin:1.45rem 0;border-radius:999px}
.mr-bar-cyan{background:var(--mr-cyan)}

/* Sections and typography */
.mr-section{
  position:relative;
  padding-top:clamp(4rem,6.5vw,7rem);
  padding-bottom:clamp(4rem,6.5vw,7rem);
}
.mr-section h2{font-size:clamp(2rem,4vw,3.6rem);letter-spacing:-.035em;text-wrap:balance}
.mr-section-surface{
  background:
    linear-gradient(to bottom, #fff 0, rgba(246,248,251,.92) 46px, var(--mr-surface) 120px, var(--mr-surface) calc(100% - 120px), rgba(246,248,251,.92) calc(100% - 46px), #fff 100%);
  border-top:0;
  border-bottom:0;
}
.mr-section-blue{
  padding-top:clamp(6.6rem,8vw,9rem);
  padding-bottom:clamp(6.6rem,8vw,9rem);
  background:
    radial-gradient(ellipse at 10% 25%, rgba(0,167,231,.13) 0, rgba(0,167,231,.035) 25%, rgba(0,167,231,0) 48%),
    radial-gradient(ellipse at 88% 74%, rgba(0,167,231,.085) 0, rgba(0,167,231,0) 42%),
    linear-gradient(122deg, #032D67 0%, #06477f 52%, #032D67 100%);
  color:white;
  box-shadow:
    inset 0 18px 24px -24px rgba(255,255,255,.26),
    inset 0 -18px 24px -24px rgba(0,19,45,.22);
}
.mr-section-blue h2,.mr-section-blue h3,.mr-section-blue p,.mr-section-blue li{color:white}
.mr-section-yellow{background:var(--mr-yellow)}
.mr-lead{font-size:clamp(1.12rem,1.7vw,1.42rem);line-height:1.55;color:#26384c}
.mr-prose{max-width:780px}
.mr-prose p{margin-top:0;margin-bottom:1.35rem}
.mr-prose li{margin:.5rem 0}
.mr-prose img{border-radius:var(--mr-radius-sm)}

/* Cards */
.mr-card,
.mr-query-grid .wp-block-post{
  position:relative;
  height:100%;
  background:#fff;
  border:1px solid rgba(3,45,103,.10);
  border-radius:var(--mr-radius);
  box-shadow:var(--mr-shadow);
  overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.mr-card::before,
.mr-query-grid .wp-block-post::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:5px;
  background:var(--mr-yellow);
  z-index:2;
}
.mr-card--cyan::before{background:var(--mr-cyan)}
.mr-card:hover,
.mr-query-grid .wp-block-post:hover{
  transform:translateY(-5px);
  box-shadow:var(--mr-shadow-lift);
  border-color:rgba(0,167,231,.32);
}
.mr-card{padding:1.6rem}
.mr-card h3{margin-top:.25rem;letter-spacing:-.025em}
.mr-card .wp-block-post-featured-image{margin:-1.6rem -1.6rem 1.35rem}
.mr-card .wp-block-post-featured-image img{aspect-ratio:16/9;object-fit:cover}
.mr-query-grid .wp-block-post-template{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.25rem,2vw,2rem)}
.mr-query-grid .wp-block-post{padding:1.4rem;display:flex;flex-direction:column}
.mr-query-grid .wp-block-post-title{font-size:1.42rem;line-height:1.15;margin:.8rem 0 .65rem}
.mr-query-grid .wp-block-post-title a{color:var(--mr-blue);text-decoration:none}
.mr-query-grid .wp-block-post-title a:hover{text-decoration:underline;text-decoration-color:var(--mr-cyan)}
.mr-query-grid .wp-block-post-excerpt{flex-grow:1;color:#334155}
.mr-query-grid .wp-block-post-featured-image{margin:-1.4rem -1.4rem 1.05rem;overflow:hidden}
.mr-query-grid .wp-block-post-featured-image img{aspect-ratio:16/9;object-fit:cover;transition:transform .35s ease}
.mr-query-grid .wp-block-post:hover .wp-block-post-featured-image img{transform:scale(1.025)}
.mr-query-grid time{font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#66778b}
.mr-query-grid .wp-block-post-excerpt__more-link{display:inline-flex;align-items:center;gap:.35rem;margin-top:.4rem;color:var(--mr-blue);font-weight:850;text-decoration:none}
.mr-query-grid .wp-block-post-excerpt__more-link::after{content:"→";transition:transform .18s ease}
.mr-query-grid .wp-block-post-excerpt__more-link:hover::after{transform:translateX(4px)}

/* Buttons */
.wp-block-button__link,
.mr-form button{
  border:0;
  border-radius:10px!important;
  min-height:46px;
  padding:.82rem 1.2rem;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(3,45,103,.08);
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.wp-block-button__link:hover,
.mr-form button:hover{
  background:var(--mr-cyan)!important;
  color:#001d3d!important;
  text-decoration:none;
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(3,45,103,.14);
}

/* Social */
.mr-social-links{display:flex;gap:.8rem;flex-wrap:wrap}
.mr-social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:.72rem 1.05rem;
  border:1px solid rgba(3,45,103,.18);
  border-radius:10px;
  background:#fff;
  box-shadow:0 6px 18px rgba(3,45,103,.06);
  font-weight:850;
  transition:transform .18s ease,background .18s ease,color .18s ease;
}
.mr-social-links a:hover{background:var(--mr-blue);color:#fff;text-decoration:none;transform:translateY(-2px)}

/* Gallery */
.mr-gallery .wp-block-image,
.wp-block-gallery.has-nested-images figure.wp-block-image{overflow:hidden;border-radius:var(--mr-radius-sm)}
.mr-gallery .wp-block-image img,.mr-gallery img,.wp-block-gallery.has-nested-images figure.wp-block-image img{aspect-ratio:4/3;object-fit:cover;transition:transform .3s ease}
.mr-gallery .wp-block-image:hover img,.wp-block-gallery.has-nested-images figure.wp-block-image:hover img{transform:scale(1.025)}

/* Forms */
.mr-form{
  max-width:780px;
  padding:clamp(1.4rem,3vw,2.4rem);
  background:#fff;
  border:1px solid rgba(3,45,103,.10);
  border-radius:var(--mr-radius);
  box-shadow:var(--mr-shadow);
}
.mr-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.mr-field{margin-bottom:1rem}
.mr-field label{display:block;font-weight:850;color:var(--mr-blue);margin-bottom:.42rem;font-size:.94rem}
.mr-field input,.mr-field textarea,.mr-field select{
  width:100%;
  min-height:50px;
  border:1px solid #A8B5C4;
  border-radius:10px;
  background:#fff;
  color:var(--mr-ink);
  padding:.8rem .9rem;
  font:inherit;
  transition:border-color .16s ease,box-shadow .16s ease;
}
.mr-field textarea{min-height:170px;resize:vertical}
.mr-field input:focus,.mr-field textarea:focus,.mr-field select:focus{border-color:var(--mr-cyan);outline:0;box-shadow:0 0 0 4px rgba(0,167,231,.16)}
.mr-form button{background:var(--mr-yellow);color:var(--mr-blue)}
.mr-form-status{padding:1rem 1.1rem;margin-bottom:1rem;border-left:5px solid var(--mr-cyan);border-radius:8px;background:var(--mr-surface)}
.mr-form-status.is-error{border-left-color:#b42318}
.mr-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Footer */
.mr-site-footer{
  position:relative;
  background:
    radial-gradient(ellipse at 84% 20%, rgba(0,167,231,.12) 0, rgba(0,167,231,0) 42%),
    linear-gradient(122deg, #032D67 0%, #06477f 55%, #032D67 100%);
  color:#fff;
  box-shadow:inset 0 18px 24px -24px rgba(255,255,255,.24);
  overflow:hidden;
}
.mr-site-footer::after{content:"";position:absolute;right:-70px;top:55px;width:180px;height:180px;border:20px solid rgba(0,167,231,.14);transform:rotate(13deg);pointer-events:none}
.mr-site-footer h2,.mr-site-footer h3,.mr-site-footer p,.mr-site-footer a{color:#fff}
.mr-site-footer h3{font-size:1rem;text-transform:uppercase;letter-spacing:.08em;color:var(--mr-yellow)}
.mr-site-footer a{text-decoration:none}
.mr-site-footer a:hover{color:var(--mr-yellow);text-decoration:underline}
.mr-footer-top{border-top:0}
.mr-site-footer>.wp-block-columns{padding-top:clamp(6.8rem,8vw,8.5rem)!important}
.mr-footer-rule{border-top:1px solid rgba(255,255,255,.18);font-size:.9rem;color:rgba(255,255,255,.82)}

/* Inner pages — same visual language as the homepage hero */
.mr-page-title{
  position:relative;
  overflow:hidden;
  padding:clamp(5.2rem,7vw,7rem) 0 clamp(5.8rem,7.8vw,7.8rem);
  background:
    var(--mr-brand-gradient-overlay),
    var(--mr-brand-gradient);
  color:white;
  isolation:isolate;
}
.mr-page-title::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(3,45,103,.10) 0%, rgba(3,45,103,0) 64%);
  pointer-events:none;
  z-index:0;
}
.mr-page-title::after{
  content:"";
  position:absolute;
  right:8vw;
  bottom:-34px;
  width:150px;
  height:72px;
  background:var(--mr-yellow);
  transform:rotate(-5deg);
  z-index:0;
}
.mr-page-title > *,
.mr-page-title .wp-block-group{position:relative;z-index:1}
.mr-page-title h1,
.mr-page-title .wp-block-query-title{
  color:white;
  margin:0;
  font-size:clamp(2.5rem,5vw,4.8rem);
  line-height:1.02;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.mr-page-title .mr-bar{margin-bottom:0}
.mr-page-title .wp-block-post-date,
.mr-page-title .wp-block-post-terms,
.mr-page-title .wp-block-post-terms a,
.mr-page-title .wp-block-post-date a{color:rgba(255,255,255,.92)}
.mr-page-title .wp-block-post-terms a:hover,
.mr-page-title .wp-block-post-date a:hover{color:var(--mr-yellow)}
.mr-page-meta{margin-top:1rem;gap:1rem!important;font-weight:750}
.mr-page-meta .wp-block-post-terms{margin:0}
.mr-page-kicker{color:var(--mr-yellow)!important;margin-bottom:.85rem!important}

/* Listing and article content begins cleanly on white after the branded title area. */
.mr-listing-main,
.mr-single-main,
.mr-error-main{background:var(--mr-white)}
.mr-single-main .wp-block-post-featured-image img{
  border-radius:var(--mr-radius);
  box-shadow:var(--mr-shadow);
  max-height:620px;
  object-fit:cover;
}
.mr-single-main .wp-block-post-featured-image{margin-bottom:clamp(2rem,4vw,3.5rem)}
.wp-block-post-navigation-link a{font-weight:850}

/* General native block polish */
.wp-block-separator{border-color:rgba(3,45,103,.15)!important}
.wp-block-quote{background:var(--mr-surface);border-radius:0 var(--mr-radius-sm) var(--mr-radius-sm) 0;padding-top:1rem!important;padding-bottom:1rem!important}
.wp-block-image img{height:auto}
figcaption{color:var(--mr-muted);font-size:.86rem}

/* Optional branded sections use the same cyan-to-blue family, never a white/blue blur. */
.mr-section-white-to-blue,
.mr-section-blue-to-white{
  background:var(--mr-brand-gradient);
  color:#fff;
  padding-top:clamp(5.5rem,7.5vw,7.8rem);
  padding-bottom:clamp(5.5rem,7.5vw,7.8rem);
}
.mr-hero + .mr-section,
.mr-page-title + .mr-section{box-shadow:none}

/* Mobile full-screen navigation overlay */
@media(max-width:980px){
  .mr-header-actions{gap:.38rem!important}
  .mr-theme-toggle{width:42px;height:42px;min-height:42px;padding:0}
  .mr-theme-toggle__label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
  .mr-site-header>.wp-block-group{min-height:74px}
  .mr-brand .wp-block-site-title a{width:215px;height:68px}
  .mr-query-grid .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mr-hero>.wp-block-columns,.mr-hero .wp-block-columns{gap:1rem}
  .mr-hero-image img{max-height:510px}
  .mr-hero .wp-block-column:last-child::before{inset:calc(2rem + 12px) -10px calc(2rem - 10px) 10px}

  .mr-site-header .wp-block-navigation__responsive-container.is-menu-open{
    position:fixed!important;
    inset:0!important;
    z-index:99999!important;
    width:100vw!important;
    height:100vh!important;
    min-height:100vh!important;
    margin:0!important;
    padding:0!important;
    background:rgba(3,45,103,.80)!important;
    display:flex!important;
    justify-content:flex-end!important;
    align-items:stretch!important;
  }
  .mr-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close{
    width:min(89vw,430px)!important;
    max-width:430px!important;
    height:100vh!important;
    margin:0 0 0 auto!important;
    padding:1.5rem!important;
    overflow-y:auto!important;
    background:#fff!important;
    color:var(--mr-blue)!important;
    box-shadow:-14px 0 34px rgba(0,0,0,.20);
    animation:mr-safe-nav-in .22s ease-out both;
  }
  .mr-site-header .wp-block-navigation__responsive-dialog{min-height:100%}
  .mr-site-header .wp-block-navigation__responsive-container-close{
    top:1rem!important;
    right:1rem!important;
    width:46px!important;
    height:46px!important;
    padding:11px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:var(--mr-yellow)!important;
    color:var(--mr-blue)!important;
    border-radius:50%!important;
  }
  .mr-site-header .wp-block-navigation__responsive-container-content{width:100%!important;padding-top:4.75rem!important}
  .mr-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container{width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:.25rem!important}
  .mr-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item{width:100%!important;font-size:1.18rem!important;font-weight:850!important;color:var(--mr-blue)!important;border-bottom:1px solid var(--mr-border)!important}
  .mr-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{display:block!important;width:100%!important;padding:1rem .55rem!important;color:var(--mr-blue)!important;border-radius:8px!important}
  .mr-site-header .wp-block-navigation__responsive-container-content .mr-nav-contact{margin-top:1rem!important;margin-left:0!important;border:0!important;background:var(--mr-yellow)!important}
}

@media(max-width:700px){
  .mr-brand .wp-block-site-title a{width:178px;height:60px}
  .admin-bar .mr-site-header{top:46px}
  .mr-query-grid .wp-block-post-template{grid-template-columns:1fr}
  .mr-form-grid{grid-template-columns:1fr}
  .mr-hero .wp-block-columns{gap:0}
  .mr-hero-copy{padding-top:4.7rem;padding-bottom:4rem}
  .mr-hero h1{font-size:clamp(2.8rem,14vw,4.4rem)}
  .mr-hero .wp-block-column:last-child{padding-top:2.2rem;padding-bottom:4.4rem}
  .mr-hero .wp-block-column:last-child::before{inset:calc(2.2rem + 10px) -7px calc(4.4rem - 8px) 7px;border-radius:15px}
  .mr-hero .wp-block-column:last-child::after{width:52px;height:10px;top:.75rem;left:0}
  .mr-hero-image img{max-height:none;border-radius:15px}
  .mr-section{padding-top:3.8rem;padding-bottom:3.8rem}
  .mr-section-blue{padding-top:5.5rem;padding-bottom:5.5rem}
  .mr-site-footer>.wp-block-columns{padding-top:5.6rem!important}
  .mr-page-title{padding-top:4.8rem;padding-bottom:5.8rem}
  .mr-card,.mr-query-grid .wp-block-post,.mr-form{border-radius:15px}
  .mr-site-footer::after{display:none}
}

@keyframes mr-safe-nav-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ==========================================================
   Color mode — dark state controlled by the three-state switcher.
   "System" resolves to the browser/OS preference in JavaScript.
   ========================================================== */

  html.mr-theme-dark{
    color-scheme:dark;
    --mr-dark-bg:#08111F;
    --mr-dark-surface:#0D1B2A;
    --mr-dark-surface-2:#12263A;
    --mr-dark-surface-3:#17324A;
    --mr-dark-text:#F4F7FB;
    --mr-dark-muted:#B9C5D2;
    --mr-dark-border:#244158;
    --mr-dark-shadow:0 16px 42px rgba(0,0,0,.30);
    --mr-dark-shadow-lift:0 24px 58px rgba(0,0,0,.42);
    --mr-ink:var(--mr-dark-text);
    --mr-muted:var(--mr-dark-muted);
    --mr-surface:var(--mr-dark-surface);
    --mr-surface-2:var(--mr-dark-surface-2);
    --mr-border:var(--mr-dark-border);
    --mr-shadow:var(--mr-dark-shadow);
    --mr-shadow-lift:var(--mr-dark-shadow-lift);
  }

  html.mr-theme-dark{background:var(--mr-dark-bg)}
  html.mr-theme-dark body{
    background:var(--mr-dark-bg);
    color:var(--mr-dark-text);
  }

  html.mr-theme-dark body h1,
html.mr-theme-dark body h2,
html.mr-theme-dark body h3,
html.mr-theme-dark body h4,
html.mr-theme-dark body h5,
html.mr-theme-dark body h6{color:var(--mr-dark-text)}

  html.mr-theme-dark body a{color:var(--mr-cyan)}
  html.mr-theme-dark body a:hover{color:var(--mr-yellow)}
  html.mr-theme-dark ::selection{background:var(--mr-yellow);color:var(--mr-blue)}

  /* Header: dark shell with a dedicated transparent dark-logo asset. */
  html.mr-theme-dark .mr-site-header{
    background:rgba(8,17,31,.96);
    border-bottom-color:rgba(255,255,255,.09);
    box-shadow:0 7px 28px rgba(0,0,0,.30);
  }
  html.mr-theme-dark .mr-brand{padding:0;background:transparent;box-shadow:none;border-radius:0}
  html.mr-theme-dark .mr-site-header .wp-block-navigation-item__content{color:var(--mr-dark-text)}
  html.mr-theme-dark .mr-site-header .wp-block-navigation-item__content:hover{
    color:#fff;
    background:rgba(0,167,231,.16);
  }
  html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container-open,
html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container-close{color:var(--mr-dark-text)}
  html.mr-theme-dark .mr-nav-contact,
html.mr-theme-dark .mr-nav-contact .wp-block-navigation-item__content{
    color:var(--mr-blue)!important;
  }

  /* Brand hero/title gradients remain recognizably FDP. A subtle dark veil
     prevents the bright cyan top from feeling like a light-mode fragment. */
  html.mr-theme-dark .mr-hero,
html.mr-theme-dark .mr-page-title{
    background:
      linear-gradient(180deg,rgba(8,17,31,.08),rgba(8,17,31,.20)),
      var(--mr-brand-gradient-overlay),
      var(--mr-brand-gradient);
  }
  html.mr-theme-dark .mr-hero h1,
html.mr-theme-dark .mr-hero h2,
html.mr-theme-dark .mr-hero p,
html.mr-theme-dark .mr-page-title h1,
html.mr-theme-dark .mr-page-title h2,
html.mr-theme-dark .mr-page-title p{color:#fff}

  /* General surfaces */
  html.mr-theme-dark .mr-section,
html.mr-theme-dark .mr-listing-main,
html.mr-theme-dark .mr-single-main,
html.mr-theme-dark .mr-error-main{background:var(--mr-dark-bg);color:var(--mr-dark-text)}

  html.mr-theme-dark .mr-section-surface{
    background:linear-gradient(
      to bottom,
      var(--mr-dark-bg) 0,
      var(--mr-dark-surface) 72px,
      var(--mr-dark-surface) calc(100% - 72px),
      var(--mr-dark-bg) 100%
    );
  }
  html.mr-theme-dark .mr-section-yellow{
    background:var(--mr-yellow);
    color:var(--mr-blue);
  }
  html.mr-theme-dark .mr-section-yellow h1,
html.mr-theme-dark .mr-section-yellow h2,
html.mr-theme-dark .mr-section-yellow h3,
html.mr-theme-dark .mr-section-yellow h4,
html.mr-theme-dark .mr-section-yellow p,
html.mr-theme-dark .mr-section-yellow li,
html.mr-theme-dark .mr-section-yellow a{color:var(--mr-blue)}
  html.mr-theme-dark .mr-lead{color:#D7E0E9}
  html.mr-theme-dark .mr-section-blue{color:#fff}
  html.mr-theme-dark .mr-section-blue h1,
html.mr-theme-dark .mr-section-blue h2,
html.mr-theme-dark .mr-section-blue h3,
html.mr-theme-dark .mr-section-blue p,
html.mr-theme-dark .mr-section-blue li{color:#fff}

  /* WordPress preset blocks that were intentionally light in the editor */
  html.mr-theme-dark .has-fdp-white-background-color,
html.mr-theme-dark .has-surface-background-color{background-color:var(--mr-dark-surface)!important}
  html.mr-theme-dark .has-fdp-white-color,
html.mr-theme-dark .has-ink-color{color:var(--mr-dark-text)!important}
  html.mr-theme-dark .has-fdp-blue-color:not(.has-fdp-yellow-background-color):not(.mr-section-yellow){color:var(--mr-cyan)!important}

  /* Cards / query loops */
  html.mr-theme-dark .mr-card,
html.mr-theme-dark .mr-query-grid .wp-block-post{
    background:var(--mr-dark-surface);
    border-color:var(--mr-dark-border);
    box-shadow:var(--mr-dark-shadow);
  }
  html.mr-theme-dark .mr-card:hover,
html.mr-theme-dark .mr-query-grid .wp-block-post:hover{
    border-color:rgba(0,167,231,.46);
    box-shadow:var(--mr-dark-shadow-lift);
  }
  html.mr-theme-dark .mr-card h1,
html.mr-theme-dark .mr-card h2,
html.mr-theme-dark .mr-card h3,
html.mr-theme-dark .mr-card h4{color:var(--mr-dark-text)}
  html.mr-theme-dark .mr-query-grid .wp-block-post-title a,
html.mr-theme-dark .mr-query-grid .wp-block-post-excerpt__more-link{color:var(--mr-cyan)}
  html.mr-theme-dark .mr-query-grid .wp-block-post-title a:hover,
html.mr-theme-dark .mr-query-grid .wp-block-post-excerpt__more-link:hover{color:var(--mr-yellow)}
  html.mr-theme-dark .mr-query-grid .wp-block-post-excerpt{color:#D4DEE8}
  html.mr-theme-dark .mr-query-grid time{color:var(--mr-dark-muted)}

  /* Forms */
  html.mr-theme-dark .mr-form{
    background:var(--mr-dark-surface);
    border-color:var(--mr-dark-border);
    box-shadow:var(--mr-dark-shadow);
  }
  html.mr-theme-dark .mr-field label{color:var(--mr-dark-text)}
  html.mr-theme-dark .mr-field input,
html.mr-theme-dark .mr-field textarea,
html.mr-theme-dark .mr-field select{
    background:var(--mr-dark-surface-2);
    border-color:#36536B;
    color:var(--mr-dark-text);
    caret-color:var(--mr-yellow);
  }
  html.mr-theme-dark .mr-field input::placeholder,
html.mr-theme-dark .mr-field textarea::placeholder{color:#8FA2B5;opacity:1}
  html.mr-theme-dark .mr-field input:focus,
html.mr-theme-dark .mr-field textarea:focus,
html.mr-theme-dark .mr-field select:focus{
    border-color:var(--mr-cyan);
    box-shadow:0 0 0 4px rgba(0,167,231,.20);
  }
  html.mr-theme-dark .mr-form-status{background:var(--mr-dark-surface-2);color:var(--mr-dark-text)}

  /* Social links and common interactive surfaces */
  html.mr-theme-dark .mr-social-links a{
    background:var(--mr-dark-surface);
    border-color:var(--mr-dark-border);
    color:var(--mr-cyan);
    box-shadow:0 7px 20px rgba(0,0,0,.22);
  }
  html.mr-theme-dark .mr-social-links a:hover{background:var(--mr-cyan);color:#001D3D}
  html.mr-theme-dark .wp-block-button__link,
html.mr-theme-dark .mr-form button{background:var(--mr-yellow)!important;color:var(--mr-blue)!important}
  html.mr-theme-dark .wp-block-button__link:hover,
html.mr-theme-dark .mr-form button:hover{background:var(--mr-cyan)!important;color:#001D3D!important}

  /* Native content */
  html.mr-theme-dark .wp-block-separator{border-color:rgba(255,255,255,.16)!important}
  html.mr-theme-dark .wp-block-quote{
    background:var(--mr-dark-surface);
    color:var(--mr-dark-text);
  }
  html.mr-theme-dark .wp-block-quote cite{color:var(--mr-dark-muted)}
  html.mr-theme-dark figcaption{color:var(--mr-dark-muted)}
  html.mr-theme-dark code,
html.mr-theme-dark kbd,
html.mr-theme-dark pre{
    background:var(--mr-dark-surface-2);
    color:#E9F0F6;
    border-color:var(--mr-dark-border);
  }
  html.mr-theme-dark table,
html.mr-theme-dark .wp-block-table table{border-color:var(--mr-dark-border)}
  html.mr-theme-dark .wp-block-table td,
html.mr-theme-dark .wp-block-table th{border-color:var(--mr-dark-border);color:var(--mr-dark-text)}
  html.mr-theme-dark .wp-block-table thead{background:var(--mr-dark-surface-2)}
  html.mr-theme-dark input,
html.mr-theme-dark textarea,
html.mr-theme-dark select{accent-color:var(--mr-yellow)}

  /* Pagination and post navigation */
  html.mr-theme-dark .wp-block-query-pagination a,
html.mr-theme-dark .wp-block-post-navigation-link a{color:var(--mr-cyan)}
  html.mr-theme-dark .wp-block-query-pagination a:hover,
html.mr-theme-dark .wp-block-post-navigation-link a:hover{color:var(--mr-yellow)}

  /* Footer remains dark, but distinguish it from the page background. */
  html.mr-theme-dark .mr-site-footer{
    background:
      radial-gradient(ellipse at 84% 20%,rgba(0,167,231,.12) 0,rgba(0,167,231,0) 42%),
      linear-gradient(122deg,#020A14 0%,#082342 55%,#020A14 100%);
    border-top:1px solid rgba(255,255,255,.08);
  }
  html.mr-theme-dark .mr-site-footer h2,
html.mr-theme-dark .mr-site-footer h3,
html.mr-theme-dark .mr-site-footer p,
html.mr-theme-dark .mr-site-footer a{color:#fff}
  html.mr-theme-dark .mr-site-footer h3{color:var(--mr-yellow)}

  /* Browser/WordPress elements that often retain a white canvas */
  html.mr-theme-dark .wp-site-blocks,
html.mr-theme-dark main,
html.mr-theme-dark article{color:var(--mr-dark-text)}
  html.mr-theme-dark hr{border-color:var(--mr-dark-border)}

html.mr-theme-dark .mr-brand .wp-block-site-title a{
  background-image:url("../images/marie-richter-fdp-teltow-flaeming-dark.png");
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.24));
}
html.mr-theme-dark .mr-theme-toggle{
  background:rgba(255,255,255,.07);
  color:#F4F7FB;
  border-color:rgba(255,255,255,.16);
  box-shadow:none;
}
html.mr-theme-dark .mr-theme-toggle:hover{background:rgba(0,167,231,.16);border-color:rgba(0,167,231,.48)}


@media (max-width:980px){

  html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container.is-menu-open{
    background:rgba(0,0,0,.76)!important;
  }
  html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close{
    background:var(--mr-dark-surface)!important;
    color:var(--mr-dark-text)!important;
    box-shadow:-14px 0 34px rgba(0,0,0,.46);
  }
  html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item{
    color:var(--mr-dark-text)!important;
    border-bottom-color:var(--mr-dark-border)!important;
  }
  html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content{
    color:var(--mr-dark-text)!important;
  }
  html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:hover{
    background:rgba(0,167,231,.14)!important;
    color:#fff!important;
  }
  html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container-close{
    background:var(--mr-yellow)!important;
    color:var(--mr-blue)!important;
  }
  html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container-content .mr-nav-contact,
html.mr-theme-dark .mr-site-header .wp-block-navigation__responsive-container-content .mr-nav-contact .wp-block-navigation-item__content{
    background:var(--mr-yellow)!important;
    color:var(--mr-blue)!important;
  }

}

