/*
Theme Name: MED-FUNK Astra Child
Theme URI: https://med-funk.de/
Description: OnePager-Child-Theme für Medizin- und Funktechnik Stefan Reifsteck. Parent Theme: Astra.
Author: SHOPTIMIZER
Template: astra
Version: 1.1.0
Text Domain: med-funk-astra-child
*/

:root {
  --mf-red: #f32912;
  --mf-red-dark: #cf210e;
  --mf-charcoal: #353535;
  --mf-charcoal-2: #292929;
  --mf-text: #505050;
  --mf-muted: #727272;
  --mf-light: #f3f3f3;
  --mf-border: #dedede;
  --mf-white: #ffffff;
  --mf-blue: #39aadd;
  --mf-green: #4ed86d;
  --mf-shadow: 0 16px 40px rgba(0,0,0,.07);
}

html { scroll-behavior: smooth; }
body { margin:0; color:var(--mf-text); background:var(--mf-white); font-family:Arial, Helvetica, sans-serif; }
body.home .site-content { margin-top:0; }
* { box-sizing:border-box; }
a { color:var(--mf-red); }

.mf-shell { width:min(1120px, calc(100% - 38px)); margin-inline:auto; }
.mf-section { padding:82px 0; scroll-margin-top:118px; }
.mf-section-grey { background:var(--mf-light); }

