/*
Theme Name: MED-FUNK Astra Child
Theme URI: https://med-funk.de/
Description: Modernes Astra-Child-Theme für Medizin- und Funktechnik Stefan Reifsteck. Der OnePager wird vollständig mit Elementor bearbeitet.
Author: SHOPTIMIZER
Template: astra
Version: 2.0.0
Text Domain: med-funk-astra-child
*/

:root{
  --mf-red:#e52b1a;
  --mf-red-dark:#bf2012;
  --mf-ink:#24272b;
  --mf-charcoal:#30343a;
  --mf-text:#4d535a;
  --mf-muted:#747b83;
  --mf-warm:#f3f1ee;
  --mf-soft:#f7f7f6;
  --mf-line:#e3e0dc;
  --mf-white:#fff;
  --mf-radius:18px;
  --mf-shadow:0 18px 50px rgba(29,31,34,.08);
  --mf-shadow-hover:0 24px 62px rgba(29,31,34,.14);
}

html{scroll-behavior:smooth;scroll-padding-top:96px}
body{margin:0;background:var(--mf-white);color:var(--mf-text);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
a{color:var(--mf-red)}

/* Astra: Elementor page should use the full viewport. */
body.home .site-content, body.page .site-content{margin:0}
body.home .ast-container{max-width:none;padding:0}
body.home #primary{margin:0;width:100%}
body.home .entry-content{margin:0}
body.home .entry-header{display:none}

/* Fixed branded header */
.mf-site-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(36,39,43,.08)}
.mf-header-inner{width:min(1180px,calc(100% - 40px));min-height:84px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:30px}
.mf-brand img{display:block;width:145px;height:auto}
.mf-mainnav{display:flex;align-items:center;gap:26px}
.mf-mainnav a{color:var(--mf-ink);font-size:.92rem;font-weight:700;text-decoration:none;transition:.18s ease}
.mf-mainnav a:hover{color:var(--mf-red)}
.mf-header-actions{display:flex;align-items:center;gap:10px}
.mf-header-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;text-decoration:none;font-weight:700;font-size:.9rem}
.mf-header-mail{color:var(--mf-ink);border:1px solid var(--mf-line);background:#fff}
.mf-header-phone{color:#fff;background:var(--mf-red)}
.mf-mobile-nav{display:none}
.mf-mobile-nav summary{list-style:none;cursor:pointer;width:44px;height:44px;border:1px solid var(--mf-line);border-radius:12px;display:grid;place-items:center;font-size:0}
.mf-mobile-nav summary::-webkit-details-marker{display:none}
.mf-mobile-nav summary:after{content:'☰';font-size:22px;color:var(--mf-ink)}
.mf-mobile-links{position:absolute;left:20px;right:20px;top:74px;background:#fff;border:1px solid var(--mf-line);border-radius:14px;box-shadow:var(--mf-shadow);padding:12px;display:grid;gap:4px}
.mf-mobile-links a{padding:12px 14px;border-radius:9px;color:var(--mf-ink);text-decoration:none;font-weight:700}
.mf-mobile-links a:hover{background:var(--mf-soft);color:var(--mf-red)}

/* Elementor layout helpers */
.elementor .mf-section{padding:92px 24px}
.elementor .mf-section-tight{padding-top:58px;padding-bottom:58px}
.elementor .mf-shell{max-width:1180px;margin-left:auto;margin-right:auto}
.elementor .mf-kicker .elementor-heading-title{color:var(--mf-red);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em}
.elementor .mf-title .elementor-heading-title{color:var(--mf-ink);font-size:clamp(2rem,4.5vw,4.4rem);line-height:1.02;letter-spacing:-.035em;font-weight:800}
.elementor .mf-section-title .elementor-heading-title{color:var(--mf-ink);font-size:clamp(2rem,3vw,3rem);line-height:1.08;letter-spacing:-.025em;font-weight:800}
.elementor .mf-copy{color:var(--mf-text);font-size:1.05rem;line-height:1.75}
.elementor .mf-muted{color:var(--mf-muted)}

/* Hero */
.elementor .mf-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#24272b 0%,#30343a 72%,#3b4046 100%);padding:100px 24px 96px}
.elementor .mf-hero:before{content:'';position:absolute;width:420px;height:420px;border-radius:50%;right:-110px;top:-190px;background:radial-gradient(circle,rgba(229,43,26,.36),rgba(229,43,26,0) 68%)}
.elementor .mf-hero:after{content:'';position:absolute;width:320px;height:320px;border-radius:50%;left:-180px;bottom:-200px;background:radial-gradient(circle,rgba(255,255,255,.10),rgba(255,255,255,0) 70%)}
.elementor .mf-hero > .e-con-inner,.elementor .mf-hero.e-con{position:relative;z-index:1}
.elementor .mf-hero .mf-kicker .elementor-heading-title{color:#ff7a6c}
.elementor .mf-hero .mf-title .elementor-heading-title{color:#fff;max-width:850px}
.elementor .mf-hero .mf-copy{color:#e9e9e9;max-width:730px;font-size:1.15rem}
.elementor .mf-hero-note{display:inline-flex;width:auto!important;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:9px 14px}
.elementor .mf-hero-note .elementor-widget-container{color:#fff;font-size:.9rem}
.elementor .mf-btn-red .elementor-button{background:var(--mf-red);color:#fff;border-radius:999px;padding:15px 23px;font-weight:800;box-shadow:0 10px 28px rgba(229,43,26,.23)}
.elementor .mf-btn-red .elementor-button:hover{background:var(--mf-red-dark);transform:translateY(-1px)}
.elementor .mf-btn-ghost .elementor-button{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:14px 22px;font-weight:800}
.elementor .mf-btn-ghost .elementor-button:hover{background:#fff;color:var(--mf-ink)}

/* Services */
.elementor .mf-services{background:#fff}
.elementor .mf-card-grid{gap:22px}
.elementor .mf-service-card{height:100%;background:#fff;border:1px solid var(--mf-line);border-radius:var(--mf-radius);padding:30px 28px;box-shadow:0 10px 30px rgba(29,31,34,.045);transition:.22s ease}
.elementor .mf-service-card:hover{transform:translateY(-5px);box-shadow:var(--mf-shadow-hover);border-color:#d8d3ce}
.elementor .mf-card-icon{width:54px!important;height:54px;border-radius:14px;background:var(--mf-warm);display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.elementor .mf-card-icon .elementor-widget-container{font-size:25px;line-height:1;color:var(--mf-red);font-weight:800}
.elementor .mf-card-title .elementor-heading-title{color:var(--mf-ink);font-size:1.2rem;font-weight:800;line-height:1.25}
.elementor .mf-service-card .elementor-widget-text-editor{color:var(--mf-text);line-height:1.7;font-size:.97rem}

/* About */
.elementor .mf-about{background:var(--mf-warm)}
.elementor .mf-fact-card{background:#fff;border-radius:16px;padding:22px 24px;border:1px solid rgba(36,39,43,.07);box-shadow:0 8px 26px rgba(29,31,34,.04)}
.elementor .mf-fact-card .elementor-heading-title{font-size:1.03rem;color:var(--mf-ink);font-weight:800}
.elementor .mf-fact-card .elementor-widget-text-editor{color:var(--mf-muted);line-height:1.55}

/* Contact */
.elementor .mf-contact{background:#fff}
.elementor .mf-contact-box{background:var(--mf-ink);border-radius:24px;padding:48px;box-shadow:var(--mf-shadow);overflow:hidden;position:relative}
.elementor .mf-contact-box:after{content:'';position:absolute;right:-90px;bottom:-140px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(229,43,26,.45),rgba(229,43,26,0) 68%)}
.elementor .mf-contact-box .mf-section-title .elementor-heading-title{color:#fff}
.elementor .mf-contact-box .mf-copy{color:#d9dcdf}
.elementor .mf-contact-row{background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:16px 18px}
.elementor .mf-contact-row .elementor-heading-title{color:#fff;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}
.elementor .mf-contact-row .elementor-widget-text-editor,.elementor .mf-contact-row a{color:#fff;font-size:1.02rem;text-decoration:none}

/* Legal */
.elementor .mf-legal{background:var(--mf-soft)}
.elementor .mf-legal-card{background:#fff;border:1px solid var(--mf-line);border-radius:18px;padding:34px;box-shadow:0 8px 28px rgba(29,31,34,.035)}
.elementor .mf-legal-card .elementor-heading-title{color:var(--mf-ink)}
.elementor .mf-legal-card .elementor-widget-text-editor{font-size:.94rem;line-height:1.7;color:var(--mf-text)}
.elementor .mf-legal-card h3{font-size:1.05rem;margin:24px 0 7px;color:var(--mf-ink)}
.elementor .mf-legal-card p{margin:0 0 12px}
.elementor .mf-legal-note{background:#fff0ed;border-left:4px solid var(--mf-red);padding:15px 17px;border-radius:0 10px 10px 0}

/* Footer */
.mf-footer{background:#1e2023;color:#cdd0d3;padding:30px 0}
.mf-footer-inner{width:min(1180px,calc(100% - 40px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:.9rem}
.mf-footer-links{display:flex;gap:18px;flex-wrap:wrap}
.mf-footer a{color:#fff;text-decoration:none}
.mf-footer a:hover{color:#ff7a6c}

@media(max-width:900px){
  .mf-mainnav,.mf-header-actions{display:none}.mf-mobile-nav{display:block;position:relative}
  .elementor .mf-section{padding:72px 20px}.elementor .mf-hero{padding:82px 20px 76px}.elementor .mf-contact-box{padding:36px 28px}
}
@media(max-width:600px){
  .mf-header-inner{width:min(100% - 28px,1180px);min-height:74px}.mf-brand img{width:126px}
  .elementor .mf-section{padding:60px 16px}.elementor .mf-hero{padding:66px 16px 64px}.elementor .mf-contact-box{padding:30px 22px;border-radius:18px}.elementor .mf-legal-card{padding:25px 21px}
  .mf-footer-inner{width:min(100% - 28px,1180px)}
}
/* Flexible Elementor container sizing independent of Elementor version. */
.elementor .mf-card-grid,.elementor .mf-two-col,.elementor .mf-contact-grid,.elementor .mf-legal-grid,.elementor .mf-button-row{display:flex;flex-direction:row;flex-wrap:wrap}
.elementor .mf-card-grid>.e-con{flex:1 1 calc(25% - 18px);min-width:220px}
.elementor .mf-two-col>.e-con{flex:1 1 calc(50% - 20px);min-width:290px}
.elementor .mf-contact-grid>.e-con{flex:1 1 calc(50% - 20px);min-width:290px}
.elementor .mf-legal-grid>.e-con{flex:1 1 calc(50% - 20px);min-width:310px}
.elementor .mf-button-row{gap:12px}
.elementor .mf-button-row>.elementor-element{width:auto;max-width:max-content}
@media(max-width:900px){.elementor .mf-card-grid>.e-con{flex-basis:calc(50% - 14px)}}
@media(max-width:620px){.elementor .mf-card-grid>.e-con,.elementor .mf-two-col>.e-con,.elementor .mf-contact-grid>.e-con,.elementor .mf-legal-grid>.e-con{flex-basis:100%;min-width:0}}
