@charset "UTF-8";

/*
 * wichtel.land — site stylesheet.
 *
 * Modern responsive layout (2026) that keeps the site's DNA: Comic Sans,
 * the hand-drawn banner picture, and the green color scheme of the
 * original Sandvox theme ("Blueball Snapshot Green Wide", see
 * Credits.rtf/License.rtf).
 *
 * Layout: fluid up to 1000px. The menu collapses into a hamburger below
 * 880px; the dropdown opens on hover, focus, or the caret button (tap).
 * Prose keeps its historical structure of a class-free <span> per
 * paragraph — spans simply inherit.
 */

/* Comic Neue (OFL licensed, self-hosted) covers platforms without Comic
   Sans MS. iOS never shipped Comic Sans; it gets its native Chalkboard SE
   first — without these fallbacks iOS lands on the generic cursive font
   (a script face), which looks completely wrong. */

@font-face {
    font-family: "Comic Neue";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/comic-neue-400.woff2) format("woff2");
}

@font-face {
    font-family: "Comic Neue";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/comic-neue-700.woff2) format("woff2");
}

:root {
    --green: #62a217;
    --green-dark: #4e830f;
    --ink: #333;
    --muted: #8a8f80;
    --tint: #f4f9ec;
    --border: #dfe8d0;
    --radius: 12px;
    --comic: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", sans-serif;
}

/* ---------- Base ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--comic);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
    word-wrap: break-word;
}

img {
    border: 0;
    max-width: 100%;
}

a {
    color: var(--green);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

.hidden {
    display: none;
}

/* ---------- Page frame ---------- */

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Banner ---------- */

.banner {
    margin-top: 14px;
}

.masthead {
    position: relative;
    aspect-ratio: 5 / 1;
    background: url(images/banner.jpeg) center / cover no-repeat;
    border-radius: var(--radius);
    overflow: hidden;
}

.tagline {
    position: absolute;
    top: 51%;
    left: 3%;
    width: 66%;
    font-weight: bold;
    font-size: clamp(14px, 2.45vw, 25px);
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* Mobile-only variant shown below the banner image. */
.tagline-below {
    display: none;
}

/* ---------- Menu ---------- */

.menu {
    margin-top: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

.menu-toggle {
    display: none;
}

.menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
}

.menu a {
    display: block;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 15px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
}

.menu a:hover {
    background: var(--tint);
    color: var(--green);
}

.menu a[aria-current] {
    color: var(--green);
    font-weight: bold;
}

.menu .current-parent > a {
    color: var(--green);
}

/* Dropdown */

.has-submenu {
    position: relative;
    display: flex;
    align-items: center;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    cursor: pointer;
    width: 26px;
    height: 34px;
    color: #666;
}

.submenu-toggle::after {
    content: "";
    border: 5px solid transparent;
    border-top-color: currentColor;
    margin-top: 5px;
}

.submenu-toggle:hover {
    color: var(--green);
}

.has-submenu > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 230px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
    flex-direction: column;
}

.has-submenu:hover > ul,
.has-submenu:focus-within > ul,
.has-submenu.open > ul {
    display: flex;
}

/* ---------- Content area ---------- */

.content {
    display: flex;
    gap: 26px;
    margin: 24px 0 0;
}

main {
    flex: 1;
    min-width: 0;
    order: 1;
}

/* Sidebar renders right of the content (and below it on small screens)
   although it comes first in the DOM. */
.sidebar {
    width: 290px;
    flex-shrink: 0;
    order: 2;
}

.contact {
    background: var(--tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 15px;
}

.contact p {
    margin-bottom: 12px;
}

.contact p:last-child {
    margin-bottom: 0;
}

/* ---------- Article prose ---------- */

.prose p,
.gb-text p {
    margin-bottom: 1em;
}

.prose ul {
    padding-left: 24px;
    margin-bottom: 1em;
}

.prose li {
    margin-bottom: .35em;
}

/* Green intro heading ("Betreuungsangebot") on the angebot/konzept pages. */
.prose .heading {
    color: var(--green);
    font-weight: bold;
    font-size: 22px;
    margin-bottom: .7em;
}

/* Green section headings (Impressum). */
.prose h3 {
    color: var(--green);
    font-size: 20px;
    margin: 1.3em 0 .5em;
}

/* Page title (h2 above the article on some pages). */
.page-title {
    color: var(--green);
    font-size: 26px;
    line-height: 1.3;
    margin: 6px 0 16px;
}

/* Subpage list on mein-angebot/. */
.sub-pages {
    list-style: none;
    padding-left: 0;
}

.sub-pages li {
    margin-bottom: .5em;
}

/* Poem on the home page. */
.poem {
    text-align: center;
    padding: 40px 0;
}

.poem p {
    font-size: 19px;
    margin-bottom: .4em;
}

.poem p.author {
    font-size: 13px;
    color: var(--muted);
    margin-top: 1.2em;
}

/* Portrait photo floated next to the text on "Über mich". */
.callout {
    float: left;
    width: 218px;
    margin: 6px 22px 10px 0;
}

.callout img {
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    display: block;
}

/* ---------- Footer ---------- */

.footer {
    clear: both;
    margin-top: 40px;
    padding: 18px 0 26px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Photo pages ---------- */

/* Prev/list/next arrow buttons; the ids double as scroll anchors. */

.photo-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 4px 0 20px;
}

.photo-nav div {
    width: 40px;
    height: 40px;
    text-indent: -5000em;
    overflow: hidden;
}

.photo-nav a {
    display: block;
    width: 100%;
    height: 100%;
}

#previous-photo,
#previous-photo a:hover {
    background: url(images/photo-prev-gray.jpg) top no-repeat;
}

