/*
 * Stildefinitionen für die Website „Holz und Mehr“
 *
 * Dieses Stylesheet legt Farben, Layout und responsives Design fest,
 * um eine moderne und einladende One‑Page‑Präsenz zu gestalten.
 */

/* Globale Variablen für Farben und Abstände */
:root {
    /* Primärfarbe: Dunkelblau (Markenfarbe) */
    --primary-color: #1c2d4a;

    /* Akzentfarbe: Gelb (Markenfarbe) - Sparsam einsetzen! */
    --accent-color: #ffd900;
    --accent-color-hover: #e6c500;

    /* Neutrale Farben für Modernität */
    --background-color: #ffffff;
    --section-bg-alt: #f8f9fa;
    /* Sehr helles Grau für Abwechslung */
    --text-color: #334155;
    /* Weicheres Schwarz für Text */
    --text-color-light: #64748b;
    /* Für weniger wichtige Texte */
    --white: #ffffff;

    /* Layout & Spacing */
    --container-width: 90%;
    --max-width: 1200px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Grundlegende Einstellungen */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0 0 1.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Container */
.container {
    width: var(--container-width);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 0.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 0.25rem 0.5rem;
    /* Reduced padding */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.logo a {
    display: block;
    line-height: 0;
}

.site-logo {
    height: 2rem;
    /* Restrict height to match text roughly */
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-speed);
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav a:hover,
.nav a:focus,
.nav a.current {
    color: var(--accent-color);
}

.nav a:hover::after,
.nav a:focus::after,
.nav a.current::after {
    width: 100%;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-color);
    transition: all var(--transition-speed);
    position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle .hamburger::before {
    top: -8px;
}

.nav-toggle .hamburger::after {
    top: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    color: var(--white);
    background-image: url("images/background.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(28, 45, 74, 0.8), rgba(28, 45, 74, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    outline: none;
    /* Ensure focus doesn't look ugly but is handled */
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--section-bg-alt);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: block;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
}

.quote-box {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--primary-color);
    color: var(--accent-color);
    border-left: 5px solid var(--accent-color);
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow-md);
    position: relative;
    /* Required for stretched link */
    transition: transform var(--transition-speed);
}

.quote-box:hover {
    transform: scale(1.02);
}

/* Stretched link overlay */
.quote-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* No text decoration or color needed as it is empty */
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
    /* Slightly adjusted for better fit */
    color: var(--primary-color);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.service-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color-light);
    flex-grow: 1;
}

.service-card .btn-small {
    margin: 0 1.5rem 1.5rem;
    align-self: flex-start;
}

/* Gallery */
.gallery-info {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color-light);
    font-style: italic;
}

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

.gallery-item {
    margin: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 45, 74, 0.9);
    color: var(--white);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform var(--transition-speed);
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-color-light);
}

.centered-contact {
    display: flex;
    justify-content: center;
}

.large-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent-color);
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    flex: 1 1 250px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--accent-color-hover);
}

/* Page Header (Subpages) */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    background-image: linear-gradient(rgba(28, 45, 74, 0.9), rgba(28, 45, 74, 0.8)), url("images/background.png");
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
}

.page-header .tagline {
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 500;
}

/* Career Section */
.career-highlight {
    background: var(--section-bg-alt);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem auto 0;
    position: relative;
    overflow: hidden;
    max-width: 800px;
}

.career-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.career-highlight h3 {
    color: var(--primary-color);
}

.benefits-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefits-list li::before {
    content: '✓';
    color: var(--accent-color-hover);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: 0;
    border-top: 4px solid var(--accent-color);
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-nav {
    margin-top: 1rem;
}

.footer-nav a {
    color: var(--white);
    margin: 0 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-speed);
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

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

    .about-layout {
        flex-direction: column;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .large-details {
        padding: 1.5rem;
    }

    .career-highlight h2 {
        font-size: 1.75rem;
        hyphens: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Utility */
.highlight {
    color: var(--accent-color-hover);
    font-weight: 700;
}

section[id] {
    scroll-margin-top: 80px;
}