:root {
    /* Brand Colors */
    --color-orange: #E35205;
    --color-gold: #C69214;
    --color-green: #007A33;
    --color-bg: #F9F8F5;
    --color-text: #1A1A1A;

    /* Fonts */
    --font-serif: 'Lora', serif;
    --font-sans: 'Source Sans Pro', sans-serif;
}

/* Global Reset overrides / Bulma Customization */
body,
html {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Headings and Markdown Content */
.title {
    font-family: var(--font-serif) !important;
    font-weight: 400 !important;
    color: var(--color-text) !important;
}

/* Base styles for markdown elements inside main, as Bulma resets them by default */
.is-subpage main h1,
.is-subpage main h2,
.is-subpage main h3,
.is-subpage main h4,
.is-subpage main h5,
.is-subpage main h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.is-subpage main h1 {
    font-size: 2.5rem;
    margin-top: 0.5em;
    /* Top level heading doesn't need huge top margin */
    border-bottom: 3px solid var(--color-gold);
    padding-bottom: 0.5rem;
}

.is-subpage main h2 {
    font-size: 2rem;
    border-bottom: 1px solid rgba(198, 146, 20, 0.4);
    /* subtle gold line */
    padding-bottom: 0.3rem;
}

.is-subpage main h3 {
    font-size: 1.5rem;
}

.is-subpage main h4 {
    font-size: 1.25rem;
}

.is-subpage main h5 {
    font-size: 1.1rem;
}

.is-subpage main h6 {
    font-size: 1rem;
    font-weight: 600;
}

.is-subpage main p {
    margin-bottom: 1.25rem;
}

.is-subpage main ul,
.is-subpage main ol {
    margin-bottom: 1.25rem;
    margin-left: 2rem;
}

.is-subpage main ul {
    list-style-type: disc;
}

.is-subpage main ol {
    list-style-type: decimal;
}

.is-subpage main li {
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: var(--color-gold);
    transition: color 0.2s ease;
}

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

/* Navbar */
.navbar {
    background-color: transparent !important;
    border-bottom: 2px solid rgba(198, 146, 20, 0.3) !important;
    /* REQUEST: Gold border */
}

/* Brand logo size override */
.navbar-brand img {
    max-height: 2.5rem !important;
}

.navbar-item,
.navbar-link {
    font-family: var(--font-sans);
    font-weight: 300 !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--color-text) !important;
}

.navbar-item:hover,
.navbar-link:hover {
    color: var(--color-gold) !important;
    background-color: transparent !important;
}

/* Utilities */
.has-text-orange {
    color: var(--color-orange) !important;
}

.has-text-gold {
    color: var(--color-gold) !important;
}

.has-text-green {
    color: var(--color-green) !important;
}

.is-serif {
    font-family: var(--font-serif) !important;
}

.has-text-primary {
    color: var(--color-orange) !important;
}

/* Custom helpers (minimal) */
.is-underlined-gold {
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.has-gold-shadow {
    box-shadow: 10px 10px 0 var(--color-gold);
    border-radius: 4px;
}

.is-width-200 {
    max-width: 200px;
}

/* NEW: Hero Styles from Institutional Mockup */
/* NEW: Hero Styles from Institutional Mockup */
.hero-wrapper {
    padding: 3rem 1.5rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Background removed here, moved to pseudo-elements to allow masking without affecting text */
}

/* 1. Background Spotlights (Orange/Gold) */
/* 1. Background Spotlights (Orange/Gold) - Dispersed on the right */
.hero-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Dispersed spots of color: Green, Gold, Orange (Left to Right) */
    background-image:
        radial-gradient(circle at 20% 60%, rgba(0, 122, 51, 0.12) 0%, transparent 40%),
        /* Left: Green */
        radial-gradient(circle at 60% 40%, rgba(198, 146, 20, 0.15) 0%, transparent 40%),
        /* Center: Gold */
        radial-gradient(circle at 80% 50%, rgba(227, 82, 5, 0.12) 0%, transparent 40%);
    /* Right: Orange */

    /* Fade out edges to prevent any edge visibility */
    mask-image: radial-gradient(ellipse at center, black 50%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 80%);
    pointer-events: none;
    filter: blur(40px);
    /* Very soft blur */
}

/* 2. Subtle dot pattern overlay */
.hero-wrapper::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 150%;
    height: 200%;
    background-image: radial-gradient(rgba(198, 146, 20, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Spread out more */
    transform: rotate(-15deg);
    opacity: 0.3;
    /* More visible */
    z-index: 0;
    pointer-events: none;

    /* Fade out dots at edges too */
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-wrapper .container {
    position: relative;
    z-index: 1;
}

.display-text {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    line-height: 1.25;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-gold);
    padding-left: 2rem;
    color: var(--color-text);
}

.display-text span {
    font-style: italic;
    color: var(--color-gold);
}

.hero-lead {
    font-size: 1.15rem;
    max-width: 700px;
    color: #555;
    /* Slightly muted */
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-image-accent {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: -15px 15px 0 rgba(198, 146, 20, 0.15), 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.75rem 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-gold);
    color: #fff;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 3rem 1.5rem;
    border-top: 2px solid var(--color-gold);
    font-weight: 300;
}

/* Component overrides to ensure brand consistency */
.service-item {
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

#mission p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.mission-box {
    border-left: 2px solid var(--color-gold);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: 3rem;
    /* Indent the whole box (border included) */
    margin-right: 3rem;
    margin-top: 1rem;
    color: #666;
}

/* Constrain the image in the section following mission (sustainability image) */
.is-restricted-width {
    max-width: 80%;
    /* Make it smaller */
    margin: 0 auto;
    /* Center it */
}

/* Team Images: Only apply rounded corners and cover fit. 
   LET BULMA HANDLE THE ASPECT RATIO via .is-square on the figure. 
   Do NOT set aspect-ratio here to avoid conflicts. */
.team-image,
.image.is-square img {
    object-fit: cover !important;
    border-radius: 24px !important;
}

/* Responsive Tweaks */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--color-bg);
        box-shadow: none;
        display: none !important;
        /* REQUEST: Hide menu on mobile */
    }

    .footer .column,
    .footer .has-text-right-tablet {
        text-align: center !important;
        margin-bottom: 2rem;
        /* REQUEST: More consistent whitespace */
    }

    /* Move Impressum/Datenschutz to bottom */
    .footer .is-flex {
        order: 5;
        width: 100%;
        margin-top: 1rem;
    }

    .footer .columns {
        display: flex;
        flex-direction: column;
    }

    /* Ensure the last column (address block) goes before the legal links div? 
       Actually, just moving the legal links visually or structurally. 
       Adjusting order via flexbox since we made columns flex-direction column. 
       The legal links are INSIDE the last column. 
       So we need to target that specific div. */

    .footer .column:last-child {
        margin-bottom: 0;
    }

    .display-text {
        font-size: 2rem;
        border-left: none;
        /* Remove border on mobile if it looks tight */
        padding-left: 0;
        border-left: 3px solid var(--color-gold);
        /* Keep it but smaller? Or remove padding */
        padding-left: 1rem;
    }
}