/*
Theme Name: Wichtelgarten Sulingen
Description: Helles Block-Theme mit acht Inhaltsbereichen für den Wichtelgarten e.V. Sulingen.
Version: 2.7.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wichtelgarten
*/
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { overflow-wrap: anywhere; }
a { text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #17364a; outline-offset: 5px; }
.wg-header { border-bottom: 1px solid #d7e7ee; }
.wg-logo { display: block; width: min(440px, 100%); height: auto; }
.wg-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding-block: 1rem; font-size: 1rem; font-weight: 650; }
.wg-nav a { display: inline-block; padding-block: .45rem; color: #17364a; text-decoration: none; }
.wg-nav a:hover { text-decoration: underline; }
.wg-hero h1 { max-width: 850px; }
.wg-eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.wg-section { border-bottom: 1px solid #d7e7ee; }
.wg-photo { min-height: 230px; display: flex; flex-direction: column; justify-content: center; border: 2px dashed #617b8c; border-radius: 24px; padding: 32px; text-align: center; background: #e8f5fd; }
.wg-photo p { margin: .4rem 0; }
.wg-photo small { font-size: .9rem; }
.wg-note { border-left: 4px solid #b58b00; padding: .7rem 1rem; font-size: .9rem; background: #fff8df; }
.wg-footer { border-top: 1px solid #d7e7ee; }
.wg-button { display: inline-block; padding: .8rem 1.4rem; border-radius: 12px; color: #17364a; background: #ffd447; font-weight: 700; text-decoration: none; }
.wg-button:hover { text-decoration: underline; }
.wg-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.wg-secondary { background: white; border: 2px solid #17364a; }
.wg-skip { position: absolute; top: -120px; left: 1rem; z-index: 100000; padding: 1rem; background: white; color: #17364a; }
.wg-skip:focus { top: 1rem; }
.wg-editorial { font-size: .85rem; background: #17364a; color: white; padding: .6rem 1rem; text-align: center; }
@media (max-width: 781px) { .wg-section .wp-block-columns { gap: 1.5rem; } .wg-hero { padding-block: 2rem !important; } .wg-nav { gap: .3rem 1rem; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Keep the logo and navigation aligned within the same wide container. */
.wg-header > a { display: block; width: 100%; max-width: 1160px; margin-inline: auto; }
.wg-header > .wg-nav { width: 100%; max-width: 1160px; margin-inline: auto; }
.wg-header .wg-logo { width: min(360px, 100%); }
.wg-nav { gap: .4rem 1.4rem; }

.wg-camera-video { width:100%; aspect-ratio:16/9; background:#17364a; border-radius:16px; }
.wg-camera-video[hidden] { display:none; }
.wg-camera-start { border:0; cursor:pointer; font:inherit; font-weight:700; }

/* Family-friendly visual language inspired by the supplied stationery. */
body { background:#fffdf7; }
h1,h2,h3 { font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif; letter-spacing:-.025em; }
.wg-header { background:#ffdf00; border:0; padding-top:1.1rem !important; }
.wg-header > a { text-align:center; }
.wg-header .wg-logo { width:min(460px,90%); margin:auto; }
.wg-header > .wg-nav { justify-content:center; max-width:1240px; }
.wg-nav a { padding:.5rem .7rem; border-radius:16px; }
.wg-nav a:hover,.wg-nav a:focus-visible { background:#ffffff; }
.wg-editorial { font: .8rem/1.5 system-ui,sans-serif; }
.wg-welcome { position:relative; background:#dcf3fc; overflow:hidden; padding:4rem 1.5rem 5rem; isolation:isolate; }
.wg-welcome::after { content:""; position:absolute; z-index:-1; bottom:-65px; left:-5%; width:110%; height:110px; border-radius:50%; background:#fffdf7; }
.wg-welcome::before { content:""; position:absolute; z-index:-1; top:4rem; right:7%; width:260px; height:85px; border-radius:100px; background:rgba(255,255,255,.8); box-shadow:-40px 15px 0 3px rgba(255,255,255,.8); }
.wg-welcome-inner { max-width:1160px; margin:auto; display:grid; grid-template-columns:1.2fr 1fr; gap:3rem; align-items:center; }
.wg-welcome h1 { font-size:clamp(2.7rem,5vw,4.6rem); line-height:1.08; margin:.8rem 0 1.6rem; }
.wg-intro { max-width:580px; font-size:1.2rem; }
.wg-character { position:relative; display:flex; flex-direction:column; align-items:center; }
.wg-character img { position:relative; width:min(380px,85%); height:auto; filter:drop-shadow(0 12px 0 rgba(23,54,74,.07)); }
.wg-sun { position:absolute; top:8%; left:15%; width:290px; height:290px; background:#ffdf00; border-radius:50%; }
.wg-character-tag { position:relative; background:white; border-radius:22px; padding:.6rem 1.2rem; margin-top:1rem; font-weight:700; box-shadow:0 5px 0 #bcdfe9; }
.wg-button { border-radius:30px; padding:.9rem 1.4rem; box-shadow:0 4px 0 rgba(23,54,74,.13); }
.wg-paths { max-width:1160px; margin:1.5rem auto 3rem; padding:0 1.5rem; display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.wg-paths a { display:flex; flex-direction:column; gap:.7rem; color:#17364a; background:#fff0ab; padding:1.8rem; border-radius:28px 28px 28px 8px; text-decoration:none; box-shadow:0 5px 0 rgba(23,54,74,.08); }
.wg-paths a:nth-child(2) { background:#dcf3fc; }
.wg-paths a:nth-child(3) { background:#e8f0d9; }
.wg-paths a:hover strong { text-decoration:underline; }
.wg-paths strong { font-size:1.35rem; line-height:1.2; }
.wg-paths a>span:last-child { font-size:.95rem; }
.wg-path-number { border-radius:50%; background:white; width:42px; height:42px; display:grid; place-items:center; font-size:.85rem; font-weight:700; }
.wg-section { border:0; }
.wg-section h2 { font-size:clamp(1.8rem,3vw,2.5rem); }
.wg-photo { border:2px dashed #7893a0; border-radius:36px 36px 36px 10px; background:#eff8fc; min-height:280px; }
.wg-note { border-radius:0 15px 15px 0; }
.wg-footer { background:#fff0ab; border:0; }
@media(max-width:781px) { .wg-welcome { padding:2.5rem 1.5rem 3rem; } .wg-welcome-inner { grid-template-columns:1fr; gap:2rem; } .wg-character img { width:240px; } .wg-sun { width:200px; height:200px; left:calc(50% - 100px); } .wg-paths { grid-template-columns:1fr; gap:1rem; } .wg-paths a { padding:1.4rem; } .wg-character-tag { font-size:.9rem; } }
@media(prefers-reduced-motion:no-preference) { .wg-paths a { transition:transform .15s ease; } .wg-paths a:hover { transform:translateY(-3px); } }

.wg-accessibility { margin-top:1rem; padding:1.2rem 1.5rem; background:#fffdf7; border-radius:18px; font-size:1rem; }
.wg-accessibility summary { cursor:pointer; font-weight:700; }
.wg-accessibility p { max-width:760px; }
.wg-accessibility:target { outline:3px solid #17364a; outline-offset:5px; }

.wg-welcome h2 { font-size:clamp(2.7rem,5vw,4.6rem); line-height:1.08; margin:.8rem 0 1.6rem; }
.wg-character .wp-block-image { margin:0; }

.wg-album { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:1.5rem; align-items:start; margin-bottom:3rem; }
.wg-album img { width:100%; height:auto; border-radius:20px; }
.wg-album figure { margin:0; max-width:600px; }

.wg-footer-links { display:flex; flex-wrap:wrap; gap:.75rem 1.5rem; }
.wg-footer-links a { padding:.35rem 0; }
.wg-contact-card { padding:1.5rem; border-radius:22px; background:#e8f5fd; margin-block:1.5rem; }
.wg-contact-card h2 { margin-top:0; font-size:1.5rem; }
.wg-map iframe { display:block; width:100%; border:1px solid #617b8c; border-radius:18px; }
.wg-map p { font-size:.9rem; }

/* Clear two-row navigation on desktop; flexible on smaller screens. */
.wg-header > .wg-nav { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.75rem; max-width:1160px; padding:1.2rem 0 1.5rem; }
.wg-nav a { display:flex; align-items:center; justify-content:center; min-height:48px; padding:.65rem .5rem; background:#fffdf5; border:2px solid #8cbcd5; border-radius:14px; box-shadow:0 3px 0 rgba(23,54,74,.13); text-align:center; font-weight:700; overflow-wrap:anywhere; }
.wg-nav a:hover,.wg-nav a:focus-visible { background:#e8f5fd; border-color:#17364a; text-decoration:underline; }
.wg-nav a:last-child { background:#17364a; color:#fff; border-color:#17364a; }
.wg-nav a:last-child:hover,.wg-nav a:last-child:focus-visible { background:#254f65; }
.wg-board { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.5rem; margin-block:2rem; }
.wg-board-card { padding:1.25rem; border:2px solid #c5e3f4; border-radius:20px; background:#fffdf5; text-align:center; }
.wg-board-card figure { margin:0 0 1rem; }
.wg-board-card img { width:100%; height:auto; border-radius:14px; }
.wg-board-card h2 { font-size:1.25rem; line-height:1.4; }
@media(max-width:1000px) { .wg-header > .wg-nav { grid-template-columns:repeat(3,minmax(0,1fr)); } .wg-board { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .wg-header > .wg-nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; } .wg-nav a { font-size:.95rem; } .wg-board { grid-template-columns:1fr; } }

.wg-paedagogik-photo { max-width:600px; margin:2rem auto; }
.wg-paedagogik-photo img { width:100%; height:auto; border-radius:20px; }

.wg-imagevideo { margin-block:3rem; padding:1.5rem; background:#e8f5fd; border-radius:24px; }
.wg-imagevideo video { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; background:#fffdf5; border-radius:16px; }

.wg-home-tiles.wp-block-buttons { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.25rem; margin-block:2rem 3rem; }
.wg-home-tiles .wp-block-button { width:100%; }
.wg-home-tiles .wp-block-button__link { display:flex; align-items:center; justify-content:center; width:100%; aspect-ratio:3/4; box-sizing:border-box; padding:1.25rem .75rem; border:2px solid #17364a; border-radius:24px; background:#ffdf00; color:#17364a; font-size:clamp(1rem,2vw,1.35rem); line-height:1.4; font-weight:750; box-shadow:0 7px 0 rgba(23,54,74,.18); hyphens:auto; overflow-wrap:anywhere; }
.wg-home-tiles a:hover,.wg-home-tiles a:focus-visible { background:#ffe94d; text-decoration:underline; border-color:#17364a; }
@media(max-width:781px) { .wg-home-tiles.wp-block-buttons { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Uniform board cards and portrait frames, preserving the full photos. */
.wg-board { grid-auto-rows:1fr; align-items:stretch; gap:1rem; }
.wg-board-card { display:flex; flex-direction:column; box-sizing:border-box; height:100%; padding:1rem .875rem; }
.wg-board-card figure { aspect-ratio:3/4; width:100%; flex:none; }
.wg-board-card img { width:100%; height:100%; object-fit:contain; background:#eef5f8; }
.wg-board-card h2 { min-height:3.5rem; margin:0 0 .5rem; display:flex; align-items:center; justify-content:center; }
.wg-board-card p { font-size:.8rem; line-height:1.5; white-space:nowrap; margin:.25rem 0 0; }

/* WordPress flow margins must not offset grid items. */
.wg-board.wp-block-group { width:min(1160px,calc(100vw - 3rem)); max-width:none !important; position:relative; left:50%; transform:translateX(-50%); margin-left:0 !important; margin-right:0 !important; grid-auto-rows:1fr; align-items:stretch; }
.wg-board.wp-block-group > .wg-board-card { margin:0 !important; min-width:0; height:auto; display:grid; grid-template-rows:auto 3.5rem 1.5rem; align-content:start; gap:.75rem; }
.wg-board-card.wp-block-group > * { margin-block:0 !important; }
.wg-board-card figure { display:block; aspect-ratio:3/4; }
.wg-board-card img { display:block; }
.wg-board-card h2 { min-height:0; height:3.5rem; }
.wg-board-card p { font-size:.8rem; line-height:1.5; white-space:nowrap; align-self:center; }
@media(max-width:600px) { .wg-board.wp-block-group { width:min(360px,calc(100vw - 3rem)); } }

.wg-link-window-hint { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Suppress the draft notice in older saved header templates as well. */
.wg-editorial { display:none !important; }

.wg-soup-dates .wp-block-button__link { background:#b91c1c; color:#fff; border:2px solid #991b1b; padding:1rem 1.75rem; font-size:1.15rem; font-weight:700; border-radius:16px; box-shadow:0 4px 0 rgba(127,29,29,.2); }
.wg-soup-dates .wp-block-button__link:hover,.wg-soup-dates .wp-block-button__link:focus-visible { background:#991b1b; color:#fff; text-decoration:underline; }

.wg-imagevideo video { object-fit:contain !important; object-position:center !important; background:#e8f5fd; }

.wg-current-event { margin-block:3rem; }
.wg-current-event .wp-block-image { max-width:680px; margin-inline:auto; }
.wg-current-event img { width:100%; height:auto; border-radius:16px; }
