/* Variablen für Farbschema und Typografie */
:root {
    --primary-color: #0085CA;      /* LYTIQ Blau */
    --primary-dark: #006ba1;       /* Dunklere Variante für Hover-Effekte */
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --white: #ffffff;
    --section-padding: 4rem 0;
    --container-padding: 0 1.5rem;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Grundlegende Typografie und Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Container für zentrierte Inhalte */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Header-Styling */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo img {
    height: auto;
    max-width: 150px;
}

.tagline {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 0.3rem;
}

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

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

.contact-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: var(--primary-dark);
}

/* Hero-Bereich für die Startseite */
.hero {
    background-color: var(--light-gray);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

/* Sektionen */
section {
    padding: var(--section-padding);
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

/* Karten für Services und Erfolgsgeschichten */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

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

.card-content {
    padding: 1.5rem;
}

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

/* Features für "Warum LYTIQ?" Sektion */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

/* Kontakt-Sektion */
.contact-us {
    text-align: center;
    background-color: var(--light-gray);
}

.text-center {
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Erfolgsgeschichten-Seite */
.success-story {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 2rem;
}

.success-story:last-child {
    border-bottom: none;
}

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

.success-story.text-center h2,
.success-story.text-center h3,
.success-story.text-center p {
    text-align: center;
}

ul.text-center {
    text-align: center;
    list-style-position: inside;
}

/* Footer-Styling */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 3rem 0 2rem;
}

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

footer a:hover {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Listen und Text */
ul:not(nav ul), ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.no-bullets {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

p, ul, ol {
    margin-bottom: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Buttons und Links */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.3s;
}

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

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

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

a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        gap: 1.25rem;
    }

    header .container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons, .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .card-grid, .features {
        grid-template-columns: 1fr;
    }
}

/* E-Mail-Adressen-Schutz */
.email-protected {
    unicode-bidi: bidi-override;
    direction: rtl;
}

/* Gradient Background Styles */
.hero-with-bg {
    position: relative;
    color: var(--white);
    z-index: 1;
    padding: 6rem 0;
}

.hero-with-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-with-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 30, 0.4), rgba(0, 0, 30, 0.2));
    z-index: -1;
}

/* Home page hero with curved gradient (Image 3) */
.home-hero-bg::before {
    background-image: url('../img/blue-gradient-3.jpg');
}

/* Success stories hero with gentle gradient (Image 2) */
.success-hero-bg::before {
    background-image: url('../img/blue-gradient-2.jpg');
}

/* Section divider with gradient */
.gradient-divider {
    height: 120px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.gradient-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/blue-gradient-1.jpg');
    background-size: cover;
    background-position: center;
    transform: scaleY(-1); /* Flip the image for variety */
}

/* Card with gradient background */
.card-with-bg {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.card-with-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/blue-gradient-1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    opacity: 0.9;
    z-index: -1;
}

.card-with-bg h3 {
    color: var(--white);
}

/* For cards with gradient backgrounds - improve text readability */
.card-with-bg .card-content {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Adjust the contact section for better contrast with gradient */
.contact-us.with-gradient {
    position: relative;
    z-index: 1;
    color: var(--white);
    background-color: transparent;
}

.contact-us.with-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/blue-gradient-2.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.contact-us.with-gradient::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 30, 0.5), rgba(0, 0, 30, 0.3));
    z-index: -1;
}

.contact-us.with-gradient .section-title {
    color: var(--white);
}

.contact-us.with-gradient .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.contact-us.with-gradient .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Create a parallax effect for the hero backgrounds */
@media (min-width: 768px) {
    .parallax-bg::before {
        background-attachment: fixed;
    }
}

/* Responsive adjustments for gradient backgrounds */
@media (max-width: 768px) {
    .hero-with-bg {
        padding: 4rem 0;
    }
    
    .gradient-divider {
        height: 80px;
    }
}

/* Dark mode adjustments for better contrast with gradient backgrounds */
@media (prefers-color-scheme: dark) {
    .hero-with-bg::after {
        background: linear-gradient(rgba(0, 0, 30, 0.6), rgba(0, 0, 30, 0.4));
    }
}

/* Base card style without background */
.card.hover-gradient {
    transition: all 0.3s ease;
}

/* Apply gradient background only on hover */
.card.hover-gradient:hover {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.card.hover-gradient:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/blue-gradient-1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    opacity: 0.9;
    z-index: -1;
}

.card.hover-gradient:hover h3 {
    color: var(--white);
}

.card.hover-gradient:hover .card-content {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Add hover gradient effect for feature boxes */
.feature.hover-gradient {
    transition: all 0.3s ease;
}

.feature.hover-gradient:hover {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.feature.hover-gradient:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/blue-gradient-1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    opacity: 0.9;
    z-index: -1;
}

.feature.hover-gradient:hover h3 {
    color: var(--white);
}

.feature.hover-gradient:hover p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* ---------- Company archive (2013–2025) ---------- */

/* Flat charcoal tab hanging from the top-right edge of the header */
header {
    padding-top: 1.75rem;
}

.archive-tab {
    position: absolute;
    top: 0;
    right: 1.5rem;
    background-color: #2b2b2b;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 0.4rem 0.8rem 0.45rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    white-space: nowrap;
}

.archive-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(0, 0, 30, 0.35);
    font-size: 0.85rem !important;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-with-bg h1 {
    color: var(--white);
    margin-top: 0.5rem;
}

.closure-note {
    font-weight: 600;
}

.lead {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.selected-work .container,
.history .container,
.about-site .container {
    max-width: 900px;
}

.selected-work h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.timeline {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    border-left: 3px solid var(--primary-color);
}

.timeline li {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.timeline h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.timeline .years {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer-line {
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.85;
}

footer {
    padding: 2rem 0;
}

@media (max-width: 480px) {
    .archive-tab {
        right: 1rem;
    }
}
