/*
Theme Name: Fabrikkinder
Theme URI: https://www.fabrikkinder.de/
Description: Theme fuer den Hort Fabrikkinder e. V. (Child-Theme von Twenty Twenty-Five). Schriften lokal gehostet.
Author: Fabrikkinder e. V.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
License: GPL-2.0-or-later
Text Domain: fabrikkinder
*/
:root{--fk-red:#c8372d;--fk-red-dark:#a82b22;--fk-link:#b5302a;--fk-green:#4b7a1f;--fk-bg:#f4f8ec;--fk-bg2:#dcebc4;--fk-bg3:#eef5e3;--fk-rose:#fbeceb;--fk-ink:#24292e;--fk-muted:#4a5058;--fk-line:#e6eadf;--fk-pad:max(24px,calc((100% - 1120px)/2));--fk-head:var(--wp--preset--font-family--fredoka)}
body{-webkit-font-smoothing:antialiased}
p,li{hyphens:auto;-webkit-hyphens:auto}
img{max-width:100%;height:auto}
figure.wp-block-image{margin:0}
:where(.wp-site-blocks)>*{margin-block-start:0}
.fk-justify,.fk-page-body>p,.fk-col>p.fk-text{text-align:justify}

/* Kopfzeile */
.fk-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:14px var(--fk-pad);border-bottom:1px solid #e9ece4;background:#fff}
.fk-header>*{margin:0!important}
.fk-header .wp-block-site-logo img{height:60px;width:auto}
.fk-nav .wp-block-navigation__container{gap:6px}
.fk-nav .wp-block-navigation-item__content{display:block;padding:10px 14px;border-radius:999px;font-weight:700;color:var(--fk-ink);text-decoration:none}
.fk-nav .wp-block-navigation-item__content:hover,.fk-nav .wp-block-navigation-item__content[aria-current=page]{background:var(--fk-bg3);color:var(--fk-ink)}
.fk-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:1.3rem}

