/* ==========================================================================
   STYLE.CSS - Twenty Eleven Recreation (Static & Optimized)
   ========================================================================== */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #e2e2e2;
    color: #373737;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.625;
    padding: 0 2em;
}

/* Page Container */
#page {
    background: #eeeeff; /* Original soft blueish-gray background */
    margin: 2em auto;
    max-width: 1000px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

/* Header & Branding */
#branding {
    padding-bottom: 10px;
    position: relative;
    z-index: 1000;
}

/* Hide header text from view but keep it for screen readers (SEO Best Practice) */
#branding hgroup {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
}

#branding img {
    height: auto;
    display: block;
    width: 100%;
    border-bottom: 2px solid #ddd;
}

/* Navigation Menu (#access) */
#access {
    background: darkblue; /* Customized dark blue background */
    clear: both;
    display: block;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#access .assistive-text {
    display: none; /* Mobile screenreader text */
}

#access ul {
    font-size: 13px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

#access li {
    position: relative;
}

#access a {
    color: #eee;
    display: block;
    line-height: 3.333em;
    padding: 0 1.5em;
    text-decoration: none;
    font-weight: 300;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Hover-Effekt: Weiß-zu-Grau Verlauf */
#access li:hover > a,
#access a:focus {
    background: #f9f9f9;
    background: linear-gradient(to bottom, #f9f9f9 0%, #e5e5e5 100%);
    color: #373737;
}

/* Aktives Menüelement */
#access li.active > a {
    font-weight: bold;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

#access li.active:hover > a {
    color: #373737;
}

/* Hauptbereich Layout (Zweispaltig) */
#main {
    display: flex;
    justify-content: space-between;
    padding: 2em 4% 3em;
    gap: 4%;
}

/* Linke Spalte (Content) */
#primary {
    width: 68%;
}

/* Rechte Spalte (Sidebar) */
#secondary {
    width: 28%;
}

/* Content & Typographie */
.entry-header {
    margin-bottom: 1.5em;
}

.entry-title {
    color: #222;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.2;
}

p {
    margin-bottom: 1.625em;
    text-align: justify;
}

/* Listen */
.cleaned-list {
    list-style: square;
    margin: 0 0 1.625em 1.5em;
    padding-left: 10px;
}

.cleaned-list li {
    margin-bottom: 0.8em;
    line-height: 1.6;
}

/* Bilder im Inhaltsbereich (WordPress Standard-Ausrichtungen) */
.alignleft {
    display: inline;
    float: left;
    margin: 0.4em 1.5em 1em 0;
}

.alignright {
    display: inline;
    float: right;
    margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    text-align: center;
}

.alignnone {
    display: block;
    margin: 0.5em 0 1em 0;
    clear: both;
    text-align: left;
}

/* Gemeinsames Styling für Inhaltsbilder mit Ausrichtungsklassen */
.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content img.alignleft,
.entry-content img.alignright,
.entry-content img.aligncenter,
.entry-content img.alignnone {
    padding: 6px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.intro-profile {
    overflow: hidden; /* Clearfix for float */
}

/* Profil-Container für Bilder links neben dem gesamten Text */
.profile-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 1.5em;
}

.profile-image-col {
    flex-shrink: 0;
}

.profile-text-col {
    flex-grow: 1;
}

@media (max-width: 650px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
    }
}

.signature-container {
    margin-top: 1.5em;
    text-align: left;
}

.signature-image {
    max-width: 65px;
    height: auto;
}

.profile-header {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-size: 16px;
}

.center-img-container {
    text-align: center;
    margin: 2em 0;
}

/* Section Divider */
.section-divider {
    border: 0;
    height: 1px;
    background: #ccc;
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(204,204,204,0.8) 20%, rgba(204,204,204,0.8) 80%, rgba(0,0,0,0) 100%);
    margin: 3em 0;
}

.page-section {
    scroll-margin-top: 20px; /* Offset for smooth scroll */
}

/* Tagesablauf Tabelle */
.tagesablauf-subtitle {
    font-size: 16px;
    margin-bottom: 1.5em;
    text-align: center;
}

.table-container {
    margin: 2em 0;
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.styled-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
}

.styled-table tr:last-child td {
    border-bottom: none;
}

.styled-table tr:nth-of-type(even) {
    background-color: #fafaff;
}

.col-time {
    width: 35%;
    font-weight: bold;
    color: darkblue;
    text-align: center;
    border-right: 1px solid #eee;
}

.col-activity {
    width: 65%;
    text-align: left;
}

/* Sidebar & Widgets */
.widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5em;
    margin-bottom: 2em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.widget-title {
    color: #444;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.2em;
    border-bottom: 2px solid darkblue;
    padding-bottom: 6px;
}

.textwidget {
    font-size: 14px;
    line-height: 1.5;
}

