/* Global Styles für ROWE IT-Solutions */

/* CSS-Variablen für Theme-Farben */
:root {
    /* Hauptfarben */
    --color-primary: #29456d;
    --color-primary-light: #4c759a;
    /* Textfarben */
    --color-text-dark: #333333;
    --color-text-medium: #666666;
    
    /* Footer */
    --color-footer-bg: #2c3e50;
    --color-footer-text: #bdc3c7;
    --color-footer-link: #8fb3d5;
    --color-footer-link-hover: #8fb3d5;
}

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

/* Globale Lösung für Ankersprünge mit fixed Header */
html {
    background-color: #29456d;
    scroll-padding-top: 120px;
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overscroll-behavior-y: none;
}

/* Unterstützung für Variable Font wenn verfügbar */
@supports (font-variation-settings: normal) {
    body {
        font-family: 'InterVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-optical-sizing: auto;
    }
}

/* Navigation */
nav {
    background-color: white;
    padding: 1.5rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideInFromTop 0.5s ease-out;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-links a:hover {
    color: #4c759a;
}

/* Aktiver Link */
.nav-links a.active {
    color: #29456d;
    font-weight: 500;
}

/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Animation Classes */
.animate-left {
    opacity: 0;
}

.animate-left.animate {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.animate-right {
    opacity: 0;
}

.animate-right.animate {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-bottom {
    opacity: 0;
}

.animate-bottom.animate {
    animation: slideInFromBottom 0.6s ease-out forwards;
}


/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        justify-content: center;
    }

    /* Mobile: Keine seitlichen Animationen, nur sanftes Einblenden von unten */
    .animate-left.animate,
    .animate-right.animate {
        animation: slideInFromBottom 0.6s ease-out forwards;
    }
}

/* Footer Styles */
footer {
    background-color: var(--color-footer-bg);
    color: #ffffff;
    padding: 3rem 5%;
    margin-top: 5rem;
}

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

footer h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer p {
    line-height: 1.8;
    color: var(--color-footer-text);
}

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

footer a:hover {
    color: var(--color-footer-link-hover);
}

footer ul {
    list-style: none;
    padding: 0;
    line-height: 2;
}

footer .footer-links a {
    color: var(--color-footer-text);
}

footer .copyright {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--color-footer-text);
    font-size: 0.9rem;
}

/* ================================================
   INDEX.PHP – Hero, About, Services
   ================================================ */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #29456d 0%, #4c759a 100%);
    color: white;
    text-align: center;
    padding: 150px 5% 100px;
    margin-top: 60px;
    position: relative;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.hero-logo svg {
    max-width: 480px;
    width: 100%;
    height: auto;
}

/* Logo-Animationen */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    from { stroke-dashoffset: 1000; }
    to   { stroke-dashoffset: 0; }
}

.logo-rowe {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.logo-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 1.2s ease-out 0.6s forwards;
}

.logo-solutions {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.0s forwards;
}

/* Hero h1 Subtitle – gilt für alle Seiten */
.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
    margin: 2.5rem 0 2.5rem;
    color: white;
}

