/*
Theme Name: F-SEC Security
Theme URI: https://f-sec.de/
Author: F-SEC Security
Description: Bearbeitbare Unternehmenshomepage mit Bildplatzhaltern, Kontakt- und Bewerbungsformular.
Version: 1.2.34
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: fsec-security
*/
:root{--navy:#1b2d4a;--blue:#487db5;--pale:#eaf0f6;--muted:#64758a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:var(--navy);font-size:17px;line-height:1.7}a{color:#356ca7}h1,h2,h3{line-height:1.18;letter-spacing:-.025em}h1{font-size:clamp(2.6rem,5vw,4.7rem)}h2{font-size:clamp(2rem,3.5vw,3.2rem)}h3{font-size:1.3rem}p{margin:0 0 1.1rem}.site-header{position:sticky;top:0;background:white;z-index:20;box-shadow:0 2px 18px #0c24351a}.header-inner,.footer-inner{max-width:1200px;margin:auto;padding:14px 24px;display:flex;align-items:center;gap:22px;justify-content:space-between}.site-logo{width:175px;height:auto;max-height:64px;object-fit:contain}.nav{display:flex;align-items:center;flex-wrap:wrap;gap:18px}.nav a{font-size:14px;font-weight:700;color:var(--navy);text-decoration:none}.nav a:hover{color:var(--blue)}.nav .login{background:var(--navy);color:white;padding:10px 14px;border-radius:6px}.site-main{overflow:hidden}.fsec-section{padding:86px max(24px,calc((100vw - 1180px)/2))}.fsec-section.is-muted{background:#f3f6f9}.fsec-section.is-dark{background:var(--navy);color:white}.fsec-eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.19em;color:var(--blue);font-weight:800}.is-dark .fsec-eyebrow{color:#b2cce8}.fsec-section>h2,.fsec-section>.wp-block-heading{margin-top:12px}.fsec-hero{background:linear-gradient(110deg,#132741,#243e60);color:white;padding-top:110px;padding-bottom:105px}.fsec-hero h1{max-width:850px;margin:15px 0}.fsec-hero p{max-width:780px;color:#dce6f2;font-size:1.18rem}.fsec-btn,.wp-block-button__link,.fsec-form button{display:inline-block;background:var(--blue);border:0;border-radius:6px;color:white!important;text-decoration:none;font-size:16px;font-weight:750;padding:13px 22px;min-height:50px;cursor:pointer}.wp-block-button.is-style-outline .wp-block-button__link{border:2px solid var(--blue);color:var(--blue)!important;background:transparent}.wp-block-buttons{display:flex;gap:14px;flex-wrap:wrap}.fsec-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:36px}.fsec-card{border:1px solid #e3e9f0;border-radius:11px;overflow:hidden;box-shadow:0 12px 26px #112d4610;background:white;display:flex;flex-direction:column}.fsec-card-body{padding:20px 22px;display:flex;flex:1;flex-direction:column}.fsec-card-body p{color:var(--muted)}.fsec-card-body a{margin-top:auto;font-weight:750;text-decoration:none}.fsec-photo{height:215px;background:#e5edf4;display:flex;align-items:center;justify-content:center;color:#52749b;font-weight:650;text-align:center;padding:20px;border-bottom:1px solid #d9e3ed}.fsec-photo::before{content:'▧';font-size:28px;margin-right:12px}.fsec-two-col{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:start;margin-top:32px}.fsec-panel{background:#e9f0f6;padding:36px;border-radius:12px}.fsec-panel p{color:#31465e}.fsec-photo-large{height:375px;border-radius:12px;border:0}.fsec-two-col ul{padding-left:20px}.fsec-two-col li{margin:7px 0}.fsec-about-badges{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px}.fsec-about-badges>div{background:#edf2f7;padding:20px;border-radius:10px;flex:1;min-width:250px}.fsec-about-badges img{max-width:190px;height:auto}.fsec-details{background:#edf3f8;border-radius:12px;padding:22px;margin-top:25px}.fsec-details summary{cursor:pointer;font-size:20px;font-weight:750}.fsec-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.fsec-form label{display:block;font-weight:650;font-size:14px}.fsec-form input,.fsec-form select,.fsec-form textarea{width:100%;border:1px solid #cbd7e2;border-radius:6px;padding:12px;background:white;font:inherit;color:var(--navy)}.fsec-form .wide{grid-column:1/-1}.fsec-form textarea{min-height:120px}.fsec-form .consent{display:flex;align-items:flex-start;gap:10px;font-weight:400}.fsec-form .consent input{width:auto;margin-top:6px}.fsec-form .honeypot{position:absolute;left:-9999px}.fsec-alert{background:#e9f3e9;color:#234d2b;border-radius:6px;padding:12px;margin:12px 0}.fsec-alert.error{background:#fff0ef;color:#8a2d2d}.site-footer{background:#111f34;color:#e8eef5}.site-footer a{color:#e8eef5}.footer-inner{align-items:flex-start;flex-wrap:wrap;padding-top:36px;padding-bottom:36px}.footer-inner>div{max-width:400px}.footer-inner p{font-size:14px;color:#c8d2df}.fsec-admin-note{border-left:4px solid #487db5;padding:10px;background:#eef4f9}.wp-block-image img{border-radius:12px;max-width:100%;height:auto}.fsec-section .wp-block-image{margin:0}.fsec-service-image{min-height:360px}.fsec-service-image img{width:100%;height:375px;object-fit:cover}.screen-reader-text{position:absolute;left:-9999px}@media(max-width:900px){.header-inner{flex-wrap:wrap}.nav{gap:10px}.fsec-cards{grid-template-columns:repeat(2,1fr)}.fsec-two-col{grid-template-columns:1fr}.fsec-section{padding:62px 24px}}@media(max-width:620px){.fsec-cards{grid-template-columns:1fr}.fsec-form{grid-template-columns:1fr}.fsec-form .wide{grid-column:1}.fsec-photo-large{height:270px}.nav a{font-size:12px}.site-logo{width:145px}}

/* Version 1.1 */
.site-logo{width:235px;max-height:82px}.nav .nav-inquiry{background:var(--blue);color:white;padding:10px 19px;border-radius:6px}.nav .nav-inquiry:hover{color:white;background:#386a9d}.fsec-hero{background:linear-gradient(115deg,#10253f 0%,#203c60 65%,#365b82 100%)}.fsec-highlights{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}.fsec-highlights span{border:1px solid #ffffff52;background:#ffffff13;color:white;padding:8px 14px;border-radius:6px;font-size:14px;font-weight:650}.fsec-hero-actions{display:flex;flex-wrap:wrap;gap:14px}.fsec-hero-actions .wp-block-buttons{margin:0}.fsec-hero-actions .wp-block-button__link{min-width:215px;text-align:center}.fsec-cards{grid-template-columns:repeat(6,minmax(0,1fr))}.fsec-card{grid-column:span 2}.fsec-card:nth-child(4){grid-column:2/span 2}.fsec-card:nth-child(5){grid-column:4/span 2}.fsec-two-col>.fsec-panel{align-self:start}.fsec-career-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.fsec-contact-section{background:linear-gradient(115deg,#10253f,#294a70);color:white}.fsec-contact-section .fsec-eyebrow{color:#b7d6f5}.fsec-contact-section a{color:white}.fsec-contact-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(320px,1.2fr);gap:60px;align-items:start}.fsec-contact-info h3{color:white}.fsec-contact-section .fsec-form label{color:white}.fsec-contact-section .fsec-form .consent a{text-decoration:underline}.fsec-contact-section .fsec-form button{background:#4d87c5}.fsec-contact-section .fsec-form input,.fsec-contact-section .fsec-form select,.fsec-contact-section .fsec-form textarea{background:white;color:#1b2d4a}.fsec-contact-section .fsec-form .consent input{accent-color:#4d87c5}
@media(max-width:900px){.fsec-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.fsec-card,.fsec-card:nth-child(4),.fsec-card:nth-child(5){grid-column:auto}.fsec-card:nth-child(5){grid-column:1/-1;max-width:calc(50% - 11px);width:100%;justify-self:center}.fsec-contact-grid{grid-template-columns:1fr;gap:18px}}@media(max-width:620px){.site-logo{width:190px}.fsec-cards{grid-template-columns:1fr}.fsec-card:nth-child(5){grid-column:auto;max-width:none}.fsec-hero-actions .wp-block-buttons,.fsec-hero-actions .wp-block-button,.fsec-hero-actions .wp-block-button__link{width:100%}}

/* Version 1.2 – Bilder in vorhandenen Platzhalter-Gruppen */
.fsec-photo:has(.fsec-selected-photo){padding:0;overflow:hidden;font-size:0}.fsec-photo:has(.fsec-selected-photo)::before{display:none}.fsec-selected-photo{display:block;width:100%;height:100%;object-fit:cover}.fsec-photo-large .fsec-selected-photo{height:100%}

/* 1.2.2 - Bewerbungsupload */
.fsec-form input[type=file]{padding:12px}.fsec-form label small{display:block;font-weight:400;font-size:12px;opacity:.85;margin-top:5px}

/* 1.2.5: Medien füllen die Leistungsbild-Platzhalter vollständig.
   Vorher konnten WordPress-Bildregeln die Höhe des Bildes auf auto setzen. */
.fsec-photo:has(> img.fsec-selected-photo){
  position:relative!important;display:block!important;overflow:hidden!important;
  padding:0!important;min-height:0!important;line-height:0!important;
}
.fsec-photo:has(> img.fsec-selected-photo):not(.fsec-photo-large){height:215px!important}
.fsec-photo.fsec-photo-large:has(> img.fsec-selected-photo){
  width:100%;height:auto!important;aspect-ratio:16/9;max-height:none!important;
}
.fsec-photo > img.fsec-selected-photo{
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;max-width:none!important;
  max-height:none!important;object-fit:cover!important;object-position:center center;
  margin:0!important;padding:0!important;border:0!important;
}
@media(max-width:620px){.fsec-photo.fsec-photo-large:has(> img.fsec-selected-photo){aspect-ratio:4/3}}

/* 1.2.6: fix all image slots including WordPress automatic paragraph wrappers. */
.fsec-photo:has(img.fsec-selected-photo){
  position:relative!important;display:block!important;overflow:hidden!important;
  padding:0!important;line-height:0!important;font-size:0!important;
  border:0!important;
}
.fsec-photo:has(img.fsec-selected-photo):not(.fsec-photo-large){height:215px!important;min-height:0!important}
.fsec-photo.fsec-photo-large:has(img.fsec-selected-photo){
  height:auto!important;min-height:0!important;aspect-ratio:16/9!important;width:100%!important;
}
.fsec-photo:has(img.fsec-selected-photo) > :not(img){
  margin:0!important;padding:0!important;border:0!important;
}
.fsec-photo:has(img.fsec-selected-photo) img.fsec-selected-photo{
  position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
  display:block!important;width:100%!important;height:100%!important;
  min-width:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center center!important;
  margin:0!important;padding:0!important;border:0!important;
}
@media(max-width:620px){.fsec-photo.fsec-photo-large:has(img.fsec-selected-photo){aspect-ratio:4/3!important}}


/* 1.2.7: Vertrauensbereich und interaktiver Leistungsfinder */
.fsec-127-inner{max-width:1300px;margin:auto;padding:0 40px}.fsec-127-trust{padding:75px 0 70px;background:#fff;text-align:center}.fsec-127-trust h2{font-size:clamp(30px,4vw,48px);color:#1b2d4a;margin:12px 0}.fsec-127-intro{max-width:780px;margin:0 auto 34px;color:#5d7188}.fsec-127-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.fsec-127-benefits article{background:#fff;border:1px solid #e1e8f1;border-radius:12px;box-shadow:0 9px 25px #12284412;padding:24px 16px}.fsec-127-benefits article span{font-size:36px;color:#487db5}.fsec-127-benefits h3{font-size:20px;color:#1b2d4a;margin:12px 0 6px}.fsec-127-benefits p{font-size:15px;color:#5d7188;margin:0}.fsec-127-finder{background:#122942;color:#fff;padding:55px 0}.fsec-127-finder-grid{display:grid;grid-template-columns:.9fr 1.5fr;gap:36px;align-items:center}.fsec-127-finder h2{color:#fff;font-size:clamp(28px,3vw,38px);line-height:1.2}.fsec-127-finder p{color:#d8e5f2}.fsec-127-finder .fsec-eyebrow{color:#9cc7f1}.fsec-127-wizard{background:#fff;border-radius:14px;color:#1b2d4a;padding:28px;min-height:285px}.fsec-127-wizard h3{margin:8px 0 20px;font-size:21px}.fsec-127-wizard .fsec-127-step-label{color:#487db5;font-size:13px;font-weight:800}.fsec-127-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fsec-127-options label{cursor:pointer;position:relative}.fsec-127-options input{position:absolute;opacity:0}.fsec-127-options span{display:flex;align-items:center;justify-content:center;min-height:66px;border:1px solid #d4e0ec;border-radius:8px;padding:10px;text-align:center;font-weight:700;font-size:14px}.fsec-127-options input:checked+span{background:#e9f3ff;border:2px solid #487db5;color:#164d85}.fsec-127-options input:focus-visible+span{outline:3px solid #487db5;outline-offset:2px}.fsec-127-field{display:block;font-weight:700;margin-bottom:15px}.fsec-127-field input,.fsec-127-field select,.fsec-127-field textarea{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid #bfcfe0;border-radius:7px;font:inherit;box-sizing:border-box}.fsec-127-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.fsec-127-actions button{cursor:pointer;border:0;border-radius:7px;padding:12px 20px;font-weight:800}.fsec-127-next{background:#487db5;color:white}.fsec-127-back{background:#edf2f7;color:#1b2d4a}.fsec-127-wizard .fsec-127-privacy{font-size:12px;color:#6d7c8f;margin-bottom:0}.fsec-127-wizard [hidden]{display:none!important}@media(max-width:900px){.fsec-127-benefits{grid-template-columns:repeat(2,1fr)}.fsec-127-finder-grid{grid-template-columns:1fr}}@media(max-width:620px){.fsec-127-inner{padding:0 22px}.fsec-127-trust{padding:50px 0}.fsec-127-benefits{grid-template-columns:1fr}.fsec-127-options{grid-template-columns:1fr}.fsec-127-wizard{padding:18px}}

/* Version 1.2.8 – FSEC im Einsatz */
.fsec-128-showcase{background:linear-gradient(130deg,#10253f,#1b3655);color:#fff;padding:66px 0 55px}.fsec-128-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:25px}.fsec-128-head h2{color:#fff;margin:6px 0 0;font-size:clamp(32px,4vw,47px)}.fsec-128-head .fsec-eyebrow{color:#a9c8eb;margin:0}.fsec-128-head>p{color:#d9e7f4;max-width:520px;margin:0}.fsec-128-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.fsec-128-tile{display:block;position:relative;height:295px;border:1px solid #8baac680;border-radius:13px;overflow:hidden;color:#fff;text-decoration:none;background:#2a4967}.fsec-128-tile:hover,.fsec-128-tile:focus-visible{outline:2px solid #a7d2ff;outline-offset:3px}.fsec-128-image{width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s ease}.fsec-128-tile:hover .fsec-128-image{transform:scale(1.045)}.fsec-128-noimage{display:flex;align-items:center;justify-content:center;height:100%;color:#b6cadf;font-size:22px;letter-spacing:.1em}.fsec-128-overlay{position:absolute;bottom:0;left:0;right:0;padding:55px 20px 22px;background:linear-gradient(transparent,#071b2df2);display:flex;flex-direction:column;gap:4px;min-height:140px}.fsec-128-overlay strong{font-size:21px;line-height:1.2;color:#fff}.fsec-128-overlay small{font-size:14px;color:#e1ecf7;padding-right:35px;line-height:1.35}.fsec-128-arrow{position:absolute;right:18px;bottom:24px;background:#487db5;border-radius:7px;width:33px;height:33px;text-align:center;line-height:31px;font-size:24px}.fsec-128-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid #ffffff35;margin-top:27px;padding-top:25px}.fsec-128-bottom strong{font-size:21px}.fsec-128-bottom p{color:#d9e7f4;font-size:15px;margin:4px 0 0}.fsec-128-cta{display:inline-block;background:#487db5;color:#fff!important;padding:13px 20px;border-radius:7px;text-decoration:none;font-weight:750;text-align:center}@media(max-width:900px){.fsec-128-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.fsec-128-head{display:block}.fsec-128-head>p{margin-top:12px}}@media(max-width:620px){.fsec-128-showcase{padding:48px 0}.fsec-128-cards{grid-template-columns:1fr}.fsec-128-tile{height:275px}.fsec-128-bottom{flex-direction:column;align-items:stretch}.fsec-128-cta{width:100%}}@media(prefers-reduced-motion:reduce){.fsec-128-image{transition:none}}

/* Version 1.2.9: hellblauer Akzent nur für die neue Startseitenüberschrift */
.fsec-hero .fsec-129-hero-title{line-height:1.08;max-width:100%;}
.fsec-hero .fsec-129-hero-title::after{content:"";display:block;width:min(190px,42%);height:5px;margin-top:18px;border-radius:50%;background:linear-gradient(90deg,transparent,#6eb6ef,#398acb,transparent);transform:skewY(-2deg);}
@media(max-width:680px){.fsec-hero .fsec-129-hero-title{font-size:clamp(2rem,8vw,3.5rem)}.fsec-hero .fsec-129-hero-title::after{margin-top:12px}}

/* 1.2.10: konsistente SVG-Symbole der Qualitätskacheln */
.fsec-127-benefits .fsec-1210-icon{display:block;width:52px;height:52px;margin:0 auto;color:#2466ad;overflow:visible;flex-shrink:0}

/* Version 1.2.11 – compact desktop hero and taller header with larger original logo */
@media(min-width:901px){
  .header-inner{padding-top:21px;padding-bottom:21px;min-height:130px;}
  .site-logo{width:295px;max-height:104px;}
  .fsec-hero{padding-top:72px;padding-bottom:67px;}
}
@media(min-width:621px) and (max-width:900px){
  .header-inner{padding-top:18px;padding-bottom:18px;}
  .site-logo{width:255px;max-height:92px;}
  .fsec-hero{padding-top:66px;padding-bottom:62px;}
}
@media(max-width:620px){
  .header-inner{padding-top:12px;padding-bottom:12px;}
  .site-logo{width:205px;max-height:78px;}
  .fsec-hero{padding-top:55px;padding-bottom:55px;}
}

/* 1.2.16 Werkschutz-Landingpage */
body.page .site-main>.fsec-section{max-width:none;margin:0}body.page-slug-werkschutz-objektschutz .site-main>.fsec-section h1{font-size:clamp(2.2rem,4vw,3.8rem)}body.page-slug-werkschutz-objektschutz .site-main>.fsec-section h2{font-size:clamp(1.65rem,2.6vw,2.4rem);margin-top:42px}body.page-slug-werkschutz-objektschutz .site-main>.fsec-section h3{margin:24px 0 8px}.fsec-lead{font-size:1.3rem;font-weight:600}.fsec-werkschutz-cta{margin-top:45px;padding:32px;border-radius:12px;background:#eef2f5}.fsec-detail-wrap{margin-top:18px}.fsec-detail-link{font-weight:750;text-decoration:underline;text-underline-offset:4px}

/* 1.2.17: Gutenberg constrained-layout correction for homepage hero.
   WP block global styles can give the hero paragraph an unintended narrow content width. */
body.home .fsec-hero,body.front-page .fsec-hero{width:100%;max-width:none;min-width:0}
body.home .fsec-hero>p:not(.fsec-eyebrow),body.front-page .fsec-hero>p:not(.fsec-eyebrow),
.fsec-hero>p:not(.fsec-eyebrow){display:block!important;box-sizing:border-box!important;width:100%!important;max-width:780px!important;min-width:0!important;margin-left:0!important;margin-right:auto!important;overflow-wrap:normal;word-break:normal}
.fsec-hero>h1,.fsec-hero>.fsec-129-hero-title{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;overflow-wrap:normal;word-break:normal;font-size:clamp(2.5rem,5vw,4.7rem)!important;line-height:1.09!important}
.fsec-hero>.fsec-eyebrow{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
.fsec-hero>.fsec-highlights,.fsec-hero>.fsec-hero-actions{max-width:100%!important;width:100%!important;margin-left:0!important;margin-right:0!important}
@media(max-width:680px){.fsec-hero>h1,.fsec-hero>.fsec-129-hero-title{font-size:clamp(2rem,8vw,3.5rem)!important}.fsec-hero>p:not(.fsec-eyebrow){font-size:1.08rem!important}}

/* 1.2.18: Sections must remain full-width. The 1.2.16 global max-width caused collapsed inner content because section padding was calculated from viewport width. */
body.page .site-main > .fsec-section{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}

/* 1.2.19: service links, scoped to avoid layout regression */
.fsec-119-service-links{margin-top:34px;padding:26px;border:1px solid #dbe2e8;border-radius:12px;background:#f7f9fb}.fsec-119-service-links h3{margin:0 0 16px}.fsec-119-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px}.fsec-119-link-grid a{display:block;font-weight:700;text-decoration:none;padding:7px 0}@media(max-width:620px){.fsec-119-link-grid{grid-template-columns:1fr}}

/* Discreet detail link inside existing service panel */
.fsec-service-more{margin:16px 0 14px}.fsec-service-more a{font-weight:650;text-decoration:underline;text-underline-offset:4px}.fsec-service-more a:hover{text-decoration-thickness:2px}

/* Service details: subtle link directly above inquiry button */
.fsec-panel .fsec-service-more{margin:16px 0 14px}.fsec-panel .fsec-service-more a{font-weight:700;text-decoration:underline;text-underline-offset:4px;color:inherit}.fsec-panel .fsec-service-more a:hover{opacity:.7}


/* 1.2.22: Return link at the bottom of every service detail page. */
.fsec-service-back{margin:38px 0 14px;padding-top:24px;border-top:1px solid rgba(100,110,125,.18)}
.fsec-service-back-button{display:inline-flex;align-items:center;gap:10px;padding:12px 20px;border-radius:7px;border:1px solid currentColor;color:inherit;text-decoration:none;font-weight:700;line-height:1.4;transition:background-color .2s,color .2s}
.fsec-service-back-button:hover,.fsec-service-back-button:focus-visible{background:#343b48;color:#fff;border-color:#343b48}
.fsec-service-back-button:focus-visible{outline:3px solid #7da8e0;outline-offset:3px}


/* Version 1.2.23 – Mobile: lange deutsche Begriffe lesbar umbrechen.
   Nur kleine Viewports; Desktop-Layout und Bilddarstellung bleiben unverändert. */
@media (max-width: 620px) {
  .fsec-section > h1,
  .fsec-section > h2,
  .fsec-section > h3,
  .fsec-section .fsec-panel h2,
  .fsec-section .fsec-panel h3,
  .fsec-card-body h2,
  .fsec-card-body h3,
  .fsec-128-overlay strong,
  .fsec-127-wizard h3 {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
  .fsec-section > h2 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }
  .fsec-card-body h3,
  .fsec-128-overlay strong {
    font-size: clamp(1.05rem, 5vw, 1.3rem);
  }
  .fsec-contact-grid,
  .fsec-contact-info,
  .fsec-two-col > *,
  .fsec-panel,
  .fsec-card-body {
    min-width: 0;
  }
}

/* 1.2.24: schmale Smartphone-Kopfzeile und robuste Wortumbrueche */
@media (max-width: 620px) {
  .header-inner {
    padding: 10px 16px 12px;
    gap: 9px;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .header-inner > a:first-child { display: block; align-self: center; line-height: 0; }
  .site-logo { display: block; width: 150px; max-width: 75vw; max-height: 56px; height: auto; }
  .nav { justify-content: center; gap: 5px 12px; width: 100%; }
  .nav a { font-size: 12px; line-height: 1.35; white-space: nowrap; }
  .nav .nav-inquiry, .nav .login { padding: 7px 11px; border-radius: 6px; }
  .fsec-section h1, .fsec-section h2, .fsec-section h3,
  .fsec-contact-section h1, .fsec-contact-section h2,
  .fsec-section .wp-block-heading {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto;
  }
  .fsec-section h1, .fsec-section h2,
  .fsec-contact-section h2 {
    font-size: clamp(1.65rem, 7.2vw, 2.25rem) !important;
    line-height: 1.16;
  }
  .fsec-contact-grid > *, .fsec-two-col > * { min-width: 0; }
}
@media (max-width: 360px) {
  .nav { gap: 5px 9px; }
  .nav a { font-size: 11px; }
  .site-logo { width: 135px; }
}

/* 1.2.26: Unternehmensseite – vorhandenes Layout und Mobilregeln bleiben erhalten */
.fsec-company-page{max-width:1080px;margin:0 auto}.fsec-company-page h2{margin:42px 0 16px}.fsec-company-intro{background:linear-gradient(115deg,#10253f,#294a70);color:#fff;padding:38px 42px;border-radius:12px;margin:0 0 38px}.fsec-company-intro .fsec-eyebrow{color:#b7d6f5}.fsec-company-intro p{max-width:820px}.fsec-company-lead{font-size:clamp(1.7rem,3.4vw,2.65rem);line-height:1.2;font-weight:800;letter-spacing:-.02em}.fsec-company-facts{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.fsec-company-facts span{border:1px solid #ffffff66;border-radius:6px;padding:7px 12px;font-size:14px;font-weight:650}.fsec-company-feature{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr);gap:32px;align-items:start;margin-top:26px}.fsec-company-feature h2{margin-top:0}.fsec-company-feature li{margin-bottom:8px}.fsec-company-feature-aside{background:#e9f0f6;padding:28px;border-radius:12px}.fsec-company-feature-aside h3{margin-top:0}.fsec-company-text-link{display:inline-block;font-weight:750;margin-top:10px}.fsec-company-cta{background:#edf3f8;border-radius:12px;padding:28px 32px;margin-top:42px}.fsec-company-cta h2{margin-top:0}.fsec-company-cta p{max-width:700px}@media(max-width:700px){.fsec-company-feature{grid-template-columns:1fr;gap:18px}.fsec-company-intro{padding:26px 22px}.fsec-company-cta{padding:24px 20px}.fsec-company-page h2,.fsec-company-lead{overflow-wrap:anywhere;hyphens:auto}}

/* 1.2.27: Ruhigere Typografie auf der Unternehmensseite. */
body.page-slug-unternehmen .site-main > .fsec-section > h1 {font-size:clamp(2rem,3.2vw,2.75rem);line-height:1.2;margin:0 0 28px}
body.page-slug-unternehmen .fsec-company-page h2 {font-size:clamp(1.45rem,2.2vw,1.95rem);line-height:1.25;margin:32px 0 12px}
body.page-slug-unternehmen .fsec-company-lead {font-size:clamp(1.55rem,2.6vw,2.1rem);font-weight:750;line-height:1.25}
body.page-slug-unternehmen .fsec-company-intro {padding:30px 36px;margin-bottom:30px}
body.page-slug-unternehmen .fsec-company-feature h2 {margin-top:0}
body.page-slug-unternehmen .fsec-company-cta h2 {margin-top:0}
.fsec-company-home-more {margin:22px 0 0}
.fsec-company-home-more a {font-weight:750;text-decoration:underline;text-underline-offset:4px}
@media(max-width:620px){body.page-slug-unternehmen .site-main > .fsec-section > h1{font-size:1.9rem!important}body.page-slug-unternehmen .fsec-company-page h2{font-size:1.55rem!important}body.page-slug-unternehmen .fsec-company-intro{padding:24px 20px}body.page-slug-unternehmen .fsec-company-lead{font-size:1.6rem}}

/* 1.2.29 – Ausbildungsseite im ruhigen Unternehmensdesign */
.fsec-training-page .fsec-training-lead{font-size:clamp(1.65rem,2.7vw,2.2rem);line-height:1.23;letter-spacing:-.02em;margin:10px 0 20px;color:#fff}
.fsec-training-page h2{font-size:clamp(1.45rem,2.2vw,1.95rem);line-height:1.25;margin:34px 0 12px}
.fsec-training-page .fsec-company-intro{padding:30px 36px;margin-bottom:30px}
.fsec-training-page .fsec-company-cta h2{margin-top:0}
.fsec-training-page .fsec-company-cta a:not(.fsec-btn){color:#356ca7}
.fsec-training-back{margin:20px 0 0}
.fsec-training-home-more{margin:20px 0 0}
.fsec-training-home-more a{font-weight:750;text-decoration:underline;text-underline-offset:4px}
@media(max-width:620px){.fsec-training-page .fsec-company-intro{padding:24px 20px}.fsec-training-page .fsec-training-lead{font-size:1.65rem}.fsec-training-page h2{font-size:1.55rem!important}}

/* 1.2.30: Ausbildungsseite ohne doppelte Seitenüberschrift. */
.fsec-training-section{padding-top:48px}
@media(max-width:700px){.fsec-training-section{padding-top:26px}}

/* 1.2.32: Schlichter Ausbildungshinweis unter dem Bewerbungsformular, ohne Seitenstreifen. */
.fsec-training-home-more{margin:36px 0 0;padding:26px 28px;background:#eaf0f6;border:0;border-radius:10px;color:#1b2d4a}
.fsec-training-home-more h3{font-size:clamp(1.2rem,2vw,1.5rem);line-height:1.35;margin:0 0 12px;font-weight:750}
.fsec-training-home-more p{margin:0 0 14px}
.fsec-training-home-more a{color:#285d99;font-weight:750;text-decoration:underline;text-underline-offset:3px}
@media(max-width:620px){.fsec-training-home-more{padding:22px 20px;margin-top:28px}}
