/*
Theme Name: FLS Schlangenbad
Theme URI: https://freielisteschlangenbad.de
Description: Freie Liste Schlangenbad — Zeitungs-Portal Design mit Brush-Akzenten
Author: Freie Liste Schlangenbad
Version: 1.0
Template: twentytwelve
Text Domain: fls-theme
*/

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Merriweather:wght@400;700&family=Inter:wght@400;600;800&display=swap');

/* === Reset Twenty Twelve defaults === */
body.custom-background {
    background-image: none !important;
    background-color: #f5f0eb !important;
}

/* === Base === */
body {
    font-family: 'Merriweather', Georgia, serif !important;
    color: #1a1a1a;
    background: #f5f0eb !important;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* === Sunrise Bar === */
.fls-orange-bar {
    height: 6px;
    background: #f36c21;
    margin: 0;
    padding: 0;
}

/* === Kill all Twenty Twelve header/background defaults === */
body.custom-background {
    background-image: none !important;
    background-color: #f5f0eb !important;
    background-repeat: no-repeat !important;
}

.site {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    overflow: hidden;
}

/* === Header === */
.fls-header {
    background: white;
}

.fls-header-top {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px 12px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
}

.fls-header-top > a {
    flex-shrink: 0;
}

.fls-logo {
    height: 100px;
    width: auto;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.fls-site-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #0e2841 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.fls-site-title a {
    color: #0e2841 !important;
    text-decoration: none !important;
}

.fls-sub {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: #f36c21;
    font-weight: 700;
    transform: rotate(-1deg);
    display: inline-block;
}

/* === Navigation === */
.fls-nav-bar {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 12px;
    border-bottom: 2px solid #eee;
}

.fls-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.fls-nav-menu li {
    margin: 0;
}

.fls-nav-menu li a {
    font-family: 'Inter', sans-serif;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    display: block;
}

.fls-nav-menu li a:hover,
.fls-nav-menu li.current-menu-item a,
.fls-nav-menu li.current_page_item a {
    background: #f5f0eb;
    color: #0e2841;
}

/* Portal menu item highlight - orange border */
.fls-nav-menu li.portal a,
.fls-nav-menu li.menu-item-304 a {
    border: 2px solid #f36c21;
    color: #f36c21 !important;
    border-radius: 4px;
    font-weight: 700 !important;
}

.fls-nav-menu li.portal a:hover,
.fls-nav-menu li.menu-item-304 a:hover {
    background: #f36c21;
    color: white !important;
}

/* === Ticker === */
.fls-ticker {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #555;
    border-top: none;
    border-bottom: 2px solid #eee;
    background: #fff8f0;
}

.fls-ticker strong {
    color: #f36c21;
}

/* === Hide Twenty Twelve's default header completely === */
#masthead,
.site-header,
header.site-header,
header#masthead {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Kill TT background on body */
body, body.custom-background, body.wp-theme-twentytwelve {
    background: #f5f0eb !important;
    background-image: none !important;
}

/* === Content Area === */
.site {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#main.wrapper {
    max-width: 960px;
    margin: 8px auto 24px;
    padding: 0 24px;
}

/* Content + Sidebar Layout */
#main.wrapper {
    display: flex !important;
    gap: 24px !important;
    max-width: 1060px;
}

#primary {
    flex: 3 !important;
    width: auto !important;
    float: none !important;
    min-width: 0;
}

#secondary {
    flex: 1 !important;
    width: auto !important;
    float: none !important;
    min-width: 240px;
}

/* Articles */
.site-content article {
    background: white;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
}

.site-content article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f36c21;
}

/* === Entry Headings === */
.entry-header .entry-title,
.entry-header .entry-title a {
    font-family: 'Inter', sans-serif !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #0e2841 !important;
    text-decoration: none !important;
}

.entry-header .entry-title a:hover {
    color: #f36c21 !important;
}

/* Entry Meta */
.entry-meta,
.entry-meta a {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: #aaa !important;
}

/* === Entry Content === */
.entry-content {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
}

.entry-content h2,
.entry-content h3 {
    font-family: 'Inter', sans-serif;
    color: #0e2841;
    margin-top: 1.5em;
}

.entry-content h2 {
    font-size: 22px;
    font-weight: 800;
}

.entry-content h3 {
    font-size: 18px;
    font-weight: 700;
}

/* Links */
.entry-content a {
    color: #f36c21;
    text-decoration: none;
    font-weight: 600;
}

