/* Global Styles */
:root {
    --primary-color: #2f4858;
    --secondary-color: #57C785;
    --accent-color: #ff0027;
    --light-color: #ecf0f1;
    --dark-color: #684d99;
    --text-color: #333;
    --text-light: #7f8c8d;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
   /* padding: 1rem 0;*/
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.logo span {
    color: black;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    font-weight: 600;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu {
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;          /* griffigere Fläche */
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/art-isc-cropp.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    height: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 80px;
    background-attachment: scroll; /* Statt fixed für mobile Geräte */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: auto;
    max-width: 100%;
}

/* Services Section */
.services {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    background-color: var(--secondary-color);
    color: white;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    margin-bottom: 1rem;
}

/* Why Choose Us Section */
.why-us {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Call to Action */
.cta {
    padding: 5rem 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

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

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}



/* Optimize for page speed */
img {
    max-width: 100%;
    height: auto;
}

.imgmargin {
    margin-bottom: 40pt;
}

/* Improve accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Tabs Design: Moderne Unterstriche */
.tabs-container {
    width: 100%;
    margin-bottom: 40px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab-item {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-item:hover {
    color: #0056b3;
}

.tab-item.active {
    color: var(--secondary-color);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Tabs Design: Moderne Unterstriche */
.tabs-container {
    width: 100%;
    margin-bottom: 40px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab-item {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-item:hover {
    color: #0056b3;
}

.tab-item.active {
    color: #0056b3;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

.tab-content {
    display: none;
    padding: 20px;
    border-radius: 0 0 5px 5px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Projekt-Inhalt Stile */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 180px;
    /*background-color: #e9f0ff;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #0056b3;
}

.project-details {
    padding: 20px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.project-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    background-color: #e9f0ff;
    color: #0056b3;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.details-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    text-align: center;
}

.details-button:hover {
    background-color: var(--accent-color);
}

/* In-Place Projekt Details Panel */
.project-details-panel {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 30px;
    display: none;
    position: relative;
}

.project-details-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.close-panel-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.close-panel-button:hover {
    background-color: #e0e0e0;
}

.panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-right: 40px; /* Platz für den Close-Button */
}

.panel-icon {
    font-size: 2.5rem;
    color: #0056b3;
    margin-right: 20px;
}

.panel-title-container {
    flex: 1;
}

.panel-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

.panel-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.panel-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.panel-description {
    flex: 2;
    min-width: 300px;
}

.panel-description p {
    margin-bottom: 15px;
}

.panel-meta {
    flex: 1;
    min-width: 250px;
}

.meta-section {
    margin-bottom: 25px;
}

.meta-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

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

.meta-item {
    display: flex;
    margin-bottom: 10px;
}

.meta-icon {
    color: #0056b3;
    margin-right: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    background-color: #e9f0ff;
    color: #0056b3;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: hidden;
    }
    .header-container {
        width: 100%;
        max-width: none;
        padding: 0 10px;
      }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .panel-title {
        font-size: 1.5rem;
    }
    
    .panel-content {
        flex-direction: column;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.8rem 2rem;
    }

    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}




a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}


.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


/* Footer Impressum Styles */
.footer-impressum {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-impressum p {
    margin-bottom: 5px;
    color: #bdc3c7;
}

.footer-impressum a {
    color: #bdc3c7;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-impressum a:hover {
    color: var(--secondary-color);
}


#about img, .about-section img {
    max-width: 100%;
    height: auto;
    display: block;
  }


  @media (max-width: 480px) {

    /* 1) Project‑Grid stapeln und kleinere Karten erlauben */
    .project-grid      { grid-template-columns: 1fr; }
    .project-card      { min-width: 0; }

    h2 {
        font-size: 1.5rem;
    }
  
    /* 2) Detail‑Panel ohne starre Min‑Breiten */
    .panel-description,
    .panel-meta        { min-width: 100%; }
  
    /* 3) Container soll niemals breiter werden als das Viewport */
    .container         { width: 100%; padding-inline: 5vw; }
  
    /* 4) Überschrift etwas kleiner, damit sie nicht umbrechen */
    .hero h1           { font-size: 1.5rem; }
  }
  