/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: rgb(0, 159, 227);
    --accent: #e74c3c;
    --light: #ecf0f1;
    --light-alpha-30: rgb(255, 255, 255, 0.3);
    --dark: #2c3e50;
    --gray: #95a5a6;
    --text-dark: #333;
    --success: #2ecc71;
    --lighten: #ffe760;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    --theme-trans: rgba(0, 0, 0, 0.01);
    --theme-cyan: rgb(0, 159, 227, 1.0);
    --theme-magenta: rgb(219, 0, 121);
    --theme-yellow: rgb(99.6, 92.9, 0, 1.0);
    --theme-yellow-bg: rgb(255, 217, 0, 0.2);
    --theme-yellow-border: rgb(255, 217, 0, 0.6);

    --theme-linear-bg-cyan: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --theme-linear-img-bg-cyan: linear-gradient(135deg, rgba(0, 174, 255, 0.7) 0%, rgba(255, 51, 0, 0.7) 100%), url("assets/img/hero/grafik-zentrum_hero.png");
    --theme-linear-bg-magenta: linear-gradient(135deg, var(--theme-magenta) 0%, var(--lighten) 100%);
    --theme-linear-bg-light: linear-gradient(rgba(255, 255, 255, 0.027), rgba(236, 236, 236, 0.5));
    --theme-linear-img-bg: linear-gradient(rgba(8, 8, 8, 0.7), rgba(236, 236, 236, 0.5)), url("assets/img/pool/soziale-medien.jpg");
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.1rem;
}

.section-title p {
    color: var(--dark);
    font-size: larger;
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--theme-magenta);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--theme-cyan);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: #1a252f;
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #c0392b;
}

/* Header Styles */
header {
    /*
    background-color: var(--light-alpha-30);
    background-image: var(--theme-linear-img-bg-cyan);
    */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: .4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);

    background-image: var(--theme-linear-img-bg-cyan);
    /*background: rgb(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);*/
}

header.shrink {
    padding: 0.2rem 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    transition: var(--transition);
    animation: fadeInLft 1s ease
}

header.shrink .logo-container {
    transform: scale(0.85);
    transform-origin: left;
}

.logo-img {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: var(--transition);
}

.logo-img img {
    height: 3rem;
}

header.shrink .logo-img {
    width: 1rem;
    height: 1rem;
    margin-right: 1.1rem;
}

header.shrink .logo-img img {
    height: 2.3rem;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-magenta);
    transition: var(--transition);
}

header.shrink .logo-text {
    font-size: 1.3rem;
}

.logo-text span {
    color: var(--light);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    animation: fadeInRgt 1s ease
}