.entry-content a:hover {
    color: #e8731f;
    text-decoration: underline;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.entry-content table th {
    background: #f5f0eb;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #ddd;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-content table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

/* Blockquotes - Orange box like B v2 */
.entry-content blockquote {
    background: #f36c21;
    color: white;
    padding: 28px;
    margin: 24px 0;
    border: none !important;
    border-left: none !important;
    font-family: 'Caveat', cursive;
    font-size: 24px;
    line-height: 1.3;
    transform: rotate(-0.5deg);
}

.entry-content blockquote p {
    color: white !important;
    margin: 0;
}

/* === Sidebar === */
#secondary {
    font-family: 'Inter', sans-serif;
}

#secondary .widget {
    background: white;
    padding: 20px;
    margin-bottom: 16px;
}

#secondary .widget-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0e2841 !important;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #f36c21;
}

#secondary a {
    color: #0e2841;
    text-decoration: none;
}

#secondary a:hover {
    color: #f36c21;
}

/* Sidebar headings (h3 in widgets) */
#secondary .widget h3,
#secondary .widget .wp-block-heading {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0e2841 !important;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #f36c21;
}

/* Sidebar blockquote (Zitat) */
#secondary .widget blockquote,
#secondary .widget .wp-block-quote {
    background: #f36c21 !important;
    color: white !important;
    padding: 24px !important;
    margin: 0 !important;
    border: none !important;
    border-left: none !important;
    font-family: 'Caveat', cursive !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    transform: rotate(-1deg);
}

#secondary .widget blockquote p,
#secondary .widget .wp-block-quote p {
    color: white !important;
    font-family: 'Caveat', cursive !important;
    font-size: 22px !important;
}

/* Team profile images in columns - scale down proportionally */
.wp-block-columns .wp-block-column .wp-block-image {
    max-width: 150px;
}
.wp-block-columns .wp-block-column .wp-block-image img {
    width: 100%;
    height: auto;
}

/* Sidebar images */
#secondary .widget img {
    border-radius: 8px;
    box-shadow: none;
}

/* Sidebar lists */
#secondary .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#secondary .widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
}

#secondary .widget li:last-child {
    border-bottom: none;
}

/* === Footer === */
.fls-footer {
    clear: both;
    max-width: 960px;
    margin: 40px auto 0;
    padding: 20px 24px;
    border-top: 2px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #888;
}

.fls-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fls-footer a {
    color: #666;
    text-decoration: none;
}

.fls-footer a:hover {
    color: #f36c21;
}

/* Hide TT default footer */
footer[role="contentinfo"],
.site-footer {
    display: none !important;
}

/* === Category/Tag badges === */
.cat-links a,
.tag-links a {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f36c21 !important;
    font-weight: 700 !important;
}

/* === Buttons === */
.entry-content .wp-block-button__link,
input[type="submit"] {
    background: #f36c21 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    padding: 10px 20px !important;
}

.entry-content .wp-block-button__link:hover,
input[type="submit"]:hover {
    background: #e8731f !important;
}

/* === Comments === */
.comments-area {
    background: white;
    padding: 32px;
}

/* Front page - show meta line like B v2 */
.home .entry-meta {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: #aaa !important;
    margin-bottom: 16px;
}

/* Category label above title */
.fls-cat-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f36c21 !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

/* Meta line (author + date) */
.fls-meta-line {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: #aaa !important;
    font-style: italic;
    margin-bottom: 16px !important;
}

/* Brush subtitle */
.entry-content .fls-brush-sub {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: #f36c21;
    transform: rotate(-0.5deg);
    display: block;
    margin-bottom: 12px;
}

/* === Team Portraits (Wer sind wir) === */
.entry-content .wp-block-columns {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
}

.entry-content .wp-block-columns .wp-block-column {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

.entry-content .wp-block-columns .wp-block-column .wp-block-image {
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.entry-content .wp-block-columns .wp-block-column .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: top;
}

/* === Responsive === */
@media (max-width: 768px) {
    .fls-header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .fls-nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fls-logo {
        height: 64px;
    }

    .fls-site-title {
        font-size: 22px !important;
    }

    #main.wrapper {
        display: block !important;
        padding: 0 16px;
    }

    #primary {
        width: 100% !important;
        float: none !important;
        min-width: 0 !important;
    }

    #secondary {
        width: 100% !important;
        float: none !important;
        min-width: 0 !important;
        margin-top: 24px;
    }

    .site-content article {
        padding: 20px;
    }

    .entry-header .entry-title,
    .entry-header .entry-title a {
        font-size: 22px !important;
    }

    /* Team: Spalten umbrechen auf mobile */
    .entry-content .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .entry-content .wp-block-columns .wp-block-column {
        flex: none !important;
        flex-basis: 45% !important;
        min-width: 120px !important;
    }
}
