/* Local Fonts - GDPR compliant */
@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/fira-sans-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/fira-sans-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/fira-sans-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/fira-sans-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/fira-sans-800.woff2') format('woff2');
}

/* Design System & Variables */
:root {
    /* Colors */
    --primary-color: #391445;
    /* Aubergine */
    --secondary-color: #76F013;
    /* Grün */
    --accent-color: #2D47ED;
    /* Blau */
    --text-color: #425466;
    /* Slate Grey for text */
    --heading-color: #391445;
    /* Aubergine for headings */
    --background-color: #ffffff;
    --light-bg: #f6f9fc;
    /* Very light blue-grey for sections */
    --white: #ffffff;

    /* Typography */
    --font-main: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 80px;
    /* Offset for fixed navbar */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

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

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

ul {
    list-style: none;
    font-size: 1.125rem;
}

li {
    font-size: inherit;
}

blockquote {
    font-size: 1.125rem;
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

#eye-method {
    scroll-margin-top: 150px;
}

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

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Padding Utility */
.mobile-padding {
    padding: var(--spacing-md);
}

@media (min-width: 768px) {
    .mobile-padding {
        padding: var(--spacing-md) 0;
    }
}

/* Components */

/* Navbar */
.navbar {
    padding: var(--spacing-sm) 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    filter: saturate(0.7) opacity(0.9);
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: saturate(1) opacity(1);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 300px;
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: radial-gradient(circle at top right, var(--light-bg), var(--white));
    display: flex;
    align-items: center;
}

/* Semi-transparent overlay for background images */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto;
    color: var(--heading-color);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.5rem;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: #2a0e33;
    /* Darker Aubergine */
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

/* Cards */
.card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
}

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

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.copyright {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Blog List - spacing handled by grid gap */

.blog-meta {
    font-size: 0.875rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
}

/* Article Meta (publication date) */
.article-meta {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: var(--spacing-sm);
}

.article-meta time {
    font-weight: 500;
    color: var(--primary-color);
}

.article-meta .meta-separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Article Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Reduce spacing between hero and content section on blog/article pages */
.hero+.section {
    padding-top: var(--spacing-md);
}

.article-content h2 {
    margin-top: var(--spacing-sm);
}

.article-content ul {
    list-style: disc;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: var(--heading-color);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-xs);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--heading-color);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(57, 20, 69, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

/* Custom Select Styling */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23391445' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.select-wrapper:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

.btn-block {
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: var(--spacing-sm) 0;
    background-color: var(--light-bg);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--text-color);
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

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

.breadcrumb li[aria-current="page"] {
    color: var(--primary-color);
    font-weight: 500;
}