/*
Theme Name: Round Table 24 Arbon
Theme URI: https://rt24.ch
Author: RT24
Author URI: https://rt24.ch
Description: Custom theme for Round Table 24 Arbon - Service Club im Oberthurgau
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rt24
*/

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rt24-red: #E62D36;
    --rt24-red-dark: #c4242c;
    --rt24-black: #010202;
    --rt24-white: #ffffff;
    --rt24-gray-light: #f5f5f5;
    --rt24-gray: #e0e0e0;
    --rt24-gray-dark: #666666;
    --rt24-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rt24-max-width: 1200px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--rt24-font);
    color: var(--rt24-black);
    background-color: var(--rt24-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--rt24-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--rt24-red-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* === Layout === */
.container {
    max-width: var(--rt24-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section--gray {
    background-color: var(--rt24-gray-light);
}

.section--dark {
    background-color: var(--rt24-black);
    color: var(--rt24-white);
}

.section--red {
    background-color: var(--rt24-red);
    color: var(--rt24-white);
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--rt24-white);
    border-bottom: 3px solid var(--rt24-red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--rt24-black);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--rt24-black);
}

.site-logo__img {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--rt24-black);
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo__text span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--rt24-gray-dark);
}

/* === Navigation === */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--rt24-black);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
    background-color: var(--rt24-red);
    color: var(--rt24-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rt24-black);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* === Hero === */
.hero {
    background: linear-gradient(rgba(1, 2, 2, 0.55), rgba(1, 2, 2, 0.65)),
                url('assets/images/header-image.jpg') center/cover no-repeat;
    color: var(--rt24-white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(230, 45, 54, 0.1) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero__motto {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rt24-red);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    margin-top: 1rem;
}

/* === Pillars === */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pillar {
    background: var(--rt24-white);
    color: var(--rt24-black);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--rt24-red);
    transition: transform 0.2s;
}

.pillar:hover {
    transform: translateY(-4px);
}

.pillar h3 {
    color: var(--rt24-red);
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.pillar p {
    color: var(--rt24-gray-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === About Section === */
.about-section h2 {
    margin-bottom: 1.5rem;
}

.about-section p {
    max-width: 800px;
    color: var(--rt24-gray-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* === Page Header === */
.page-header {
    background: linear-gradient(rgba(1, 2, 2, 0.6), rgba(1, 2, 2, 0.7)),
                url('assets/images/header-image.jpg') center/cover no-repeat;
    color: var(--rt24-white);
    padding: 5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

.page-header p {
    opacity: 0.8;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* === Page Content === */
.page-content {
    padding: 4rem 0;
}

.page-content .container {
    max-width: 900px;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--rt24-black);
    border-bottom: 2px solid var(--rt24-red);
    padding-bottom: 0.5rem;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #333;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.page-content strong {
    color: var(--rt24-black);
}

/* === Members Grid === */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.member-card {
    background: var(--rt24-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.member-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: var(--rt24-gray-light);
}

.member-card__placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--rt24-gray-light) 0%, var(--rt24-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--rt24-gray-dark);
}

.member-card__content {
    padding: 1.5rem;
    position: relative;
}

.member-card__toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 28px;
    height: 28px;
    background: var(--rt24-gray-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    padding: 0;
    font-size: 0;
    color: transparent;
}

.member-card__toggle::before {
    content: '+';
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--rt24-gray-dark);
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}

.member-card__toggle:hover {
    background: var(--rt24-gray);
}

.member-card__toggle:hover::before {
    color: var(--rt24-black);
}

.member-card__toggle[aria-expanded="true"]::before {
    content: '\2212';
    color: var(--rt24-red);
}

.member-card__toggle[aria-expanded="true"] {
    background: rgba(230, 45, 54, 0.08);
}

.member-card__details {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--rt24-gray);
}

.member-card__detail {
    font-size: 0.85rem;
    color: var(--rt24-gray-dark);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.member-card__detail span {
    font-weight: 600;
    color: var(--rt24-black);
}

.member-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.member-card__profession {
    font-size: 0.9rem;
    color: var(--rt24-gray-dark);
    margin-bottom: 0.25rem;
}

.member-card__company {
    font-size: 0.85rem;
    color: var(--rt24-gray-dark);
    font-style: italic;
}

.member-card__location {
    font-size: 0.85rem;
    color: var(--rt24-gray-dark);
    margin-top: 0.5rem;
}

/* === Contact === */
.contact-section {
    padding: 4rem 0;
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--rt24-gray-dark);
}

.contact-info a {
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-meeting-info {
    background: var(--rt24-gray-light);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.contact-meeting-info h3 {
    margin-bottom: 1rem;
    color: var(--rt24-red);
}

.contact-meeting-info p {
    margin-bottom: 0.5rem;
}

/* === Footer === */
.site-footer {
    background: var(--rt24-black);
    color: var(--rt24-white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-info a:hover {
    color: var(--rt24-white);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--rt24-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-social a:hover {
    color: var(--rt24-white);
}

/* === Responsive === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--rt24-white);
        border-bottom: 3px solid var(--rt24-red);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .pillars {
        grid-template-columns: 1fr;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 4rem 0;
    }
}

/* === WordPress Specific === */
.wp-block-image img {
    border-radius: 4px;
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Admin bar spacing */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