#previous-photo a {
    background: url(images/photo-prev-green.jpg) top no-repeat;
}

#photo-list,
#photo-list a:hover {
    background: url(images/photo-list-gray.jpg) top no-repeat;
}

#photo-list a {
    background: url(images/photo-list-green.jpg) top no-repeat;
}

#next-photo,
#next-photo a:hover {
    background: url(images/photo-next-gray.jpg) top no-repeat;
}

#next-photo a {
    background: url(images/photo-next-green.jpg) top no-repeat;
}

/* The photo itself. */

.photo-figure {
    text-align: center;
    margin-bottom: 1em;
}

.photo-figure img {
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
}

.photo-figure figcaption {
    margin-top: 12px;
    font-size: 15px;
    color: #555;
}

/* Thumbnail grid on the photo index. */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 1em;
}

.grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
}

.grid-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* ---------- Guestbook ---------- */

.gb-index .entry {
    margin-bottom: 1.5em;
}

.gb-index h3 {
    font-size: 20px;
    margin-bottom: .3em;
}

.gb-index h3 a {
    color: var(--green);
}

.timestamp {
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
    margin-top: .5em;
}

.crumb-nav {
    margin-bottom: 1.2em;
}

/* ---------- Contact form ---------- */

.contact-form {
    max-width: 560px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    font-size: 15px;
    margin: 14px 0 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #ccd6bc;
    border-radius: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--green);
    outline-offset: 1px;
    border-color: var(--green);
}

.contact-form textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form .submit {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 30px;
    font: inherit;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: var(--green);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.contact-form .submit:hover {
    background: var(--green-dark);
}

.form-results {
    margin-top: 14px;
    font-size: 15px;
    color: var(--green-dark);
}

/* Submission result page (/kontakt/danke, rendered by the mail handler) */

.result-lead {
    font-size: 17px;
    margin-bottom: 1.2em;
}

.msg-summary {
    margin-bottom: 14px;
}

.msg-summary > div {
    display: flex;
    gap: 10px;
    padding: 7px 2px;
    border-bottom: 1px solid var(--border);
}

.msg-summary dt {
    width: 90px;
    flex-shrink: 0;
    font-weight: bold;
    color: var(--green-dark);
}

.msg-summary dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

.msg-body {
    background: var(--tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin-bottom: 1.4em;
}

.contactError {
    color: #c0392b;
    font-weight: bold;
}

/* ---------- Small screens ---------- */

@media (max-width: 879px) {
    /* Small screens show the same banner image, scaled to fit the width
       (the base rule already does that). Only the tagline is retuned:
       short form, hard break, sized so line 1 clears the polaroid, and
       vertically centered in the green band (bottom 65% of the image). */
    .tagline {
        top: calc(67.5% - 2px);
        transform: translateY(-50%);
        left: 10px;
        width: auto;
        font-size: clamp(10px, 4.05vw, 16px);
        line-height: 1.25;
        white-space: nowrap;
    }

    /* short form on small screens: "Kindertagespflege Wichtelland" */
    .tagline .ort {
        display: none;
    }

    .tagline-below {
        display: none;
    }

    .menu {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .menu-toggle {
        display: inline-block;
        padding: 9px 18px;
        font: inherit;
        font-size: 15px;
        font-weight: bold;
        color: var(--ink);
        background: var(--tint);
        border: 1px solid var(--border);
        border-radius: 999px;
        cursor: pointer;
    }

    .menu ul {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 10px;
        padding: 8px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    }

    .menu.open > ul {
        display: flex;
    }

    .menu a {
        padding: 11px 14px;
        white-space: normal;
    }

    /* Submenu is always expanded inside the mobile menu. */
    .has-submenu {
        display: block;
    }

    .submenu-toggle {
        display: none;
    }

    .has-submenu > ul {
        display: flex;
        position: static;
        min-width: 0;
        padding: 0 0 0 18px;
        border: 0;
        box-shadow: none;
    }

    .content {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        width: auto;
    }

    .callout {
        float: none;
        margin: 0 auto 18px;
    }

    .poem {
        padding: 22px 0;
    }

    /* 16px inputs keep iOS Safari from zooming in on focus. */
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 16px;
    }
}