/* CTA-Button */
.cta-button {
    background-color: #ff6b6b;
    color: white;
    padding: 1rem 3rem;
    border: none;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ff5252;
    animation: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

/* Scroll-Pfeil */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 2s forwards;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.scroll-indicator:hover .scroll-arrow {
    transform: scale(1.15);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40%  { transform: translateY(-15px); }
    60%  { transform: translateY(-8px); }
}

/* About Section */
.about {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.profile-image {
    width: 100%;
    border: 3px solid #333;
    padding: 0.5rem;
    background: white;
    opacity: 0;
}

.profile-image.animate {
    animation: slideInFromLeft 0.8s ease-out forwards;
}

.profile-image img {
    width: 100%;
    display: block;
}

.about-content {
    opacity: 0;
}

.about-content.animate {
    animation: slideInFromRight 0.8s ease-out forwards;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-content h3 {
    color: #29456d;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.about-content h4 {
    color: #4c759a;
    font-weight: 400;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-content p {
    line-height: 1.8;
}

/* Services Section */
.services {
    background-color: #f5f5f5;
    padding: 80px 5%;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
}

.services-header.animate {
    animation: scaleIn 0.6s ease-out forwards;
}

.services-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.services-header p {
    color: #999;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

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

.service-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card.animate {
    animation: slideInFromBottom 0.6s ease-out forwards;
}

.service-card.animate:nth-child(1) { animation-delay: 0.1s; }
.service-card.animate:nth-child(2) { animation-delay: 0.2s; }
.service-card.animate:nth-child(3) { animation-delay: 0.3s; }
.service-card.animate:nth-child(4) { animation-delay: 0.4s; }
.service-card.animate:nth-child(5) { animation-delay: 0.5s; }
.service-card.animate:nth-child(6) { animation-delay: 0.6s; }
.service-card.animate:nth-child(7) { animation-delay: 0.7s; }
.service-card.animate:nth-child(8) { animation-delay: 0.8s; }

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4c759a 0%, #29456d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive: index.php */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.4rem;
        letter-spacing: 0.08em;
    }

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

    .hero-logo svg {
        max-width: 350px;
    }

    .profile-image.animate,
    .about-content.animate {
        animation: slideInFromBottom 0.6s ease-out forwards;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-arrow {
        width: 55px;
        height: 55px;
        border-width: 3px;
    }

    .scroll-arrow svg {
        width: 28px;
        height: 28px;
    }
}

/* ================================================
   WEBDESIGN.PHP
   ================================================ */

/* Gemeinsamer Unterseiten-Hero (Webdesign, Kontakt, Impressum, Datenschutz) */
.hero-page {
    padding: 120px 5% 50px;
}

.hero-webdesign {
    background: linear-gradient(135deg, #29456d 0%, #4c759a 100%);
    color: white;
    text-align: center;
    padding: 120px 5% 50px;
    margin-top: 60px;
}

/* .hero-webdesign h1 entfernt – Styling läuft über .hero-subtitle */

/* Auf der Startseite ist das Logo das Haupt-Element – Subtitle dort kleiner */
.hero-logo + .hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    animation-delay: 1.5s;
    color: rgba(255, 255, 255, 0.85);
}

.projects-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.projects-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.projects-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1201px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(41, 69, 109, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 0;
    position: relative;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #29456d 0%, #4c759a 50%, #29456d 100%) border-box;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 40px rgba(41, 69, 109, 0.3);
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #4c759a 0%, #29456d 25%, #4c759a 50%, #29456d 75%, #4c759a 100%) border-box;
}

.project-card.animate {
    animation: slideInFromBottom 0.6s ease-out forwards;
}

.project-card.animate:nth-child(1)  { animation-delay: 0.1s; }
.project-card.animate:nth-child(2)  { animation-delay: 0.2s; }
.project-card.animate:nth-child(3)  { animation-delay: 0.3s; }
.project-card.animate:nth-child(4)  { animation-delay: 0.4s; }
.project-card.animate:nth-child(5)  { animation-delay: 0.5s; }
.project-card.animate:nth-child(6)  { animation-delay: 0.6s; }
.project-card.animate:nth-child(7)  { animation-delay: 0.7s; }
.project-card.animate:nth-child(8)  { animation-delay: 0.8s; }
.project-card.animate:nth-child(9)  { animation-delay: 0.9s; }
.project-card.animate:nth-child(10) { animation-delay: 1.0s; }
.project-card.animate:nth-child(11) { animation-delay: 1.1s; }

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-info {
    padding: 1.8rem;
    text-align: center;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #29456d;
    font-weight: 700;
    word-wrap: break-word;
}

.project-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-block {
    background: white;
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-content h4 {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.feature-content p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.feature-image {
    width: 100%;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive: webdesign.php */
@media (max-width: 768px) {
    .feature-block {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ================================================
   KONTAKT.PHP
   ================================================ */

.content {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 5%;
}

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

.contact-info {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-info h2 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.info-text {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.info-text strong {
    display: block;
    margin-top: 1rem;
}

.opening-hours {
    margin-top: 2.5rem;
}

.opening-hours h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.opening-hours p {
    margin: 0.5rem 0;
}

.opening-hours p + p {
    margin-top: 1rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #29456d;
}

.contact-card-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.contact-card-address p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.contact-card-address p + p {
    margin-top: 0.3rem;
}

.contact-card-logo img {
    max-width: 120px;
    height: auto;
    display: block;
}

.contact-card-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #29456d;
}

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

.contact-method-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-method-icon {
    font-size: 1.5rem;
}

.contact-method-text strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #29456d;
}

.contact-method-text a {
    color: #4c759a;
    text-decoration: none;
}

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

.contact-method-whatsapp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.contact-method-whatsapp-left {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1;
}

.contact-method-qr img {
    max-width: 80px;
    width: 80px;
    height: auto;
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px;
    background: white;
}

.datenschutz-link {
    font-size: 0.85rem;
    color: var(--color-text-medium);
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.datenschutz-link:hover {
    color: var(--color-text-dark);
    text-decoration: underline;
}

.voicemail-hint {
    font-size: 0.9rem;
    color: #666;
}

.callback-section {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.callback-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.callback-text {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #555;
}

.callback-text p + p {
    margin-top: 1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4c759a;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    min-height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group label a {
    color: #29456d;
    text-decoration: underline;
}

.submit-button {
    background-color: #29456d;
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-self: start;
    grid-column: 1 / -1;
}

.submit-button:hover {
    background-color: #4c759a;
}

.success-message {
    background-color: #2ecc71;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Inline-Fehlermeldungen */
.field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 500;
}

.field-error-full {
    grid-column: 1 / -1;
    margin-top: -0.5rem;
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

.form-group input.input-error:focus,
.form-group textarea.input-error:focus {
    border-color: #c0392b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.checkbox-error label {
    color: #e74c3c;
}

/* Responsive: kontakt.php */
@media (max-width: 768px) {
    .content {
        padding: 0 0.75rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-card,
    .callback-section {
        padding: 2rem 1rem;
    }

    .checkbox-group {
        align-items: flex-start;
    }

    .checkbox-group input[type="checkbox"] {
        min-width: 24px;
        min-height: 24px;
        flex-shrink: 0;
    }

    .checkbox-group label {
        font-size: 0.95rem;
    }
}

/* ================================================
   IMPRESSUM.PHP & DATENSCHUTZ.PHP
   ================================================ */

.legal-page {
    background-color: #f5f5f5;
}

.legal-content {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 5%;
}

.impressum-box,
.datenschutz-box {
    background: white;
    padding: 3rem 4rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.impressum-box h2,
.datenschutz-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #29456d;
    border-bottom: 2px solid #4c759a;
    padding-bottom: 0.5rem;
}

.impressum-box h3,
.datenschutz-box h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #29456d;
}

.impressum-box p,
.datenschutz-box p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.datenschutz-box ul {
    line-height: 1.8;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.impressum-box strong,
.datenschutz-box strong {
    color: #29456d;
}

.impressum-box a,
.datenschutz-box a {
    color: #4c759a;
    text-decoration: none;
}

.impressum-box a:hover,
.datenschutz-box a:hover {
    text-decoration: underline;
}

.highlight-box {
    background: #f0f4f8;
    padding: 1.5rem;
    border-left: 4px solid #4c759a;
    margin: 1.5rem 0;
}

.highlight-box-green {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.highlight-box ul {
    margin: 0.5rem 0 0 1rem;
}

.highlight-box p {
    margin: 0.5rem 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.legal-source {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #666;
}

.legal-uppercase {
    text-transform: uppercase;
    font-weight: bold;
}

/* Responsive: impressum.php & datenschutz.php */
@media (max-width: 768px) {
    .impressum-box,
    .datenschutz-box {
        padding: 2rem 1.5rem;
    }
}

/* ================================================
   404.PHP
   ================================================ */

.error-container {
    max-width: 700px;
    margin: 120px auto 80px;
    padding: 0 5%;
    text-align: center;
}

.page-404-code {
    font-size: 9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
    letter-spacing: -4px;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out 0.2s forwards;
}

.page-404-title {
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin: 1rem 0 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.page-404-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin: 0 auto 2rem;
    border-radius: 2px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.5s forwards;
}

.page-404-message {
    font-size: 1.05rem;
    color: var(--color-text-medium);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.page-404-illustration {
    margin: 2rem auto 3rem;
    max-width: 320px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
}

.page-404-illustration svg {
    width: 100%;
    height: auto;
}

.page-404-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.9s forwards;
}

.page-404-link {
    background-color: var(--color-primary);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.page-404-link:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 69, 109, 0.25);
}

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

.page-404-link.secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* Responsive: 404.php */
@media (max-width: 768px) {
    .page-404-code {
        font-size: 6rem;
        letter-spacing: -2px;
    }

    .page-404-title {
        font-size: 1.4rem;
    }

    .page-404-links {
        flex-direction: column;
        align-items: center;
    }

    .page-404-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