.widget-thumbnail {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.sidebar-download-link {
    margin-top: 1em;
    text-align: center;
}

/* Custom Sidebar Elements (Elternportal & Instagram) */
.sidebar-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links-list li {
    margin-bottom: 1.2em;
    border-bottom: 1px dashed #eee;
    padding-bottom: 1em;
}

.sidebar-links-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-links-list a {
    display: block;
    text-decoration: none;
    color: #2b2b2b;
    transition: color 0.2s ease;
}

.sidebar-links-list a strong {
    display: block;
    font-size: 14px;
    color: darkblue;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.sidebar-links-list a:hover {
    color: #555;
}

.sidebar-links-list a:hover strong {
    color: #ef476f; /* Ein moderner, warmer Roséton */
}

.sidebar-links-list .link-desc {
    display: block;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* Instagram Widget Styling */
.instagram-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    background: #fdfaf6;
    border: 1px solid #f2ece4;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
}

.instagram-icon {
    flex-shrink: 0;
    color: #2b2b2b;
    transition: color 0.3s ease;
}

.instagram-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.instagram-badge:hover {
    background: #fff;
    border-color: #ef476f;
    box-shadow: 0 4px 12px rgba(239, 71, 111, 0.1);
    transform: translateY(-2px);
}

.instagram-badge:hover .instagram-icon {
    color: #ef476f;
}

/* Stilvolles Kontaktformular */
.styled-contact-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5em 1.8em; /* Reduced padding from 2.2em */
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.footer-contact-card {
    max-width: 500px;
    margin: 0 auto 2.5em auto;
}

.footer-contact-card h3 {
    font-size: 15px;
    margin-bottom: 1em;
}

.footer-contact-card .form-row {
    gap: 12px;
    margin-bottom: 0.8em;
}

.footer-contact-card .form-group {
    margin-bottom: 0.8em;
}

.footer-contact-card .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.footer-contact-card input[type="text"],
.footer-contact-card input[type="email"],
.footer-contact-card input[type="tel"] {
    padding: 6px 10px;
    font-size: 13px;
}

.footer-contact-card textarea {
    padding: 6px 10px;
    font-size: 13px;
}

.footer-contact-card .consent-checkbox label {
    font-size: 11px;
}

.footer-contact-card .form-submit button {
    padding: 8px 20px;
    font-size: 13px;
}

.styled-contact-card h3 {
    color: #222;
    font-size: 18px;
    margin-bottom: 1.5em;
    border-bottom: 2px solid darkblue;
    padding-bottom: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1.2em;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 1.2em;
}

.form-group label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 14px;
    color: #373737;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: darkblue;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 139, 0.15);
}

.consent-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1.5em;
}

.consent-checkbox input {
    margin-top: 4px;
    cursor: pointer;
}

.consent-checkbox label {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

.form-submit {
    text-align: right;
}

.form-submit button {
    background: darkblue;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.form-submit button:hover {
    background-color: #0000a5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.form-submit button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Footer / Colophon */
#colophon {
    background: #f5f5fc;
    border-top: 1px solid #ddd;
    padding: 2.5em 4% 1.5em;
}

/* Footer Drei Spalten Grid */
#supplementary {
    display: flex;
    justify-content: space-between;
    gap: 4%;
    margin-bottom: 2em;
}

#supplementary .widget-area {
    width: 30%;
}

#supplementary .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
}

#supplementary .widget-title {
    margin-bottom: 1em;
}

.footer-children-graphic {
    max-width: 100%;
    height: auto;
    opacity: 0.95;
}

.footer-download-link {
    margin-top: 0.8em;
}

.contact-details p {
    text-align: left;
    margin-bottom: 0.8em;
}

.contact-details a {
    color: darkblue;
    text-decoration: none;
    font-weight: normal;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Impressum & Datenschutz Sektionen (Ausklappbar) */
#impressum-section,
#datenschutz-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s ease;
    background: #fff;
    border-radius: 4px;
    margin: 0;
    border: 0 solid #ddd;
}

#impressum-section.impressum-expanded,
#datenschutz-section.datenschutz-expanded {
    max-height: 2200px; /* Large enough limit for auto expansion */
    padding: 2em;
    margin-bottom: 2em;
    border: 1px solid #ddd;
    overflow-y: auto;
}

.impressum-content h3,
.datenschutz-content h3 {
    font-size: 18px;
    color: #222;
    margin-bottom: 1.2em;
    border-bottom: 2px solid darkblue;
    padding-bottom: 6px;
}

.impressum-content p,
.datenschutz-content p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1.2em;
    color: #555;
    text-align: left;
}

.impressum-content strong,
.datenschutz-content strong {
    color: #333;
}

.legal-heading {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Site Generator Socket */
#site-generator {
    border-top: 1px solid #ddd;
    padding-top: 1.5em;
    text-align: center;
    font-size: 12px;
    color: #666;
}

#site-generator .sep {
    color: #ccc;
    margin: 0 8px;
}

#site-generator a {
    color: darkblue;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

#site-generator a:hover {
    color: #0000a5;
    text-decoration: underline;
}

/* Responsive Anpassungen (Media Queries) */
@media (max-width: 850px) {
    body {
        padding: 0 1em;
    }
    
    #page {
        margin: 1em auto;
    }

    #main {
        flex-direction: column;
        padding: 1.5em 5%;
    }

    #primary, #secondary {
        width: 100%;
    }

    #secondary {
        margin-top: 2.5em;
    }

    #supplementary {
        flex-direction: column;
        gap: 2em;
    }

    #supplementary .widget-area {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 1.5em;
    }

    #supplementary .widget-area:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 1.2em;
    }
}

@media (max-width: 600px) {
    #access ul {
        flex-direction: column;
        width: 100%;
    }

    #access li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    #access a {
        line-height: 2.8em;
        padding: 0 1.2em;
    }

    .entry-title {
        font-size: 22px;
    }

    .styled-table td {
        padding: 10px 12px;
    }

    .col-time {
        width: 40%;
        font-size: 13px;
    }
}

/* Panorama 360-Viewer Styles */
.panorama-wrapper {
    margin-top: 2.5em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.panorama-caption {
    margin-bottom: 1.2em;
    border-left: 3px solid darkblue;
    padding-left: 12px;
}

.panorama-caption h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: darkblue;
    font-weight: bold;
}

.panorama-caption p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

#panorama {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* Ensure responsiveness for small screens */
@media (max-width: 600px) {
    #panorama {
        height: 300px;
    }
    .panorama-wrapper {
        padding: 1em;
        margin-top: 1.5em;
    }
}

