/* K.Ö.St.V. Aargau - Hugo Theme Styles */
/* Based on original WordPress design */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #AB1813;
    --primary-dark: #8a1310;
    --primary-light: #cf2e2e;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg-color: #fff;
    --bg-light: #f8f8f8;
    --bg-dark: #222;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--bg-color);
    font-size: 16px;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

/* Header */
.site-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 0;
}

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

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: #fff;
    opacity: 0.9;
}

.logo .tagline {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 300;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    opacity: 0.8;
}

.contact-info .social-icon {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info .social-icon:hover {
    background: #fff;
    border-color: #fff;
    opacity: 1;
}

.contact-info .social-icon:hover i {
    color: var(--primary-color);
}

/* Navigation */
.main-nav {
    background: #fff;
    border-top: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.main-nav li a:hover,
.main-nav li.active a {
    background: var(--primary-color);
    color: #fff;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    background: #000;
}

.hero-carousel .carousel-inner {
    background: #000;
}

.hero-carousel .carousel-item {
    position: relative;
    height: 450px;
    background: #000;
}

.hero-carousel .carousel-item img {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: auto;
    max-width: 1280px;
    height: auto;
    max-height: 450px;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    z-index: 2;
    text-align: center;
}

.hero-carousel .carousel-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: bounceInRight 1s ease;
}

.hero-carousel .carousel-text p {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: bounceInLeft 1s ease;
}

.hero-carousel .carousel-text .btn {
    animation: bounceInUp 1s ease;
}

.hero-carousel .carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

.hero-carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.hero-carousel .carousel-indicators li.active {
    background-color: #fff;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    z-index: 3;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
}

@keyframes bounceInRight {
    0% { opacity: 0; transform: translateX(100px); }
    60% { transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes bounceInLeft {
    0% { opacity: 0; transform: translateX(-100px); }
    60% { transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes bounceInUp {
    0% { opacity: 0; transform: translateY(50px); }
    60% { transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn, .btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}

.intro {
    background: var(--bg-light);
    text-align: center;
}

.about {
    text-align: center;
    background: #fff;
}

.about p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.principle-card {
    background: #fff;
    padding: 40px 30px;
    border-bottom: 4px solid var(--primary-color);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.principle-card h3 {
    font-size: 22px;
    margin: 0;
}

.principle-card h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.principle-card:hover {
    background: var(--primary-color);
}

.principle-card:hover h3 a {
    color: #fff;
}

/* Single Page / Content Pages */
.single-page, .list-page {
    padding: 60px 0;
    background: #fff;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 4px solid var(--primary-color);
}

.page-header h1 {
    font-size: 36px;
    color: var(--text-color);
    font-weight: 700;
}

.page-content {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.8;
}

.page-content h1 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.page-content h2 {
    font-size: 24px;
    margin: 35px 0 15px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-content h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: var(--text-color);
}

.page-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.page-content em {
    font-style: italic;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.page-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--primary-dark);
}

/* Gallery styles for Bude page */
.page-content a > img {
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s ease;
}

.page-content a > img:hover {
    transform: scale(1.05);
}

/* Page List */
.page-list {
    list-style: none;
    margin-top: 30px;
}

.page-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.page-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
}

.page-list li a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 50px 0 20px;
}

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

.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-contact address {
    font-style: normal;
    line-height: 2;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

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

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social a {
    color: #fff !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px;
    max-height: 40px;
    border: 2px solid rgba(255,255,255,0.5) !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0 !important;
}

.footer-social a:hover {
    background: #fff !important;
    color: var(--primary-color) !important;
    border-color: #fff !important;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-carousel .carousel-text h1 {
        font-size: 36px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav li a {
        padding: 12px 15px;
        text-align: center;
    }

    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        height: 350px;
        min-height: 350px;
    }

    .hero-carousel .carousel-text h1 {
        font-size: 28px;
    }

    .hero-carousel .carousel-text p {
        font-size: 16px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 30px;
    color: var(--text-color);
    font-weight: 300;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Werte Section */
.werte-section {
    background: #fff;
    padding: 60px 0;
}

.werte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.werte-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.werte-card:hover {
    background: var(--bg-light);
}

.werte-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.werte-icon i {
    font-size: 24px;
    color: #fff;
}

.werte-content {
    flex: 1;
    text-align: left;
}

.werte-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.werte-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Prinzipien Section */
.prinzipien-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.prinzipien-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.prinzip-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--shadow);
    background: #fff;
}

.prinzip-card a {
    display: block;
    text-decoration: none;
}

.prinzip-image {
    overflow: hidden;
}

.prinzip-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prinzip-card:hover .prinzip-image img {
    transform: scale(1.1);
}

.prinzip-caption {
    padding: 15px;
    text-align: center;
    background: #fff;
}

.prinzip-caption h4 {
    font-size: 18px;
    color: var(--text-color);
    margin: 0 0 5px 0;
    font-weight: 600;
}

.prinzip-caption p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: #fff;
    padding: 25px 0;
}

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

.cta-content p {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-content p i {
    font-size: 24px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb-title {
    background: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    text-align: left;
}

.breadcrumb-title h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
    color: #fff;
}

.breadcrumb-nav {
    margin-top: 10px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.breadcrumb-list li a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Two Column Layout with Sidebar */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 80px;
}

.contact-sidebar {
    background: var(--primary-color);
    color: #fff;
    padding: 25px;
    border-radius: 5px;
}

.contact-sidebar h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.contact-sidebar p {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-sidebar a {
    color: #fff;
    text-decoration: none;
}

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

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.gallery-grid a:hover img {
    transform: scale(1.1);
}

/* Related Principles Section */
.related-principles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.related-principles h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover img {
    transform: scale(1.1);
}

.related-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    text-align: center;
}

.related-card-overlay h4 {
    margin: 0;
    font-size: 18px;
}

.related-card a {
    text-decoration: none;
}

/* Page with featured image */
.featured-image {
    float: right;
    max-width: 350px;
    margin: 0 0 20px 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .werte-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prinzipien-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-image {
        float: none;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
}

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

    .prinzipien-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cta-content p {
        flex-direction: column;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .prinzipien-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .main-nav, .site-footer, .hero {
        display: none;
    }

    .page-content {
        max-width: 100%;
    }
}
