/* Markenfarben: Logo-Gold + Farben passend zu den Tätigkeiten */
:root {
    --gold: #c5a059;
    --gold-dark: #9a7a35;
    --ink: #1a1a1a;
    --muted: #5a5a5a;
    --bg: #ffffff;
    --bg-soft: #f4f5f4;
    --surface: #ffffff;
    --border: #e2e5e2;
    /* Immobilien: ruhiges Schieferblau */
    --immobilien: #c5a059;
    --immobilien-soft: #f7f1e4;
/* Agrar: Marken-Gold für Kästen und Akzente */
    --agrar: #c5a059;
    --agrar-soft: #f7f1e4;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --font-size-body: 1rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
}

/* Globale Stile */
body{
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    background-color: var(--bg);
    color: var(--ink);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-align: left;
}

p, li, label, input, select, textarea, .content-lead, .partner-lead,
.partner-track-text, .partner-track-scope, .trust-stat-label,
.site-footer-desc, .site-footer-col--contact p, .agrar-expand-text,
.home-lead, .legal-doc p, .legal-intro, .coop-steps span {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
}

h1, h2, h3,
.placeholder-page h1,
.content-page h1,
.page-header h1,
.home-slider-overlay h1,
.home-section-title,
.section-intro h2,
.about-simple .home-section-title,
.partner-hero h1,
.partner-process-inner h2,
.partner-track-card h2,
.topic-block h2,
.business-panel h3,
.contact-page .page-header h1,
.legal-doc h2,
.coop-card h2,
.coop-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1,
.placeholder-page h1,
.content-page h1,
.page-header h1,
.home-slider-overlay h1,
.partner-hero h1,
.contact-page .page-header h1,
.about-simple .home-section-title {
    font-size: var(--font-size-h1);
    line-height: 1.25;
}

h2,
.home-section-title,
.section-intro h2,
.partner-process-inner h2,
.partner-track-card h2,
.topic-block h2,
.legal-doc h2,
.coop-card h2 {
    font-size: var(--font-size-h2);
    line-height: 1.3;
}

h3,
.business-panel h3,
.coop-card h3 {
    font-size: var(--font-size-h3);
    line-height: 1.35;
}

/* Links */
a.nav-link,
button.nav-link {
    text-decoration: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s ease, background 0.2s ease;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 2px;
}

/* Hover / Aktiv: Gold-Markierung für alle Menüpunkte */
a.nav-link:hover,
button.nav-link:hover,
.nav-item.is-open > .nav-link,
.nav-item:hover > .nav-link {
    background: var(--gold);
    color: #fff;
    text-decoration: none;
}

a.nav-link.is-active,
button.nav-link.is-active,
.nav-item.is-active > .nav-link {
    background: var(--gold);
    color: #fff;
}

a.nav-link.is-active:hover,
button.nav-link.is-active:hover,
.nav-item.is-active:hover > .nav-link {
    background: var(--gold-dark);
    color: #fff;
}

a:focus,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Buttons – Firmenstil (Gold / Outline) */
.btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.btn-outline--immobilien {
    border-color: var(--immobilien);
    color: var(--immobilien);
}

.btn-outline--immobilien:hover {
    background: var(--immobilien);
    color: #fff;
}

.btn-outline--agrar {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.btn-outline--agrar:hover {
    background: var(--gold);
    color: #fff;
}

.button,
.sort-button{
    display: inline-block;
    padding: 10px 18px;
    background-color: var(--gold);
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.2s ease;
    text-decoration: none;
}

.button:hover,
.sort-button:hover{
    filter: brightness(0.95);
}




/* Flash-Nachrichten */
.flash-messages {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.flash-message{
    border-radius: 4px;
    padding: 10px 14px;
    border: 1px solid transparent;
    font-size: 14px;
}

.flash-message.success{
    background: #eef6f0;
    color: #1f3d2b;
    border-color: #b7dfc1;
    border-left: 4px solid #2e7d32;
}

.flash-message.error{
    background: #fbefef;
    color: #5b1f1f;
    border-color: #f0c6c6;
    border-left: 4px solid #b00020;
}




/* Eingabefelder */
input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.45);
}

