/* Modern AAC Website - Responsive CSS */

/* Original AAC Font einbinden */
@font-face { 
    font-family: 'ITC Avant Garde Pro Bk'; 
    src: local('☺'), url('style/fonts/ITCAvantGardePro-Bk.woff') format('woff'), url('style/fonts/ITCAvantGardePro-Bk-1.ttf') format('truetype'); 
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'ITC Avant Garde Pro Bk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('images/AAC Background.jpg') fixed center center / cover no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 90, 160, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
    margin-top: 8px;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    display: none;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: white !important;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.nav-link span {
    position: relative;
}

.nav-link span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #d946ef;
    transition: width 0.3s ease;
}

.navbar .nav-menu .nav-link:hover,
.navbar .nav-menu .nav-link.active,
.nav-link:hover,
.nav-link.active {
    color: white !important;
}

.navbar .nav-menu .nav-link:hover span::after,
.navbar .nav-menu .nav-link.active span::after,
.nav-link:hover span::after,
.nav-link.active span::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: transparent;
    backdrop-filter: none;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('../images/glass-3389935.jpg') center/cover; */
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
}

.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.hero-logo {
    max-height: 300px;
    width: auto;
    max-width: 700px;
    margin-top: -70px;
}

@media (min-width: 769px) {
    .hero-logo {
        position: absolute;
        top: 250px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 20px;
    color: #2c5aa0;
}

.title-animated {
    display: inline-block;
    margin: 0 10px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.title-animated:nth-child(1) { animation-delay: 0.2s; }
.title-animated:nth-child(2) { animation-delay: 0.4s; }
.title-animated:nth-child(3) { animation-delay: 0.6s; }

.hero-title-group {
    margin-bottom: 40px;
}

@media (min-width: 769px) {
    .hero-title-group {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, calc(-50% + 15px));
        width: 100%;
        margin-bottom: 0;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: white;
    margin-bottom: 0px;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-description {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: white;
    margin-bottom: 0px;
    margin-top: -25px;
}

/* Schreibmaschinen-Animation für alle Titel */
.typewriter-main {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    min-height: 2em;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: white;
    line-height: 1.4;
}

.typewriter-cursor {
    display: inline-block;
    width: 4px;
    height: 0.8em;
    background-color: white;
    margin-left: 2px;
    animation: blink-cursor 1s infinite;
    vertical-align: baseline;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-company {
    margin-bottom: 40px;
    margin-top: 200px;
    padding: 30px 0;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    text-align: center;
}

@media (min-width: 769px) {
    .hero-company {
        position: absolute;
        bottom: 275px;
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
        margin-top: 0;
    }
}

.hero-company h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.since {
    font-size: 1.1rem;
    color: white;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .hero-actions {
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #2c5aa0;
    border-bottom: 2px solid #2c5aa0;
    transform: rotate(45deg);
}

/* Sections */
section {
    padding: 80px 0;
    background: rgba(248, 249, 250, 0.75);
    backdrop-filter: blur(5px);
    margin: 20px 0;
    border-radius: 10px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: rgba(248, 249, 250, 0.75);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: rgba(255, 255, 255, 0.75);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.service-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* References Section */
.references {
    background: rgba(248, 249, 250, 0.75);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 60px;
}

.reference-card {
    background: rgba(248, 249, 250, 0.75);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #2c5aa0;
    backdrop-filter: blur(5px);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
}

.reference-icon {
    width: 60px;
    height: 60px;
    background: #2c5aa0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
}

.reference-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.reference-card p {
    color: #6c757d;
    line-height: 1.5;
}

/* Profile Section */
.profile {
    background: rgba(248, 249, 250, 0.75);
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.profile-intro {
    font-size: 1.3rem;
    color: #2c5aa0;
    font-weight: 500;
    margin-bottom: 20px;
}

.profile-text p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.7;
}

.profile-highlights {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c5aa0;
    font-weight: 500;
}

.highlight i {
    font-size: 1.2rem;
}

.profile-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Contact Section */
.contact {
    background: rgba(248, 249, 250, 0.75);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-card {
    background: rgba(248, 249, 250, 0.75);
    padding: 40px 30px;
    border-radius: 15px;
    height: fit-content;
    backdrop-filter: blur(5px);
}

.contact-card h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-top: 3px;
}

.contact-item a {
    color: #2c5aa0;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.checkbox-group {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

/* CAPTCHA Styles */
.form-group.captcha-group {
    grid-column: 1 / -1;
    position: relative;
}

.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.captcha-group label {
    font-weight: 500;
    color: #333;
}

#captcha-question {
    font-weight: bold;
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-left: 10px;
}

.captcha-input-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.captcha-group input[type="number"] {
    max-width: 120px;
    text-align: center;
    font-weight: bold;
}

.captcha-refresh {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: #1e3f73;
    transform: translateY(-2px);
}

.captcha-refresh i {
    transition: transform 0.3s ease;
}

.captcha-refresh:hover i {
    transform: rotate(180deg);
}

.form button {
    grid-column: 1 / -1;
    margin-top: 20px;
    justify-self: start;
}

/* Footer */
.footer {
    background: #2c5aa0;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c5aa0;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-highlights {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(44, 90, 160, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 1.1rem;
        color: white !important;
        text-decoration: none;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:focus,
    .nav-menu .nav-link:active,
    .nav-menu .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
    
    .nav-menu .nav-link::after {
        display: none !important;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .brand-text {
        display: none;
    }
    
    .logo {
        height: 40px;
    }
    
    .hero-logos {
        margin-bottom: 30px;
        margin-top: 30px;
    }
    
    .hero-logo {
        max-height: 150px;
        max-width: 95vw;
        width: auto;
        height: auto;
        margin-top: 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-company {
        margin-top: 60px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-company h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-highlights {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .form {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .navbar {
        height: 70px;
    }
    
    .logo {
        height: 35px;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .hero {
        padding: 100px 15px 60px;
    }
    
    .service-card,
    .contact-card {
        padding: 30px 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    /* Mobile: Normales Layout für Hero-Elemente */
    .hero-logo {
        position: static !important;
        margin-top: 0 !important;
        margin-bottom: 30px;
        max-height: 120px !important;
        max-width: 350px !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
    }
    
    .hero-title-group {
        position: static !important;
        margin-bottom: 40px;
        margin-top: 0 !important;
        transform: none !important;
        width: 100% !important;
        top: auto !important;
        left: auto !important;
    }
    
    .hero-company {
        position: static !important;
        margin-top: 0 !important;
        margin-bottom: 40px;
        width: 90% !important;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 0 !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    .hero-actions {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        bottom: auto !important;
        left: auto !important;
    }
    
    section {
        padding: 40px 0;
        break-inside: avoid;
    }
}

/* DSGVO Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 90, 160, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #d946ef;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-text a {
    color: #d946ef;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: white;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}