/* 
   Universität Bayreuth Corporate Design Implementation
   Colors:
   - Green (Primary): #009260
   - Dark Gray (Headlines): #48535A
   - Medium Gray (Text): #7F8990
   - Light Gray (Backgrounds): #EBEBE4
*/

:root {
    --ubt-green: #009260;
    --ubt-dark-gray: #48535A;
    --ubt-medium-gray: #7F8990;
    --ubt-light-gray: #EBEBE4;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Myriad Pro", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ubt-medium-gray);
    line-height: 1.6;
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Minion Pro", Georgia, "Times New Roman", Times, serif;
    color: var(--ubt-dark-gray);
    margin-bottom: 2rem;
    font-weight: normal;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--ubt-green);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ubt-green);
    font-family: "Myriad Pro", sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--ubt-light-gray);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--ubt-green);
    color: white;
}

.btn-primary:hover {
    background-color: #007a50;
}

.btn-secondary {
    border: 2px solid var(--ubt-green);
    color: var(--ubt-green);
}

.btn-secondary:hover {
    background-color: var(--ubt-green);
    color: white;
}

/* Header */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-logo {
    height: 50px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--ubt-dark-gray);
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ubt-green);
}

.main-nav .btn-primary {
    color: white;
}

.main-nav a.btn-primary:hover,
.main-nav a.btn-primary.active {
    color: white;
}

/* Hero Section */
/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(30, 30, 30, 0.85), rgba(30, 30, 30, 0.85)), url('assets/factory_background_image.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.hero-section h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Zielsetzung */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Zielsetzung Refactored */
.zielsetzung-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
    align-items: center;
}

.ziel-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.zielsetzung-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.potenzial-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid var(--ubt-green);
    transition: transform var(--transition-speed);
    height: 100%;
}

.potenzial-card:hover {
    transform: translateY(-5px);
}

.potenzial-icon-container {
    width: 100px;
    height: 100px;
    background-color: var(--ubt-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.potenzial-card:hover .potenzial-icon-container {
    background-color: var(--ubt-green);
    transform: scale(1.1);
}

.potenzial-icon {
    width: 60px;
    height: 60px;
    fill: var(--ubt-green);
    transition: fill var(--transition-speed);
}

/* Use stroke for cleaner, modern icons */
.icon-svg-card {
    width: 48px;
    height: 48px;
    stroke: var(--ubt-green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all var(--transition-speed);
}

.potenzial-card:hover .icon-svg-card {
    stroke: white;
}

.potenzial-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.4;
    color: var(--ubt-dark-gray);
    font-family: "Minion Pro", serif;
    margin-top: 15px;
}

@media (min-width: 900px) {
    .zielsetzung-top {
        display: grid;
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: 40px;
        align-items: center;
    }

    .ziel-left {
        text-align: left;
    }

    .ziel-right {
        text-align: left;
    }
}

.styled-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.styled-list li::before {
    content: '■';
    color: var(--ubt-green);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 3px;
}

.placeholder-bg {
    background-color: #eee;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
    font-weight: bold;
    font-size: 1.5rem;
}

.image-block a {
    display: block;
    transition: transform var(--transition-speed);
    border-radius: 8px;
    /* Match image radius */
}

.image-block a:hover {
    transform: scale(1.02);
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    /* More refined shadow */
    transition: box-shadow var(--transition-speed);
}

.image-block a:hover .feature-image {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.text-block h3 {
    margin-top: 2rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--ubt-green);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
}

.cost-box {
    margin-top: 50px;
    background: var(--ubt-dark-gray);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.cost-box strong {
    color: #fff;
    font-weight: bold;
}

/* Concept */
.concept-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.topic-item {
    background: white;
    text-align: center;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Softer initial shadow */
    transition: all var(--transition-speed);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.topic-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--ubt-green);
}

.topic-icon {
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    width: 100px;
    height: 100px;
    background-color: var(--ubt-light-gray);
    border-radius: 50%;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.topic-item:hover .topic-icon {
    background-color: var(--ubt-green);
    transform: scale(1.1);
}

.icon-svg {
    width: 48px;
    height: 48px;
    fill: var(--ubt-green);
    transition: fill var(--transition-speed);
}

.topic-item:hover .icon-svg {
    fill: white;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.partner-card {
    background: white;
    padding: 30px;
    text-align: center;
    border: 1px solid #ddd;
}

.partner-card h3 {
    color: var(--ubt-dark-gray);
    font-family: "Minion Pro", serif;
}

/* Funding */
.funding-section {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.funding-section h2 {
    text-align: left;
}

.funding-logos {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.funding-logos img {
    height: 60px;
    object-fit: contain;
}

.funding-text {
    font-size: 0.9rem;
    color: #999;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.main-footer {
    background-color: var(--ubt-dark-gray);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-column h3,
.legal-column h3 {
    color: white;
    border-bottom-color: white;
}

.contact-column h3::after,
.legal-column h3::after {
    background-color: white;
}

.contact-person {
    margin-bottom: 20px;
}

.contact-person a {
    color: var(--ubt-green);
    text-decoration: underline;
}

.legal-column ul li {
    margin-bottom: 10px;
}

.legal-column a:hover {
    color: var(--ubt-green);
}

/* Contact Page Grid */
.contact-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.contact-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border-left: 5px solid var(--ubt-green);
    box-shadow: var(--card-shadow);
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {

    /* Fonts */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Layout Spacing */
    .section-padding {
        padding: 40px 0;
    }

    .hero-section {
        padding: 60px 0;
    }

    /* Header */
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Grid Adjustments */
    .content-split {
        grid-template-columns: 1fr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
        /* Stack visually on mobile */
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .potenzial-icon-container {
        width: 80px;
        height: 80px;
    }

    .potenzial-icon,
    .icon-svg-card {
        width: 40px;
        height: 40px;
    }

    /* Ensure grids don't overflow */
    .cards-grid,
    .concept-topics,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    /* Fix Funding Logos Overflow */
    .funding-logos {
        flex-direction: column;
        gap: 20px;
    }

    .funding-logos img {
        max-width: 100%;
        height: auto;
        max-height: 80px;
    }
}