/* Header & Navigation */
.site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Nach-oben-Button: fest am Bildschirm */
.site-top-bar {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 110;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.site-top-bar[hidden] {
    display: none !important;
}

.site-top {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #d4af37;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-top:hover,
.site-top:focus-visible {
    background: #c49a2a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
    outline: none;
}

.site-top-chevron {
    display: block;
    width: 12px;
    height: 12px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 4px;
}

.site-top-label {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    text-align: center;
    max-width: 4.6rem;
}

html[dir="rtl"] .site-top-bar {
    left: auto;
    right: 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    background-color: transparent;
    box-shadow: none;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 124px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 120;
}

.nav-item.is-open .nav-dropdown,
.nav-item:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 10px 18px;
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a.is-active {
    background: var(--gold);
    color: #fff;
    font-weight: 600;
}

/* Sprachwahl mit Flagge + Name (wie Referenz) */
.lang-switch {
    margin-inline-start: 8px;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #444 !important;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    min-width: 0;
    padding-inline: 0.35rem;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus-visible {
    color: #222 !important;
}

.lang-name {
    font-weight: 600;
    color: #444;
}

.lang-flag {
    display: inline-block;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.lang-flag--de {
    background: linear-gradient(
        to bottom,
        #000 0 33.33%,
        #dd0000 33.33% 66.66%,
        #ffce00 66.66% 100%
    );
}

.lang-flag--en {
    background:
        linear-gradient(to bottom, #012169 0%, #012169 100%);
    position: relative;
    overflow: hidden;
}

.lang-flag--en::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 40%, #fff 40% 60%, transparent 60%),
        linear-gradient(to right, transparent 40%, #fff 40% 60%, transparent 60%),
        linear-gradient(to bottom, transparent 42%, #c8102e 42% 58%, transparent 58%),
        linear-gradient(to right, transparent 42%, #c8102e 42% 58%, transparent 58%);
}

.lang-flag--ar {
    background: linear-gradient(
        to bottom,
        #007a3d 0 33.33%,
        #fff 33.33% 66.66%,
        #000 66.66% 100%
    );
}

.lang-flag--zh {
    background: #de2910;
    position: relative;
}

.lang-flag--zh::before {
    content: "★";
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-55%);
    color: #ffde00;
    font-size: 9px;
    line-height: 1;
}

.lang-dropdown {
    min-width: 150px;
    left: auto;
    right: 0;
    padding: 0.35rem 0;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem;
    color: #444;
    font-weight: 500;
}

.lang-dropdown a:hover,
.lang-dropdown a.is-active {
    background: #f4f5f4;
    color: #222;
    font-weight: 600;
}

.lang-dropdown a.is-active {
    box-shadow: inset 3px 0 0 var(--agrar);
}

html[dir="rtl"] .lang-dropdown a.is-active {
    box-shadow: inset -3px 0 0 var(--agrar);
}

/* Arabisch: Leserichtung von rechts nach links */
html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .home-slider-overlay,
html[dir="rtl"] .section-intro,
html[dir="rtl"] .page-header {
    text-align: right;
}

html[dir="rtl"] .home-slider-overlay {
    left: auto;
    right: 0;
    align-items: flex-end;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.8) 65%, rgba(255, 255, 255, 0) 100%);
}

html[dir="rtl"] .home-contact-band {
    justify-content: flex-start;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
}

/* Seitenrahmen – ruhig, wenig „Kasten-Chaos“ */
.page-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.page-shell--wide {
    max-width: 720px;
}

.site-main {
    padding: 0;
    max-width: none;
    background: transparent;
    border: none;
}

.container,
.form-container,
.profile-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 28px;
    background-color: #fff;
    border: 1px solid #e6eaee;
    border-radius: 6px;
    box-shadow: none;
    text-align: left;
}


.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* ===== Einheitlicher Site-Footer ===== */
.site-footer {
    margin-top: 48px;
    font-family: var(--font-body);
}

.site-footer-main {
    background: var(--gold);
    color: #fff;
    padding: 2.25rem 1.25rem;
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .site-footer-inner {
        grid-template-columns: 1.25fr 0.9fr;
        gap: 3rem;
        align-items: start;
    }
}

.site-footer-company {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.site-footer-desc {
    margin: 0;
    max-width: 36rem;
    font-size: var(--font-size-body);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer-col--contact p {
    margin: 0 0 0.55rem;
    font-size: var(--font-size-body);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
}

.site-footer-col--contact strong {
    display: inline-block;
    min-width: 4.5rem;
    margin-inline-end: 0.35rem;
    font-weight: 700;
}

.site-footer-col--contact a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.site-footer-col--contact a:hover,
.site-footer-col--contact a:focus-visible {
    color: #fff8e7;
    outline: none;
}

.site-footer-address {
    margin-bottom: 0.85rem !important;
}

.site-footer-bar {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
}

.site-footer-bar-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer-copy {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
}

.site-footer-legal a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.site-footer-legal a:hover,
.site-footer-legal a:focus-visible {
    color: var(--gold-dark);
    outline: none;
}

.site-footer-sep {
    color: #b0b0b0;
}

html[dir="rtl"] .site-footer-col--contact strong {
    min-width: 0;
    margin-inline-end: 0.5rem;
}

/* Platzhalter- / Inhaltsseiten */
.placeholder-page,
.content-page {
    max-width: 720px;
}

.placeholder-page h1,
.content-page h1,
.page-header h1 {
    margin-top: 0;
    color: var(--ink);
    font-size: var(--font-size-h1);
    font-weight: 600;
}

.accent-line {
    width: 64px;
    height: 3px;
    background: var(--gold);
    border: none;
    margin: 0 0 20px;
}

.accent-line--agrar { background: var(--gold); }

.content-page--wide {
    max-width: 960px;
}

.content-lead {
    font-size: var(--font-size-body);
    color: var(--muted);
    max-width: 40rem;
}

/* ===== Über uns: Foto einfach über dem Text ===== */
.about-simple {
    max-width: 900px;
}

/* Foto etwas breiter, aber nicht die ganze Textbreite */
.about-photo {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    margin: 0 auto 28px;
    border-radius: 6px;
}

.about-simple p {
    margin: 0 0 1.15em;
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-simple .inline-links {
    margin-top: 28px;
}

.content-subheading {
    margin: 32px 0 10px;
    font-size: 1.35rem;
    color: var(--ink);
}

.content-cta {
    margin-top: 36px;
}

/* Agrarfoto – Originalverhältnis, ohne Zuschneiden */
.agrar-photo {
    margin: 32px 0 40px;
}

.agrar-photo img {
    display: block;
    width: auto;
    max-width: min(100%, 1009px);
    height: auto;
    margin: 0 auto;
}

.agrar-photo figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}

/* Themenblöcke – übersichtlich, nicht überladen */
.topic-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.topic-block {
    padding: 22px 20px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    background: #fff;
}

.topic-blocks--immobilien .topic-block {
    border-left-color: var(--immobilien);
}

.topic-block--full {
    grid-column: 1 / -1;
}

.topic-block h2 {
    margin: 0 0 10px;
    font-size: var(--font-size-h2);
}

.topic-block p {
    margin: 0;
    color: var(--muted);
}

.topic-block--expandable:has(.agrar-expand[open]) {
    grid-column: 1 / -1;
}

.topic-block-action {
    margin-top: 14px !important;
}

.agrar-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: var(--gold);
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s ease, filter 0.2s ease;
}

.agrar-link-btn::after {
    content: "→";
    font-size: 0.95em;
}

.agrar-link-btn:hover {
    background: var(--gold-dark);
    color: #fff;
}

.agrar-subpage .agrar-expand-text {
    margin: 0 0 24px !important;
    max-width: 46rem;
    color: var(--ink) !important;
    line-height: 1.65;
}

.agrar-subpage .content-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.agrar-expand-body {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.agrar-expand-text {
    margin: 0 0 18px !important;
    max-width: 40rem;
    line-height: 1.65;
    color: var(--ink) !important;
}

.agrar-photo-full {
    margin: 0 0 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #f4f5f4;
}

.agrar-photo-full img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* ganzes Foto sichtbar, kein Zuschnitt */
    object-fit: contain;
}

/* Foto-Animation auf Anbauflächen-Seite */
.agrar-mini-slider {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 8px auto 0;
    aspect-ratio: 16 / 10;
    max-height: 560px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #1a1a1a;
}

.agrar-mini-slider-track {
    position: absolute;
    inset: 0;
}

.agrar-mini-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.agrar-mini-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.agrar-mini-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.agrar-mini-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.agrar-mini-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.agrar-mini-dot.is-active {
    background: #fff;
}

.agrar-photo-grid {
    display: grid;
    gap: 22px;
    margin-top: 8px;
}

.agrar-photo-grid--anbau {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    gap: 28px;
}

.agrar-photo-grid .agrar-photo-full {
    margin: 0;
}

.agrar-photo-grid .agrar-photo-full img {
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    background: #1a1a1a;
}

.agrar-photo-grid--anbau .agrar-photo-full img {
    max-height: 720px;
    object-fit: cover;
    object-position: center;
}

.agrar-expand-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.agrar-expand-photos--large {
    gap: 20px;
}

.agrar-expand-photos figure {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #1a1a1a;
}

.agrar-expand-photos img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 560px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    /* etwas weiter nach vorne / in die Tiefe */
    object-position: center 32%;
}

@media (max-width: 700px) {
    .agrar-expand-photos {
        grid-template-columns: 1fr;
    }

    .agrar-expand-photos img {
        min-height: 220px;
        max-height: 380px;
    }
}

/* ===== Startseite: Slider + Über uns + Kontakt ===== */
.home-slider-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.home-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 320px;
    max-height: min(62vh, 640px);
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 0;
    box-shadow: none;
}

.home-slider-track {
    position: absolute;
    inset: 0;
}

.home-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.home-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.home-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: none;
}

.home-slider-overlay {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    width: min(56%, 640px);
    margin: 0;
    padding: 28px clamp(24px, 5vw, 56px) 48px;
    background: none;
}

.home-brand {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: calc(var(--font-size-h3) + 0.15rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #ffd76a;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.85),
        0 2px 10px rgba(0, 0, 0, 0.55);
}

.home-slider-overlay h1 {
    margin: 0 0 12px;
    font-size: var(--font-size-h1);
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.home-slider-overlay h1 strong,
.home-lead strong {
    font-weight: 700;
    color: #fff;
}

.home-lead {
    margin: 0;
    max-width: 36rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.65;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 3px rgba(0, 0, 0, 0.65);
}

.home-slider-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.home-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.home-dot.is-active {
    background: #fff;
}

.home-block {
    padding: 64px 24px;
}

.home-block--muted {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.home-block-inner {
    max-width: 900px;
    margin: 0 auto;
}

.home-block-inner--narrow {
    max-width: 720px;
}

.home-kicker {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
}

.home-section-title {
    margin: 0 0 12px;
    font-size: var(--font-size-h2);
}

.home-block-inner p {
    margin: 0 0 1.1em;
    line-height: 1.75;
    color: var(--ink);
}

.home-block-intro {
    color: var(--muted) !important;
    margin-bottom: 24px !important;
}

.home-block-actions {
    margin-top: 24px !important;
}

/* Vertrauen durch Erfahrung */
.trust-section .home-block-inner {
    max-width: 900px;
    text-align: center;
}

.trust-section .accent-line {
    margin-left: auto;
    margin-right: auto;
}

.trust-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .trust-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

.trust-stat {
    padding: 0.75rem 0.65rem;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    text-align: center;
}

.trust-stat-number {
    margin: 0 0 0.2rem !important;
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.trust-stat-label {
    margin: 0 !important;
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: 600;
    color: var(--muted) !important;
    line-height: 1.35;
}

.about-simple .home-section-title {
    font-size: var(--font-size-h1);
}

.home-section {
    padding: 72px 24px;
}

.home-section--muted {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.home-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-intro {
    margin-bottom: 36px;
    max-width: 36rem;
}

.section-intro h2 {
    margin: 0 0 10px;
    font-size: var(--font-size-h2);
}

.section-intro p {
    margin: 0;
    color: var(--muted);
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.business-panel {
    display: block;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.business-panel:hover {
    transform: translateY(-2px);
}


.business-panel--agrar {
    border-top-color: var(--agrar);
    background: linear-gradient(180deg, var(--agrar-soft) 0%, #fff 48%);
}

.business-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.business-panel h3 {
    margin: 0 0 12px;
    font-size: var(--font-size-h3);
}

.business-panel p {
    margin: 0 0 20px;
    color: var(--muted);
}

.business-link {
    font-weight: 600;
    font-size: 15px;
}

.business-panel--agrar .business-link { color: var(--agrar); }

.home-contact-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-contact-band h2 {
    margin: 0 0 8px;
}

.home-contact-band p {
    margin: 0;
    color: var(--muted);
}

/* Kontaktformular – übersichtlich und ruhig */
.page-shell--contact {
    max-width: 720px;
}

.contact-page .page-header {
    text-align: center;
    margin-bottom: 28px;
}

.contact-page .page-header h1 {
    margin-bottom: 10px;
    font-weight: 600;
}

.accent-line--center {
    margin-left: auto;
    margin-right: auto;
}

.contact-page .page-header p {
    color: var(--muted);
    max-width: 34rem;
    margin: 14px auto 0;
    line-height: 1.65;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 10px;
    padding: 36px 32px 28px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.contact-form .form-row {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #f7f7f7;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
    outline: none;
}

.form-row--check label {
    font-weight: 400;
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.form-row--check input {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-row--check a {
    color: var(--gold-dark);
}

.form-actions {
    margin-top: 8px;
}

.btn-contact {
    width: 100%;
    padding: 14px 22px;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.form-hint {
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 26px 18px 22px;
    }

    .about-photo {
        max-width: 100%;
    }
}

/* Seminar-Liste */
.seminar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.seminar-card {
    background-color: #fff;
    padding: 15px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: left;
}

.seminar-card h3 {
    margin: 0;
}

.seminar-card .status {
    font-weight: bold;
}

.detail-button {
    display: flex;
    margin-top: 10px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.detail-button:hover {
    background-color: #45a049;
}

.message {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    margin: 50px 0;
}

.message a {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 900px) {
    .business-grid,
    .topic-blocks {
        grid-template-columns: 1fr;
    }

    .topic-block--full {
        grid-column: auto;
    }

    .home-contact-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .agrar-photo img {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
    }

    .site-header {
        position: relative;
    }

    .site-header .nav-container {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links .nav-link,
    .nav-links .nav-dropdown-btn {
        width: 100%;
        padding: 12px 24px;
        border-top: 1px solid var(--border);
        justify-content: flex-start;
        text-align: left;
    }

    .nav-item:hover .nav-dropdown {
        display: none;
    }

    .nav-item.is-open .nav-dropdown {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        min-width: 0;
    }

    .nav-dropdown a {
        padding-left: 36px;
    }

    .logo img {
        height: 96px;
    }

    .home-slider-wrap {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .home-slider {
        aspect-ratio: 16 / 10;
        min-height: 240px;
        max-height: min(48vh, 420px);
        border-radius: 0;
    }

    .home-slider-overlay {
        width: 100%;
        padding: 20px 18px 44px;
        background: none;
    }

    .home-block {
        padding: 48px 20px;
    }

    .container,
    .form-container,
    .profile-container {
        padding: 16px;
    }
}
/* ===== Login-Seite ===== */

/* Hintergrund wie Portal */
.page-bg {
    background: #f3f5f7;
    min-height: calc(100vh - 80px);
    padding: 40px 12px;
}

/* Login-Box */
.login-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 28px 32px;
}

/* Überschrift */
.login-card h1 {
    font-size: 28px;
    margin-bottom: 18px;
}

/* Labels kompakter */
.login-card label {
    font-weight: 600;
    font-size: 14px;
    margin-top: 14px;
}

/* Eingabefelder etwas flacher */
.login-card input {
    height: 42px;
    font-size: 15px;
}

/* Login-Button */
.login-card .btn-login {
    margin-top: 18px;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 4px;
}

/* Linkbereich */
.login-links {
    margin-top: 14px;
    font-size: 14px;
}

.login-links a {
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}
/* ===== Portal-Login (eigener Stil, kein 1:1 Copy) ===== */
.portal-bg{
  background:#f3f5f7;
  padding:40px 12px;
}

.portal-wrap{
  width: 100%;
  margin: 0;
  padding: 0 40px;
  box-sizing: border-box;

}
.portal-card{
  max-width: 1200px;
  margin: 0;
}

.portal-card{
  max-width: 1200px;
  margin-left: 40px;
}


.portal-card{
  background:#fff;
  border:1px solid #d9dee3;
  border-radius:6px;
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
  padding:24px 26px;
}

.portal-head{
  background:#cfe8ef;
  border:1px solid #9fc7d1;
  border-radius:4px;
  padding:8px 12px;
  display:inline-block;
  margin-bottom:18px;
}

.portal-head-title{
  font-weight:700;
  font-size:14px;
}

.portal-h1{
  font-size:20px;
  margin: 6px 0 18px 0;
  font-weight:600;
}

.portal-grid{
  display:grid;
  grid-template-columns: 1fr 280px;
  gap:26px;
  align-items:start;
}

.portal-form label{
  font-size:14px;
  font-weight:600;
}

.portal-form input{
  height:40px;
  font-size:15px;
}


.portal-btn{
  background:#a4002a;
  color:#fff;
  border:none;
  border-radius:3px;
  padding:10px 18px;
  font-size:14px;
  cursor:pointer;
}

.portal-btn:hover{
  filter: brightness(0.95);
}

.portal-side-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  justify-content:flex-start;
  margin-top:6px;
}

.portal-side-links a{
  color:#a4002a;
  text-decoration:none;
  font-size:13px;
}

.portal-side-links a:hover{
  text-decoration:underline;
}

.portal-side-note{
  margin-top:16px;
  font-size:12px;
  color:#444;
  line-height:1.4;
}

.portal-links-bottom{
  margin-top:14px;
  font-size:14px;
}

.portal-links-bottom a{
  color:#a4002a;
  text-decoration:none;
}
.portal-links-bottom a:hover{
  text-decoration:underline;
}

.portal-foot{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid #e6eaee;
  font-size:13px;
}

.portal-foot a{
  color:#a4002a;
  text-decoration:none;
}
.portal-foot a:hover{
  text-decoration:underline;
}

@media (max-width: 860px){
  .portal-grid{
    grid-template-columns: 1fr;
  }
}
/* ===== Nur Login-Seite: globale Body-Regeln neutralisieren ===== */
.login-page{
  padding: 0;
  text-align: left;
  background: #f3f5f7;
}

.login-page .portal-bg{
  padding: 30px 0;
}

.login-page .portal-wrap{
  width: 100%;
  margin: 0;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Portal-Karte soll breit wirken, aber nicht lächerlich breit */
.login-page .portal-card{
  max-width: 1100px;
  margin: 0 auto;
}

/* Abstände kompakter und näher am Portal-Look */
.login-page .portal-grid{
  grid-template-columns: 1fr 260px;
  gap: 22px;
}

.login-page .portal-h1{
  font-size: 18px;
  margin: 6px 0 14px 0;
}

/* Inputs weniger hoch, wie Portal */
.login-page .portal-form input{
  height: 38px;
}

/* Button etwas kompakter */
.login-page .portal-btn{
  padding: 9px 16px;
}
/* ===== Login-Seite: main.container deaktivieren, damit kein "Kasten im Kasten" entsteht ===== */
body.login-page main.container{
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    text-align: left;
}
body.login-page{
    padding: 0;
    text-align: left;
    background: #f3f5f7;
}
/* Login: großer Rahmen weg */
body.login-page .portal-card{
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Stattdessen eine Portal-Fläche */
body.login-page .portal-wrap{
    padding: 0 28px;
    box-sizing: border-box;
}

body.login-page .portal-bg{
    background: #f3f5f7;
    padding: 30px 0;
}

/* Inhalt bekommt eine “Fläche” ohne harte Kante */
body.login-page .portal-grid{
    background: #fff;
    border: 1px solid #e6eaee;
    border-radius: 6px;
    padding: 24px;
}

/* Trennlinie auf Start- und Login-Seite ausblenden */
body.login-page hr,
body.start-page hr{
    display: none;
}
/* Header-Linie nur über .site-header border-bottom – keine zweite Linie */
.seminar-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.seminar-card{
    background: #fff;
    border: 1px solid #e6eaee;
    padding: 18px;
    border-radius: 6px;
    text-align: left;
    box-shadow: none;
}


@media (max-width: 1000px){
    .seminar-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px){
    .seminar-grid{
        grid-template-columns: 1fr;
    }
}
/* ===== Startseite Überschrift ===== */
.start-page h1{
    font-size: 26px;      /* kleiner */
    font-weight: 600;     /* weniger fett */
    margin-bottom: 12px;
    color: #222;
}

/* ===== Impressum / Datenschutz ===== */
.content-page--narrow,
.legal-page {
    max-width: 760px;
}

.legal-doc h2 {
    margin: 1.75rem 0 0.65rem;
    font-size: var(--font-size-h2);
    color: var(--ink);
    font-family: var(--font-display);
}

.legal-doc p {
    margin: 0 0 0.85rem;
    color: var(--muted);
    line-height: 1.7;
}

.legal-doc a {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.legal-note {
    font-size: 0.92rem;
    border-inline-start: 3px solid var(--gold);
    padding-inline-start: 0.85rem;
    margin-top: 1rem !important;
}

.legal-intro {
    margin: 0 0 1.25rem;
    font-size: var(--font-size-body);
    color: var(--ink);
}

.legal-doc ul {
    margin: 0 0 1rem;
    padding-inline-start: 1.25rem;
    color: var(--muted);
    line-height: 1.7;
}

.legal-doc li + li {
    margin-top: 0.25rem;
}

/* ===== Partnerprogramm ===== */
.page-shell--partner {
    max-width: none;
    padding: 0;
}

.partner-hero {
    padding: 3rem 1.25rem 2rem;
    text-align: center;
    background: #fff;
}

.partner-hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.partner-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold-dark);
}

.partner-hero h1 {
    margin: 0 0 0.75rem;
    font-size: var(--font-size-h1);
    color: var(--ink);
    font-weight: 700;
}

.partner-lead {
    margin: 0;
    font-size: var(--font-size-body);
    color: var(--muted);
    line-height: 1.55;
}

.partner-tracks {
    background: var(--bg-soft);
    padding: 1.5rem 1.25rem 2.5rem;
    border-top: 1px solid var(--border);
}

.partner-tracks-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 760px) {
    .partner-tracks-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.partner-track-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-track-card:hover,
.partner-track-card:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.15);
    outline: none;
}

.partner-track-card h2 {
    margin: 0 0 0.45rem;
    font-size: var(--font-size-h2);
    color: var(--ink);
}

.partner-track-scope {
    margin: 0 0 0.85rem;
    font-size: var(--font-size-body);
    color: var(--muted);
    font-weight: 600;
}

.partner-track-text {
    margin: 0 0 1.25rem;
    color: var(--muted);
    line-height: 1.55;
    font-size: var(--font-size-body);
}

.partner-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    background: var(--gold);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.partner-track-card:hover .partner-track-btn {
    background: var(--gold-dark);
}

.partner-process-wrap {
    padding: 2.5rem 1.25rem 3rem;
    background: #fff;
}

.partner-process-inner {
    max-width: 960px;
    margin: 0 auto;
}

.partner-process-inner h2 {
    margin: 0 0 0.5rem;
    font-size: var(--font-size-h2);
    text-align: center;
    color: var(--ink);
}

.partner-process-inner .accent-line {
    margin-left: auto;
    margin-right: auto;
    background: var(--gold);
}

.coop-steps {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

@media (min-width: 800px) {
    .coop-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.coop-steps li {
    padding: 1.1rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: grid;
    gap: 0.4rem;
}

.coop-steps strong {
    color: var(--gold-dark);
    font-size: 1rem;
}

.coop-steps span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.partner-process-note {
    margin: 1.5rem auto 0;
    max-width: 40rem;
    text-align: center;
    font-size: var(--font-size-body);
    color: var(--muted);
    line-height: 1.55;
    border-top: 1px solid var(--border);
    padding-top: 1.1rem;
}

.partner-process-inner .content-cta {
    text-align: center;
    margin-top: 1.5rem;
}