/* Abschnitte */
.fk-main .wp-block-post-content>*{margin-block:0}
.fk-section{padding:80px var(--fk-pad);margin-block:0}
.fk-section>*{margin-block:0}
.fk-section>*+*{margin-top:24px}
.fk-section.is-tight-top{padding-top:40px}
.fk-section.is-tight-bottom{padding-bottom:40px}
.fk-split{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.fk-split.is-top{align-items:flex-start}
.fk-split>*{margin:0!important}
.fk-col{flex:1 1 420px;min-width:0}
.fk-col>*{margin-block:0}
.fk-col>*+*{margin-top:18px}
.fk-col.is-narrow{flex:0 1 300px}
.fk-kicker{font-weight:800;color:var(--fk-green);letter-spacing:.04em;text-transform:uppercase;font-size:14px}
.fk-lead{font-size:19px;line-height:1.6;color:var(--fk-muted);max-width:560px}
.fk-text,.fk-muted{color:var(--fk-muted)}
.fk-hint{font-size:16px;color:var(--fk-muted)}
.fk-section .wp-block-buttons{gap:12px}

/* Hero */
.fk-hero{position:relative;overflow:hidden;background:var(--fk-bg);padding-top:72px}
.fk-hero::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:var(--fk-bg2);right:-120px;top:-140px}
.fk-hero::after{content:"";position:absolute;width:56px;height:56px;border-radius:50%;background:var(--fk-red);right:380px;top:60px}
.fk-hero.is-small{padding-top:56px;padding-bottom:64px}
.fk-hero.is-small::before{width:300px;height:300px;right:-80px;top:-120px}
.fk-hero.is-small::after{width:40px;height:40px;right:420px;top:40px}
.fk-hero>*{position:relative;z-index:1}
.fk-hero h1{font-size:clamp(2.3rem,5vw,3.25rem);line-height:1.08}
.fk-hero-media{flex:0 1 440px;position:relative}
.fk-img-main img{width:100%;height:340px;object-fit:cover;border-radius:28px;display:block}
.fk-hero-media .fk-img-round{position:absolute;left:-40px;bottom:-36px;margin:0!important}
.fk-img-round img{width:150px;height:150px;object-fit:cover;border-radius:50%;border:6px solid #fff;display:block}
.fk-photo{position:relative}
.fk-photo img{width:100%;height:420px;object-fit:cover;object-position:35% 50%;border-radius:28px;display:block}
.fk-photo figcaption{position:absolute;left:18px;bottom:18px;width:max-content;max-width:calc(100% - 36px);margin:0;padding:8px 14px;border-radius:999px;background:#fff;font-size:14px;font-weight:700;line-height:1.4;color:var(--fk-ink);text-align:left}
.fk-glance{background:#fff;border-radius:22px;padding:22px 26px;box-shadow:0 1px 0 #e1e8d6}
.fk-glance>*{margin:0}
.fk-glance h2{font-size:20px;margin-bottom:12px}
.fk-glance p{display:grid;grid-template-columns:110px minmax(0,1fr);column-gap:14px;font-size:15.5px;line-height:1.5;color:var(--fk-muted);margin-top:8px}
.fk-glance p strong{color:var(--fk-ink)}

/* Kennzahlen */
.fk-facts{flex:1 1 380px;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fk-facts>*{margin:0!important}
.fk-fact{background:var(--fk-bg);border-radius:20px;padding:22px}
.fk-fact.is-rose{background:var(--fk-rose)}
.fk-fact>*{margin:0}
.fk-fact .fk-num{font-family:var(--fk-head);font-size:30px;font-weight:600;line-height:1.2;color:var(--fk-green);margin-bottom:6px}
.fk-fact.is-rose .fk-num{color:var(--fk-link)}
.fk-fact p:last-child{font-size:15px;line-height:1.5;color:var(--fk-muted)}

/* Karten */
.fk-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.fk-cards>*{margin:0!important}
.fk-card{border:1px solid var(--fk-line);border-radius:22px;overflow:hidden;background:#fff}
.fk-card>*{margin:0}
.fk-card .wp-block-image img{width:100%;height:180px;object-fit:cover;display:block}
.fk-card h3{padding:20px 22px 0;font-size:21px;margin-bottom:8px}
.fk-card p{padding:0 22px 24px;font-size:15.5px;line-height:1.6;color:var(--fk-muted)}

/* Dunkler Abschnitt / Video */
.fk-dark{background:var(--fk-ink);color:#fff;padding-top:64px;padding-bottom:64px}
.fk-dark h2{color:#fff}
.fk-dark p{color:#d6dbe0}
.fk-dark p.fk-small{color:#aab2ba;font-size:13.5px;line-height:1.5}
.fk-yt{position:relative;width:100%;aspect-ratio:16/9;border-radius:24px;overflow:hidden;background:var(--fk-ink)}
.fk-yt>img{width:100%;height:100%;object-fit:cover;display:block;filter:brightness(.6)}
.fk-yt-load{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;padding:14px 22px;border:0;border-radius:999px;background:var(--fk-red);color:#fff;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.fk-yt-load:hover,.fk-yt-load:focus-visible{background:var(--fk-red-dark)}
.fk-yt-frame{position:absolute;inset:0}
.fk-yt-frame:empty{display:none}
.fk-yt-frame iframe{width:100%;height:100%;border:0;display:block}
.fk-yt.is-loaded>img,.fk-yt.is-loaded .fk-yt-load{display:none}
.fk-yt-note{font-size:14px;line-height:1.6;color:var(--fk-muted)}
.fk-dark .fk-yt-note{color:#aab2ba}

/* Ort */
.fk-collage img{max-width:280px;margin:0 auto;display:block}
.fk-chips{display:flex;flex-wrap:wrap;gap:12px}
.fk-chips>*{margin:0!important}
.fk-chip{padding:12px 18px;border-radius:16px;background:var(--fk-bg);font-weight:700}
.fk-chip.is-outline{background:transparent;border:2px solid #cfd8c2}
.fk-chip a{color:var(--fk-ink);text-decoration:none}

/* Themen-Kacheln (Unser Hort) */
.fk-topics.is-enhanced>.fk-topic{display:none}
.fk-topic{margin:0 0 40px}
.fk-topic>*{margin-block:0}
.fk-topic>*+*{margin-top:18px}
.fk-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.fk-tile{display:flex;flex-direction:column;padding:0;margin:0;border:1px solid var(--fk-line);border-radius:22px;overflow:hidden;background:#fff;cursor:pointer;font:inherit;color:inherit;text-align:left;transition:box-shadow .2s,transform .2s}
.fk-tile:hover{box-shadow:0 8px 22px rgba(0,0,0,.08);transform:translateY(-2px)}
.fk-tile[aria-expanded=true]{border:3px solid var(--fk-red);box-shadow:0 8px 22px rgba(0,0,0,.10);transform:none}
.fk-tile:focus-visible,.fk-pill:focus-visible,.fk-prev:focus-visible,.fk-next:focus-visible,.fk-panel-close:focus-visible,.fk-yt-load:focus-visible{outline:3px solid var(--fk-green);outline-offset:3px}
.fk-tile-media{position:relative;display:block;width:100%;height:170px;background:#2a2a2a}
.fk-tile-media img{width:100%;height:100%;object-fit:cover;display:block}
.fk-tile-media.is-contain img{object-fit:contain}
.fk-tile-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;background:var(--fk-red);display:flex;align-items:center;justify-content:center}
.fk-tile-body{display:flex;flex-direction:column;gap:6px;padding:18px 22px 20px}
.fk-tile-title{font-family:var(--fk-head);font-size:21px;font-weight:600;color:var(--fk-ink)}
.fk-tile-teaser{font-size:15px;line-height:1.55;color:var(--fk-muted)}
.fk-tile-cta{margin-top:6px;font-weight:700;color:var(--fk-link)}
.fk-panel{grid-column:1/-1;position:relative;background:var(--fk-bg);border:2px solid var(--fk-bg2);border-radius:24px;padding:34px 38px;scroll-margin-top:24px}
.fk-panel-close{position:absolute;right:16px;top:16px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.fk-panel-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 56px 26px 0;padding-bottom:18px;border-bottom:1px solid var(--fk-bg2)}
.fk-pill{min-height:40px;padding:8px 15px;border-radius:999px;border:1px solid #cfd8c2;background:#fff;color:var(--fk-muted);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.fk-pill[aria-pressed=true]{background:var(--fk-red);border-color:var(--fk-red);color:#fff;font-weight:700}
.fk-panel .fk-topic{margin:0}
.fk-panel .fk-topic-img,.fk-panel .fk-topic-teaser{display:none}
.fk-panel .fk-topic-img+*{margin-top:0}
.fk-panel .fk-topic h3{font-size:26px}
.fk-panel-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:28px;padding-top:18px;border-top:1px solid var(--fk-bg2)}
.fk-prev,.fk-next{min-height:44px;padding:10px 18px;border-radius:999px;font:inherit;font-weight:700;cursor:pointer}
.fk-prev{border:2px solid #cfd8c2;background:#fff;color:var(--fk-ink)}
.fk-next{border:0;background:var(--fk-red);color:#fff;margin-left:auto}
.fk-next:hover{background:var(--fk-red-dark)}

/* Boxen */
.fk-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.fk-boxes.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.fk-boxes.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.fk-boxes>*{margin:0!important}
.fk-box{background:#fff;border-radius:18px;padding:18px 20px}
.fk-page-body .fk-box{background:var(--fk-bg)}
.fk-box.is-wide{grid-column:1/-1}
.fk-box>*{margin:0}
.fk-box>*+*{margin-top:6px}
.fk-box p{font-size:15px;line-height:1.6;color:var(--fk-muted);text-align:left}
.fk-box p.fk-box-title{font-weight:700;color:var(--fk-ink);font-size:16px}
.fk-box p.fk-time{font-family:var(--fk-head);font-weight:600;color:var(--fk-green);font-size:16px}
.fk-box p.fk-time.is-red{color:var(--fk-link)}
.fk-label{font-weight:700}
.fk-table{margin:0;overflow-x:auto;background:#fff;border-radius:18px}
.fk-table table{width:100%;border-collapse:collapse;font-size:15px}
.fk-table th,.fk-table td{padding:12px 16px;text-align:left;border:0}
.fk-table thead{background:var(--fk-bg3);border:0}
.fk-table tbody tr:nth-child(even){background:#fafcf6}
.fk-topic .wp-block-quote{border-left:4px solid var(--fk-red);padding:4px 0 4px 18px;margin-inline:0}
.fk-topic .wp-block-quote p{font-size:18px;font-style:italic;color:var(--fk-ink)}
.fk-topic .wp-block-quote cite{font-size:14px;color:var(--fk-muted);font-style:normal}

/* Unterseiten */
.fk-page-head{position:relative;overflow:hidden;background:var(--fk-bg);padding:56px var(--fk-pad) 48px}
.fk-page-head::before{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:var(--fk-bg2);right:-80px;top:-130px}
.fk-page-head h1{position:relative;margin:0;font-size:clamp(2rem,4vw,2.9rem)}
.fk-page-body{padding-top:48px;padding-bottom:80px}
.fk-page-body h2{font-size:1.45rem;margin-top:2.2rem}
.fk-page-body h3{font-size:1.15rem;margin-top:1.6rem}
.fk-note{background:var(--fk-rose);border-radius:20px;padding:22px 24px}
.fk-note>*{margin:0}
.fk-note>*+*{margin-top:8px}
.fk-note p{text-align:left}
.fk-note .fk-note-title{font-family:var(--fk-head);font-size:21px;font-weight:600;color:var(--fk-link)}
.fk-team{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px}
.fk-team>*{margin:0!important}
.fk-person{background:var(--fk-bg);border-radius:22px;padding:26px 22px;text-align:center}
.fk-person>*{margin:0}
.fk-person img{width:150px;height:150px;border-radius:50%;object-fit:cover;margin:0 auto;display:block;border:5px solid #fff}
.fk-person p.fk-avatar{width:150px;height:150px;margin:0 auto;border-radius:50%;background:var(--fk-bg2);border:5px solid #fff;display:flex;align-items:center;justify-content:center;font-family:var(--fk-head);font-size:52px;font-weight:600;color:var(--fk-green);text-align:center}
.fk-person h3{margin-top:14px;font-size:21px}
.fk-person p{text-align:center;color:var(--fk-muted)}

/* Fusszeile */
.fk-footer{background:var(--fk-bg);border-top:1px solid #e1e8d6;padding:48px var(--fk-pad) 28px}
.fk-footer>*{margin:0}
.fk-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.fk-footer-grid>*{margin:0!important}
.fk-footer-grid>*>*{margin:0}
.fk-footer-grid>*>*+*{margin-top:10px}
.fk-footer .wp-block-image img{height:52px;width:auto}
.fk-footer h3{font-size:18px}
.fk-footer p{font-size:15px;line-height:1.7;color:var(--fk-muted)}
.fk-footer p.fk-copy{margin-top:28px;font-size:13px;color:#6b7178}

@media (max-width:900px){
.fk-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.fk-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.fk-boxes.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
.fk-section{padding-top:48px;padding-bottom:48px}
.fk-hero{padding-top:40px}
.fk-hero::after{display:none}
.fk-tiles,.fk-cards,.fk-boxes,.fk-boxes.cols-2,.fk-boxes.cols-4,.fk-footer-grid{grid-template-columns:minmax(0,1fr)}
.fk-box.is-wide{grid-column:auto}
.fk-panel{padding:24px 18px}
.fk-panel-nav{margin-right:48px}
.fk-hero-media .fk-img-round{left:-8px}
.fk-img-round img{width:110px;height:110px}
.fk-img-main img{height:260px}
.fk-photo img{height:300px}
.fk-header .wp-block-site-logo img{height:48px}
.fk-glance p{grid-template-columns:90px minmax(0,1fr)}
.fk-table{font-size:14px}
}

/* Feinschliff */
.fk-panel .fk-yt{max-width:760px}
@media (max-width:1100px){.fk-hero::after{display:none}.fk-hero-media .fk-img-round{left:-12px}}

/* Förderlogos */
.fk-footer .fk-funding{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 48px;margin-top:36px;padding:22px 28px;background:#fff;border-radius:20px}
.fk-funding>*{margin:0!important}
.fk-funding-item{display:flex;flex-direction:column;gap:8px}
.fk-funding-item>*{margin:0}
.fk-footer p.fk-funding-label{font-size:13px;line-height:1.2;color:var(--fk-ink)}
.fk-footer .fk-funding-rbs img{height:58px;width:auto}
.fk-footer .fk-funding-by img{height:88px;width:auto}
@media (max-width:640px){.fk-footer .fk-funding{flex-direction:column;align-items:flex-start}.fk-footer .fk-funding-by img{height:60px}}

/* Umschalter Design-Vorschau */
.fk-switch{position:relative;z-index:50;display:flex;justify-content:center;align-items:center;gap:4px;padding:6px 12px;background:#141414;font:600 13px/1 system-ui,sans-serif}
.fk-switch-label{padding:0 8px 0 0;color:#bdb8ad}
.fk-switch a{padding:7px 14px;border-radius:999px;color:#f2efe8;text-decoration:none}
.fk-switch a:hover{background:rgba(255,255,255,.12);color:#fff}
.fk-switch a[aria-current=page]{background:#ffc53d;color:#141414}

/* Weiches Scrollen zu Abschnitten */
html{scroll-behavior:smooth}
section[id],[id].fk-topic,.fk-tile,#kontakt,#anmeldung{scroll-margin-top:24px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.fk-panel{box-sizing:border-box}
body .fk-switch a:not([aria-current]){color:#f2efe8}
body .fk-switch a[aria-current]{color:#141414}