.desktop-nav a {
    text-decoration: none;
    font-size: larger;
    color: var(--light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.desktop-nav a:hover {
    color: var(--light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

header.shrink .mobile-menu-btn {
    height: 18px;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 200;
    transition: right 0.4s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    margin-top: 2rem;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
}

.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    /*
    background: linear-gradient(135deg, var(--theme-cyan) 0%, var(--dark) 100%); 
    */
    background-position: center;
    background-size: cover;
    background-image: linear-gradient(rgba(7, 86, 255, 0.5), rgba(224, 0, 112, 0.5)), url("assets/img/hero/grafik-zentrum_hero_alpha.png");
    color: var(--light);
    text-align: center;
    padding: 10rem 2rem 8rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

/*
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 5rem auto;
}*/

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*
    border: 2px solid var(--theme-yellow-border);
    background-color: var(--theme-yellow-bg);
    padding: 4rem;
    border-radius: .5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    */
}

.hero h1 {
    font-size: 3rem;
    animation: fadeInUp 1s ease
}

.hero p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease
}

/* Services Section */
.services {
    background: var(--light);
}

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

.service-card {
    background: var(--light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--secondary);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--theme-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    color: white;
    font-size: 1.8rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Process Section */
.process {
    background: #f8f9fa;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25%;
    right: -6.5rem;
    width: 70%;
    height: 3px;
    background: var(--theme-magenta);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--theme-cyan);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* Portfolio Section */
.portfolio {
    background: white;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: none;
    border: 1px solid var(--gray);
    border-radius: 30px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: var(--shadow);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 1rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: #ddd;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background: #f8f9fa;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 0 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: var(--theme-linear-bg-cyan);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact {
    background: white;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Selectable Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    width: 95%;
    display: none;
    margin-top: 1rem;
    position: absolute;
    background-color: rgba(238, 238, 238, 0.95);
    border: 2px solid #757575;
    box-shadow: var(--shadow);
    border-radius: .6rem;
    border: var(--gray);
    padding: 1rem;
    z-index: 1;
}

.dropdown-content input {
    margin-right: .4rem;
}

.dropdown-content label {
    margin-bottom: -1.2rem;
    border-bottom: 2px solid var(--light);
    font-size: 1rem;
}

.dropdown.show .dropdown-content {
    display: block;
}

.dropdown-toggle {
    width: 100%;
    justify-items: center;
    cursor: pointer;
}


/* Content Styles */
.content {
    flex: 1;
    transition: transform 0.4s ease;
}

.content.shifted {
    transform: translateX(-150px);
}

/* Footer Styles */
footer {
    background-image: var(--theme-linear-bg-cyan);
    color: var(--light);
    padding: 3rem 2rem 1.5rem;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--light);
}

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

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

.footer-section i {
    margin-right: 1rem;
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--light);
    padding-left: 5px;
}

.footer-section img {
    height: 10rem;

    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.footer-bottom a {
    text-decoration: none;
    color: var(--light);
}

/* footer bar container */
.barContainer {
    background: transparent;
    color: var(--light);
    width: 100%;
    padding: .1rem;
}

.footerBar {
    border-top: 2px solid rgba(255, 145, 0, 0.2);
    max-width: 100%;
    padding: .1rem 1.25rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footerBar .footer-text {
    padding-top: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.footerBar .footer-link {
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.footerBar .footer-links {
    display: inline-flex;
    justify-content: center;
    margin-top: 1rem;
    margin-right: 0;
    gap: 2rem;
}

.footerBar .footer-links a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 728px) {
    .footerBar .footer-links {
        gap: 1rem;
    }
}

@media (min-width: 640px) {
    .footerBar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .footerBar .footer-text {
        margin-top: 0;
        text-align: left;
    }
}

/* --- MODAL DSVGO --- */
.dsvgo {
    position: fixed;
    inset: 0;
    background-image: var(--theme-linear-img-bg-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.dsvgo.hidden {
    display: none;
}

.dsvgo-content {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light-alpha-30);
    border: var(--theme-cyan) solid 2px;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin: .3rem;
    padding: 1rem;
    max-width: 400px;
    width: 100%;
}

.dsvgo-text {
    border: rgb(218, 218, 218) solid 2px;
    border-radius: .25rem;
    background: var(--theme-linear-bg-light);
    padding: .7rem;
    height: 20rem;
    overflow: hidden;
    overflow-y: scroll;
}


.dsvgo-text h2 {
    text-align: center;
    font-size: 1rem;
    width: 100%;
    font-weight: 600;
    margin-bottom: .5rem;
}

.dsvgo-text h3 {
    text-align: center;
    font-size: .9rem;
    width: 100%;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: .25rem;
}

.dsvgo-text a {
    text-decoration: none;
    text-align: justify;
    font-weight: 500;
    font-size: .8rem;
    width: 100%;
}

.dsvgo-text p,
ul {
    list-style: none;
    text-align: justify;
    margin-bottom: .25rem;
    font-size: .8rem;
    width: 100%;
}

/* --- dsvgo: SWITCH GRID --- */
.switch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.switch-item {
    display: flex;
    align-items: center;
}

/* --- dsvgo: SWITCH BASE --- */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4d4d4d;
    border-radius: 34px;
    transition: background-color 0.3s ease;
}

.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* --- dsvgo: SWITCH STATES --- */
input:checked+.slider {
    background-color: #16a34a;
    /* grün */
}

input:checked+.slider::before {
    transform: translateX(24px);
}

/* --- dsvgo: DISABLED STATE --- * /
.slider.required {
    background-color: #dc2626;
    /* rot * /
}
*/
input:disabled+.slider.required {
    background-color: #dc2626;
    opacity: 0.8;
    cursor: not-allowed;
}

.switch-label {
    margin-left: 10px;
    font-weight: 500;
}

/* --- BUTTONS --- */
.dsvgo-content .button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

button {
    background: #008807;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.button-avoid {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--gray);
    font-weight: 400;
    border: var(--light) 2px solid;
    border-radius: 6px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #374151;
    transition: var(--transition);
    color: var(--light);
}

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

    .process-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    section {
        padding: 3rem 1rem;
    }

    .hero {
        padding: 8rem 1rem 6rem;
        height: 100vh;
    }

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

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

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

    header {
        padding: 1.2rem 1.5rem;
    }

    header.shrink {
        padding: 0.6rem 1.5rem;
    }
}

/* ----------  ANIMATIONS  ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInLft {
    from {
        opacity: 0;
        transform: translateX(-30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes fadeInRgt {
    from {
        opacity: 0;
        transform: translateX(30px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}