/*
* style.css
* Haupt-Stylesheet für die Consultia-Website
*/

/* -------------------------------------------------- */
/* 1. CSS-Variablen und grundlegende Stile
/* -------------------------------------------------- */

:root {
    --color-background: #0d1117;
    --color-background-light: #f8f9fa;
    --color-text: #c9d1d9;
    --color-text-dark: #343a40;
    --color-heading: #ffffff;
    --color-primary: #3b82f6; /* Lebhaftes Blau */
    --color-primary-hover: #2563eb;
    --color-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    --header-height: 80px;
    --border-radius: 12px;
}

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

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

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Spezialstile für statische Seiten */
body.static-page {
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
}

body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-background), #1a1a2e);
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* -------------------------------------------------- */
/* 2. Typografie
/* -------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-heading);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4,
.static-page h1, .static-page h2, .static-page h3, .static-page h4 {
    color: var(--color-text-dark);
    text-shadow: none;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 75ch;
}

/* -------------------------------------------------- */
/* 3. Layout und Container
/* -------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
}

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

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.column {
    flex: 1;
}

.is-two-thirds {
    flex: 2;
}



/* -------------------------------------------------- */
/* 4. Komponenten
/* -------------------------------------------------- */

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0 1rem;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-heading);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-heading);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-heading);
    transition: all 0.3s ease-in-out;
}

/* Knöpfe */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Karten */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.section-light .card {
    background: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-image {
    margin-bottom: 1.5rem;
    border-radius: calc(var(--border-radius) - 2px);
    overflow: hidden;
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-top: 0;
}

.card-content cite {
    margin-top: auto;
    font-style: italic;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* Formulare */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--color-text);
    opacity: 0.7;
    transition: all 0.2s ease-out;
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background-color: var(--color-background);
    padding: 0 0.3rem;
    color: var(--color-primary);
    opacity: 1;
}

.btn-submit {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #080a0e;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

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

.footer-column h4 {
    color: var(--color-heading);
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

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

.footer-column ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: rgba(201, 209, 217, 0.7);
}

/* -------------------------------------------------- */
/* 5. Sektionsspezifische Stile
/* -------------------------------------------------- */

/* Hero Sektion */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 17, 23, 1) 0%, rgba(13, 17, 23, 0.5) 50%, rgba(13, 17, 23, 0.3) 100%);
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #FFFFFF;
    margin: 1.5rem auto 2.5rem;
    max-width: 600px;
}

/* Über uns Sektion */
#about .image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Prozess Sektion */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-card {
    text-align: center;
    position: relative;
}

.process-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 4px solid var(--color-background-light);
}

.process-card .card-content {
    padding-top: 2rem;
}

/* Erfolgsgeschichten Sektion */
.success-card {
    text-align: left;
}

/* Ressourcen Sektion */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.resource-card h3 {
    font-size: 1.2rem;
}
.resource-card a {
    color: var(--color-text-dark);
}
.resource-card a:hover {
    color: var(--color-primary);
}
.resource-card p {
    font-size: 0.9rem;
}

/* Kontakt Sektion */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-background);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

/* -------------------------------------------------- */
/* 6. Animationen

/* -------------------------------------------------- */
/* 7. Responsive Design
/* -------------------------------------------------- */
@media (max-width: 992px) {
    .columns, .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .column.is-two-thirds {
        flex: none;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .section {
        padding: 3rem 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }
}

.card-content p {
  max-width: 100%;
}

.intro-text {
  max-width: 100%;
}

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

.section-title {
  word-break: break-word;
}