/* Header */
.mf-header { background:#fff; position:sticky; top:0; z-index:1000; box-shadow:0 1px 0 rgba(0,0,0,.05); }
.mf-head-top { min-height:108px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.mf-logo { display:inline-flex; align-items:center; }
.mf-logo img { display:block; width:150px; max-height:94px; object-fit:contain; }
.mf-head-contact { display:flex; gap:8px; }
.mf-contact-icon { width:40px; height:40px; border-radius:4px; display:grid; place-items:center; color:#fff; text-decoration:none; font-size:19px; font-weight:700; border:1px solid rgba(0,0,0,.12); box-shadow:inset 0 1px rgba(255,255,255,.22); }
.mf-mail { background:var(--mf-blue); }
.mf-phone { background:var(--mf-green); }
.mf-contact-icon:hover { color:#fff; filter:brightness(.95); }

.mf-navbar { background:var(--mf-charcoal); }
.mf-nav-inner { min-height:54px; display:flex; align-items:center; }
.mf-nav { display:flex; gap:42px; align-items:center; flex-wrap:wrap; }
.mf-nav a { color:#fff; text-decoration:none; font-size:.92rem; font-weight:700; padding:18px 0 16px; border-bottom:3px solid transparent; }
.mf-nav a:hover, .mf-nav a:focus { color:#fff; border-bottom-color:var(--mf-red); }

/* Intro */
.mf-intro { background:#ededed; padding:36px 0 0; }
.mf-welcome { background:var(--mf-charcoal); color:#fff; text-align:center; padding:52px 56px 50px; }
.mf-welcome h1 { color:#fff; font-weight:400; text-transform:uppercase; letter-spacing:.01em; margin:5px 0 18px; font-size:clamp(2rem,4vw,3.1rem); }
.mf-welcome p { color:#fff; margin:0 auto; max-width:780px; line-height:1.7; }
.mf-eyebrow { font-size:.76rem; text-transform:uppercase; letter-spacing:.18em; opacity:.75; }
.mf-divider { display:block; max-width:860px; height:1px; background:rgba(255,255,255,.7); margin:20px auto; }
.mf-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:28px; }
.mf-btn { display:inline-flex; align-items:center; justify-content:center; min-height:47px; padding:0 20px; border-radius:4px; text-decoration:none; font-weight:700; transition:.2s ease; }
.mf-btn-red { background:var(--mf-red); color:#fff; }
.mf-btn-red:hover { background:var(--mf-red-dark); color:#fff; }
.mf-btn-light { background:#fff; color:var(--mf-charcoal); border:1px solid rgba(255,255,255,.7); }
.mf-btn-light:hover { color:var(--mf-red); }

/* Section heading */
.mf-section-head { text-align:center; max-width:780px; margin:0 auto 42px; }
.mf-section-head > span, .mf-kicker { color:var(--mf-red); font-weight:700; text-transform:uppercase; font-size:.82rem; letter-spacing:.12em; }
.mf-section-head h2, .mf-about-grid h2, .mf-contact-panel h2, .mf-legal-card h2 { color:var(--mf-charcoal); }
.mf-section-head h2 { margin:10px 0 14px; font-size:clamp(2rem,3vw,2.8rem); line-height:1.15; }
.mf-section-head p { margin:0; color:var(--mf-muted); line-height:1.7; }
.mf-section-head-left { text-align:left; margin-left:0; }

/* Services */
.mf-services { padding-top:70px; }
.mf-grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.mf-service-card { text-align:center; padding:10px 10px 0; }
.mf-round-icon { width:66px; height:66px; border-radius:50%; margin:0 auto 16px; display:grid; place-items:center; background:var(--mf-charcoal); color:#fff; font-size:25px; }
.mf-service-card h3 { color:var(--mf-red); margin:0 0 14px; font-size:1.14rem; line-height:1.35; }
.mf-service-card p { margin:0; color:var(--mf-text); line-height:1.7; font-size:.96rem; }

/* About */
.mf-about-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:center; }
.mf-about-grid h2 { font-size:clamp(2rem,3vw,2.8rem); margin:10px 0 18px; line-height:1.15; }
.mf-about-grid p { line-height:1.8; color:var(--mf-text); }
.mf-facts { display:grid; gap:14px; }
.mf-facts div { background:#fff; border-left:4px solid var(--mf-red); padding:20px 22px; box-shadow:0 6px 24px rgba(0,0,0,.04); }
.mf-facts strong { display:block; color:var(--mf-charcoal); font-size:1.06rem; margin-bottom:4px; }
.mf-facts span { color:var(--mf-muted); }

/* Contact */
.mf-contact-panel { background:var(--mf-charcoal); color:#fff; padding:44px 48px; display:grid; grid-template-columns:1.05fr .95fr; gap:46px; align-items:center; box-shadow:var(--mf-shadow); }
.mf-contact-panel h2 { color:#fff; margin:10px 0 14px; font-size:clamp(2rem,3vw,2.7rem); }
.mf-contact-panel p { color:#e4e4e4; line-height:1.7; margin:0; }
.mf-kicker-dark { color:#ff6c57; }
.mf-contact-list { display:grid; gap:10px; }
.mf-contact-list a, .mf-contact-list div { display:flex; justify-content:space-between; gap:18px; align-items:center; background:rgba(255,255,255,.07); color:#fff; text-decoration:none; padding:15px 17px; border-left:3px solid var(--mf-red); }
.mf-contact-list a:hover { background:rgba(255,255,255,.12); }
.mf-contact-list span { text-align:right; }

/* Legal */
.mf-legal-section { background:#f6f6f6; border-top:1px solid var(--mf-border); }
.mf-legal-card { background:#fff; border:1px solid var(--mf-border); padding:36px 40px; margin-top:24px; box-shadow:0 8px 26px rgba(0,0,0,.035); scroll-margin-top:120px; }
.mf-legal-card h2 { font-size:1.9rem; margin:0 0 22px; padding-bottom:12px; border-bottom:3px solid var(--mf-red); }
.mf-legal-card h3 { color:var(--mf-charcoal); margin:28px 0 8px; font-size:1.12rem; }
.mf-legal-card p, .mf-legal-card li { line-height:1.72; color:var(--mf-text); }
.mf-legal-card a { color:var(--mf-red); }
.mf-legal-note { background:#fff2ef; border-left:4px solid var(--mf-red); padding:16px 18px; }

/* Footer */
.mf-footer { background:var(--mf-charcoal-2); color:#d9d9d9; padding:28px 0; }
.mf-footer-inner { display:flex; justify-content:space-between; gap:24px; align-items:center; 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:#ff6c57; }

@media (max-width: 960px) {
  .mf-grid-4 { grid-template-columns:repeat(2,1fr); row-gap:46px; }
  .mf-about-grid, .mf-contact-panel { grid-template-columns:1fr; }
  .mf-nav { gap:24px; }
}

@media (max-width: 700px) {
  .mf-header { position:relative; }
  .mf-head-top { min-height:92px; }
  .mf-logo img { width:132px; }
  .mf-nav-inner { padding:0; width:100%; }
  .mf-nav { width:100%; gap:0; overflow-x:auto; flex-wrap:nowrap; padding:0 18px; }
  .mf-nav a { white-space:nowrap; margin-right:24px; }
  .mf-section { padding:64px 0; scroll-margin-top:20px; }
  .mf-welcome { padding:42px 22px; }
  .mf-grid-4 { grid-template-columns:1fr; }
  .mf-service-card { max-width:540px; margin:0 auto; }
  .mf-contact-panel { padding:32px 24px; }
  .mf-contact-list a, .mf-contact-list div { align-items:flex-start; flex-direction:column; }
  .mf-contact-list span { text-align:left; }
  .mf-legal-card { padding:28px 22px; }
}

@media (max-width: 430px) {
  .mf-shell { width:min(100% - 24px,1120px); }
  .mf-contact-icon { width:36px; height:36px; }
  .mf-head-contact { gap:6px; }
}
