:root {
    --adac-yellow: #FFCC00;
    --adac-black: #111111;
    --rcn-red: #D32F2F;
    --bg-gray: #F4F4F6;
    --text-dark: #222222;
    --border-color: #DDDDDD;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-gray);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: var(--adac-black);
    color: #FFF;
    border-bottom: 4px solid var(--adac-yellow);
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Replace .badge-adac with this: */
.rcn-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.rcn-header-logo {
    height: 148px;          /* Clean scaling for header */
    width: auto;
    max-width: 230px;
    object-fit: contain;
    background-color: #FFFFFF; /* Ensures transparent parts stay crisp against dark header */
    padding: 4px 8px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.rcn-header-logo:hover {
    transform: scale(1.03);
}

.club-title h1 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #FFF;
    margin: 0;
}

.club-title span {
    font-size: 0.85rem;
    color: var(--adac-yellow);
}

.header-meta {
    font-size: 0.85rem;
    color: #AAA;
}

/* Navigation */
.main-nav {
    background: #222;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
}

.main-nav a {
    color: #EEE;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: bold;
    display: inline-block;
    transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--adac-yellow);
    color: var(--adac-black);
}

/* Hero Section */
.hero-banner {
    background: url('./images/rcn26_.jpg') center/cover no-repeat;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
    padding: 70px 0;
    color: #FFF;
}

.hero-overlay h2 {
    font-size: 2rem;
    max-width: 650px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-overlay p {
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background: var(--rcn-red);
    color: #FFF;
    padding: 10px 22px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: #B71C1C;
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.4rem;
    border-left: 5px solid var(--adac-yellow);
    padding-left: 10px;
    margin-bottom: 20px;
}

/* News Cards */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.news-img {
    width: 220px;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-body {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 4px;
}

.news-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--adac-black);
}

.news-body p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
}

.read-more {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--rcn-red);
    text-decoration: none;
}

/* Sidebar */
.widget {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--adac-yellow);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.event-list {
    list-style: none;
}

.event-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #CCC;
    font-size: 0.9rem;
}

.event-list li:last-child {
    border-bottom: none;
}

.event-date {
    display: block;
    font-weight: bold;
    color: var(--rcn-red);
}

.box-highlight {
    background: #FFFBEA;
    border-color: #FFE082;
}

.btn-sidebar {
    display: inline-block;
    margin-top: 10px;
    background: var(--adac-black);
    color: #FFF;
    padding: 8px 14px;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 3px;
}

/* Footer */
.site-footer {
    background: var(--adac-black);
    color: #AAA;
    padding: 25px 0;
    font-size: 0.85rem;
    border-top: 3px solid var(--adac-yellow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: #AAA;
    text-decoration: none;
    margin-left: 15px;
}

.footer-links a:hover {
    color: var(--adac-yellow);
}

/* Responsive */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .news-card {
        flex-direction: column;
    }
    .news-img {
        width: 100%;
        height: 180px;
    }
    
    
    /* Zusätzliche Seiten-Stile */
.page-content {
    margin-top: 30px;
    margin-bottom: 50px;
}

.section-intro {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}

/* Galerie & Fahrer */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.driver-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.driver-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.driver-info {
    padding: 15px;
}

.driver-class {
    display: inline-block;
    background: var(--adac-yellow);
    color: var(--adac-black);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.driver-info h3 {
    font-size: 1.1rem;
    color: var(--adac-black);
    margin-bottom: 2px;
}

.driver-car {
    display: block;
    font-size: 0.85rem;
    color: var(--rcn-red);
    margin-bottom: 8px;
}

.driver-info p {
    font-size: 0.85rem;
    color: #666;
}

/* Kontakt & Formular */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.form-container, .contact-info-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 50px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--adac-yellow);
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

.btn-submit {
    background: var(--rcn-red);
    color: #FFF;
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #B71C1C;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
    padding: 15px;
    border-radius: 4px;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.contact-info-card h3 {
    border-bottom: 2px solid var(--adac-yellow);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.divider {
    border: 0;
    border-top: 1px solid #EEE;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
    
/* Über uns Layout */
.about-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.about-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 25px;
    position: relative;
}

.card-heading {
    font-size: 1.25rem;
    color: var(--adac-black);
    margin-bottom: 12px;
    border-left: 4px solid var(--adac-yellow);
    padding-left: 10px;
}

.badge-rcn-label {
    display: inline-block;
    background: var(--rcn-red);
    color: #FFF;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* 3 Säulen Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.pillar-box {
    background: #FAFAFA;
    border: 1px solid #EAEAEA;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.pillar-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.pillar-box h4 {
    font-size: 1rem;
    color: var(--adac-black);
    margin-bottom: 6px;
}

.pillar-box p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

/* Bergischer Schmied Specs Box */
.event-specs-grid {
    margin-top: 15px;
    background: #F9F9FB;
    border-left: 3px solid var(--rcn-red);
    padding: 12px 15px;
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.event-specs-grid strong {
    color: var(--adac-black);
    margin-right: 5px;
}

/* Timeline */
.timeline {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 2px solid var(--adac-yellow);
    padding-left: 15px;
    margin-left: 5px;
}

.timeline-item {
    position: relative;
}

.timeline-year {
    display: inline-block;
    background: var(--adac-black);
    color: var(--adac-yellow);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.timeline-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--adac-black);
    margin-top: 2px;
}

.timeline-text p {
    font-size: 0.85rem;
    color: #555;
    margin-top: 2px;
}

/* Verbandstabelle in Sidebar */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th, .data-table td {
    padding: 8px 0;
    border-bottom: 1px dotted #DDD;
    vertical-align: top;
}

.data-table th {
    color: #666;
    font-weight: bold;
    width: 40%;
    text-align: left;
}

.data-table td {
    color: #222;
}

@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
}    

/* Styling für Impressum & Datenschutz */
.legal-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 35px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 12px;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section h3 {
    font-size: 1.15rem;
    color: var(--adac-black);
    margin-bottom: 10px;
    border-left: 3px solid var(--adac-yellow);
    padding-left: 8px;
}

.legal-section h4 {
    font-size: 0.95rem;
    color: #333;
    margin: 12px 0 4px 0;
}

.legal-section p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #444;
}

.legal-section li {
    margin-bottom: 4px;
}

.legal-section a {
    color: var(--rcn-red);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--adac-black);
}
    
/* Header Social & Meta Bereich */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.header-social {
    display: flex;
    gap: 8px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 4px 10px;
    border-radius: 3px;
    color: #FFF;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-fb {
    background-color: #1877F2;
}

.btn-insta {
    background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
}

/* Sidebar Social Widget */
.widget-sub {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

.sidebar-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    color: #FFF;
    font-weight: bold;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-social-item:hover {
    transform: translateX(4px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.fb-item {
    background-color: #1877F2;
}

.insta-item {
    background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
}

@media (max-width: 768px) {
    .header-right {
        align-items: flex-start;
        margin-top: 10px;
        width: 100%;
    }
}
    