@font-face {
    font-family: 'Nunito';
    src: url('fonts/nunito-v32-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/nunito-v32-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg:     #FCFAF5;
    --ink:    #3C3D3E;
    --green:  #006432;
    --gold:   #E3C78A;
    --radius: 8px;
    --shadow-bar: 0 0 8px rgba(0,0,0,.1);
    --glow-gold: 0 0 16px var(--gold);
}

html {
    font-size: 110%;
}

body {
    font-family: "Nunito", sans-serif;
    letter-spacing: 0.5px;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    background-size: auto;
    background-position: top left;
    background-repeat: repeat;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}

input, textarea, button, select {
    font: inherit;
    letter-spacing: inherit;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px clamp(1rem, 4vw, 40px);
    padding-left: clamp(0.5rem, 2vw, 20px);
    background-color: var(--bg);
    box-shadow: var(--shadow-bar);
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-link, .nav-home {
    color: var(--ink);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-home {
    padding: 0 0 0 14px;
    display: flex;
    align-items: center;
}

.nav-home-text {
    padding: 6px 14px;
    border-radius: var(--radius);
}

.nav-link:hover, .nav-home-text:hover {
    background-color: var(--gold);
    color: var(--ink);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--green);
    color: var(--bg);
}

.nav-logo {
    height: 32px;
    width: auto;
}

.btn-nav {
    margin-left: auto;
    height: 14px;
}

h1 {
    color: var(--green);
    letter-spacing: 1px;
    text-align: center;
    font-size: clamp(1.25rem, 1rem + 1.6vw, 1.6rem);
    position: relative;
}

.shadow-highlight::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(227,199,138,0.5) 0%,
        rgba(227,199,138,0.15) 70%,
        transparent 75%
    );
    filter: blur(40px);
    z-index: -1000;
    pointer-events: none;
}

h2 {
    color: var(--green);
    font-size: clamp(1.25rem, 1rem + 1.6vw, 1.6rem);
    margin-bottom: 2rem;
    text-align: center;
}

.hero h2 {
    color: var(--ink);
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.1rem);
    margin-top: 0;
    margin-bottom: 0.625rem;
}

h3 {
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.1rem);
    text-align: center;
    margin-top: clamp(2rem, 6vw, 60px);
}

.flex-three h3 {
    text-align: left;
}

p {
    text-align: center;
    font-size: 0.9rem;
}

a {
    color: var(--green);
}

.brandib {
    color: var(--green);
    font-weight: bold;
}

.brandL {
    font-weight: bold;
    color: var(--ink);
}

.highlight {
    color: var(--green);
    font-weight: bold;
}

.desktop-break {
    display: inline;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    box-sizing: border-box;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 4rem);
    padding-bottom: clamp(6rem, 24vh, 12rem);
}

.data-wrapper {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    height: 85dvh;
    margin: 0 auto;
}

.data, .data-imp {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    max-width: 55%;
    margin: 0 auto;
    padding: clamp(1rem, 5vw, 4rem);
}

.data-imp {
    height: 80dvh;
    align-items: center;
}

.data h2 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    text-align: left;
    padding-top: 1.5rem;
    margin-bottom: 0px;
}

.data h3 {
    font-size: clamp(1rem,  0.95rem + 0.3vw, 1.15rem);
    text-align: left;
    margin-top: 20px;
    margin-bottom: 0px;
}

.data p, .data ul {
    font-size: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
    text-align: left;
}

.bg-confirmation {
    position: fixed;
    left: 0;
    bottom: 10px;
    z-index: -1000;
    width: 100%;
    pointer-events: none;
}

.note {
    font-size: 0.75rem;
    margin-top: 40px;
}

.section {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
    opacity: 1;
    transform: none;
}

.js .section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .section.visible {
    opacity: 1;
    transform: none;
}

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

section::after {
    content: "";
    display: block;
    width: 300px;
    max-width: 90%;
    height: 2px;
    background-color: var(--gold);
    margin: clamp(2rem, 6vw, 60px) auto 0 auto;
}

section:last-of-type::after {
    display: none;
}

section:last-of-type {
    padding-bottom: clamp(5rem, 10vw, 100px);
}

.section .hero {
    padding-top: 100px;
    min-height: 60svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bubbles {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    grid-template-rows: auto auto auto auto;
    max-width: 1000px;
    gap: 1rem;
    align-items: center;
    justify-self: center;
    font-size: 0.9rem;
    margin-bottom: -40px;
}

.bubble-img {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    transform: translateY(1.4rem) translateX(-3.5rem);
    width: 130%;
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 80%);
}

.bubble {
    max-width: 360px;
    padding: 0.625rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--glow-gold);
    z-index: 500;
}

.bubble1 { grid-area: 1 / 1; justify-self: end; transform: translateX(10rem)  rotate(-3deg); }
.bubble3 { grid-area: 2 / 1; justify-self: end; transform: translateX(-1rem) rotate(2deg); }
.bubble5 { grid-area: 3 / 1; justify-self: end; transform: rotate(-2deg); }
.bubble2 { grid-area: 1 / 3; justify-self: start; transform: translateX(-10rem) rotate(2.5deg); }
.bubble4 { grid-area: 2 / 3; justify-self: start; transform: translateX(1rem) rotate(-2deg); }
.bubble6 { grid-area: 3 / 3; justify-self: start; transform: rotate(2deg); }
.bubble7 { grid-area: 4 / 1 / 5 / 4; justify-self: center; transform: translateY(-3rem) rotate(-1.5deg); }

.flex-two {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 40px);
}

.flex-two > div {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .flex-two.left {
    flex: 1;
}

.hero .flex-two.right {
    flex: 3;
}

.hero .flex-two.left img {
    height: clamp(180px, 35vw, 300px);
    margin-top: 50px;
    mix-blend-mode: multiply;
    --fade:
        radial-gradient(65% 60% at 0% 100%,
        transparent      0%,
        rgba(0,0,0,.35)  55%,
        #000            100%),
        linear-gradient(to right,
        transparent 0%, rgba(0,0,0,.15) 7%, rgba(0,0,0,.55) 14%, rgba(0,0,0,.88) 19%, #000 23%),
        linear-gradient(to bottom,
        #000 0%, #000 55%, rgba(0,0,0,.85) 70%, rgba(0,0,0,.5) 82%, rgba(0,0,0,.18) 92%, transparent 100%);

    mask-image: var(--fade);
    mask-composite: intersect, intersect, intersect;
    -webkit-mask-image: var(--fade);
    -webkit-mask-composite: source-in, source-in, source-in;
}

.ibiPic {
    max-width: 300px;
    max-height: 300px;
    -webkit-mask-image: radial-gradient(ellipse 120% 105% at 50% 0%, black 82%, transparent 95%);
    mask-image: radial-gradient(ellipse 120% 105% at 50% 0%, black 82%, transparent 95%);
}

.flex-two.reverse {
    flex-direction: row-reverse;
}

.flex-two p {
    text-align: left;
}

.flex-two .text-col {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.flex-three {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 3vw, 30px);
}

.flex-three > div {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
}

.flex-three + .flex-three {
    margin-top: clamp(2rem, 6vw, 60px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 2rem;
    border: none;
    border-radius: var(--radius);
    background-color: var(--gold);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn img {
    height: 1rem;
    width: auto;
}

.btn:hover {
    background-color: var(--green);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn:hover img {
    filter: brightness(0) invert(1);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 550px;
}

.cta-group .btn {
    flex: 1;
}

.cta-solo {
    text-align: center;
}

.cta-solo .btn {
    width: 200px;
}

.logo {
    height: 100px;
}

ul.checklist {
    list-style: none;
    padding-left: 20px;
    text-align: left;
    display: block;
    max-width: 700px;
}

ul.checklist li {
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 0.9rem;
    word-break: break-word;
}

ul.checklist li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid var(--green);
    border-width: 0 2px 2px 0;
    transform: rotate(40deg);
}

.text-col ul {
    margin-block-start: 0;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.input-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.input-container img {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    pointer-events: none;
}

.form input, .form textarea {
    width: 100%;
    padding: 0.675rem 0.75rem 0.675rem 2.5rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form textarea {
    padding: 0.675rem 0.75rem;
}

.form input:focus-visible, .form textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 8px var(--ink);
}

.form-status {
    margin-top: 0.75rem;
    color: var(--green);
    font-size: 0.9rem;
}

.form-status:empty {
    display: none;
}

#contact-name {
    scroll-margin-top: 120px;
}

altcha-widget {
    --altcha-color-base: var(--bg);
    --altcha-color-text: var(--ink);
    --altcha-border-radius: var(--radius);
    font-size: 0.9rem;
}

.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-20px);
    pointer-events: none; /* verhindert Konflikte mit Hintergrund */
}

.login-box {
    pointer-events: auto;
    background: rgba(252, 250, 245, 0.8);
    padding: 32px clamp(1.25rem, 4vw, 40px);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    width: min(360px, 100% - 2rem);
    text-align: center;
}

.login-box p {
        margin-bottom: 0;
        margin-top: 10px;
        font-size: 0.75rem;
}

.login-box .btn {
    margin-top: 10px;
}

.btn:focus-visible, .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 8px var(--green);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
    -webkit-text-fill-color: var(--ink) !important; 
    transition: background-color 5000s ease-in-out 0s;
}

.error-message {
    display: block;
    position: absolute;
    left: 24px;
    bottom: -34px;           
    z-index: 100;
    text-align: left;     
    background: var(--ink);   
    color: var(--bg);            
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: bold;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.error-message::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 15px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent var(--ink) transparent;
}

.error-message:empty {
    display: none;
}

.prefill-flash {
    animation: prefillFlash 0.8s ease;
}

@keyframes prefillFlash {
    0%   { box-shadow: 0 0 0 3px var(--gold); background: #FBF3DD; }
    100% { box-shadow: 0 0 0 0   var(--gold); background: var(--bg); }
}

.confirmation {
    position: relative;
    margin-top: 1.5rem;
    background-color: transparent;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 0.625rem 2rem;
    max-width: 450px;
    z-index: 1;
}

.plane {
    position: absolute;
    top: -20px;          
    left: -10px;         
    width: 50px;
    height: 50px;
    transform: rotate(15deg);
    background: transparent;
}

#ibex-container {
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 1000;
}

.ibex-button {
    border: none;
    background: none;
    padding: 0;
    width: 70px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1001;
}

.ibex-button img {
    width: 100%;
    height: auto;
    display: block;
}


.ibex-button:hover {
    transform: scale(1.1);
}

.ibex-button:focus-visible {
    outline: none;
    box-shadow: 0 0 8px var(--green);
}

#chatbot {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 450px;
    height: min(400px, 70vh);
    max-width: calc(100vw - 60px);
    background-color: var(--bg);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    text-align: left;
    padding: 15px;
    z-index: 900;
}

.chatbot-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-greeting {
    display: flex;
    border: solid 1px var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--glow-gold);
    margin: 0 0 32px 0;
    padding: 10px 20px;
    text-align: left;
    font-weight: bold;
}

.chat-greeting img {
    height: 2rem;
    width: auto;
    margin-right: 16px;
    margin-top: 4px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    gap: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--gold);
}

.faq-frage {
    display:flex;
    align-items:center;
    text-align: left;
    width: 100%;
    background: none;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--green);
}

.faq-antwort {
    display: none;
    padding: 10px;
    font-size: 0.9rem;
    color: var(--ink);
    white-space: pre-line;
}

.faq-item.open .faq-antwort {
    display: block;
}

.faq-frage::after {
    content: "";
    border: 5px solid transparent;
    border-top-color: var(--green);
    transform: translateY(2px);
    transition: transform 0.2s ease;
    margin-left: auto;
}

.faq-item.open .faq-frage::after {
    transform: rotate(180deg);
}

.chat-bubble {
    display: none;
    position: absolute;
    transform: translateY(-1.5rem);
    bottom: 85px;
    right: 0;
    width: max-content;
    max-width: 220px;        
    background: var(--bg);
    padding: 8px 24px;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--glow-gold);
    font-size: 0.9rem;
    white-space: pre-line;
    z-index: 900;
}

.chat-bubble.visible { 
    display: block;
}

#chatbot::after, .chat-bubble::after {
    content: "";
    position: absolute;
    bottom: -7px;
    right: 80px;
    border: 6px solid transparent;
    border-bottom: 0;
    border-top-color: var(--gold);
}

#chatbot::before, .chat-bubble::before {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 81px;
    border: 6px solid transparent;
    border-bottom: 0;
    border-top-color: var(--bg);
    z-index: 900;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px clamp(1rem, 4vw, 40px);
    box-sizing: border-box;
    background-color: var(--bg);
    box-shadow: var(--shadow-bar);
    z-index: 1000;
}

.footer-inverse {
    --bg:  #3C3D3E;
    --ink: #FCFAF5;
    box-shadow: none;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.footer a {
    color: var(--ink);
    text-decoration: none;
}

.footer a:hover{
    color: var(--green);
    transform: translateY(-2px);
}

.footer-inverse a:hover{
    color: var(--gold);
    transform: translateY(-2px);
}

.social-text {
    margin-top: 2rem;
    margin-bottom: 6px;
}

.social-links {
    position: absolute;
    right: 20px;
    display: flex;
}

.social-links-confirmation {
    position: relative;
    margin-inline: auto;
    width: max-content;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon img {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bubble {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media print {
    .js .section {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 767px) {

    .main-nav {
        justify-content: left;
        row-gap: 4px;
        padding: 8px 1rem;
    }

    .nav-left {
        justify-content: center;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 4px 6px;
    }

    .nav-home-text {
        display: none;
    }

    .nav-logo {
        height: 24px;
    }
    
    .btn-nav {
        display: none;
    }

    .section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .section .hero {
        padding-top: 30px;
    }

    .bubbles {
        gap: 1rem;
    }
    
    .attributes {
        gap: 0;        
    }

    .main, .data {
        padding: 10%;
        min-height: 90dvh;
        max-width: min(70ch, 100%);
    }

    .data-wrapper {
        height: 80dvh;
    }
    
    .bg-confirmation {
        bottom: 30px;
    }

    #chatbot {
        padding: 5px;
        height: 60dvh;
    }

    #ibex-container {
        bottom: 40px;
      	right: 20px;
    }

    .ibex-button {
        width: 50px;
    }

    #chatbot::after, .chat-bubble::after {
        bottom: -7px;
        right: 50px;
    }

    #chatbot::before, .chat-bubble::before {
        bottom: -6px;
        right: 51px;
    }

    .chat-bubble {
        bottom: 50px;
        right: 0;
        padding: 8px 24px;
    }
    
}

@media (max-width: 1000px) {

    
    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-group .btn {
        width: 200px;
    }

    .flex-three {
        gap: 0;
        flex-direction: column;        
    }

    .flex-three > div:has(.ibiPic) {
        order: -1;
    }
    
    .bubbles {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 60px;
        max-width: 500px;
    }

    .bubble1, .bubble2, .bubble3, .bubble4,
    .bubble5, .bubble6, .bubble7 {
        grid-area: auto;
        transform: none;
        opacity: 0;
        transition: opacity 1.5s ease, transform 1.5s ease;
        max-width: 78%;
        width: auto;
        padding: 0.625rem 0.5rem;
        margin-bottom: 6px;
        margin-top: 6px;
    }

    .bubble1, .bubble3, .bubble5, .bubble7 {
        align-self: flex-start;
        transform: translateX(-60px) rotate(-1.5deg);
    }
    
    .bubble1.in, .bubble3.in, .bubble5.in, .bubble7.in {
        opacity: 1;
        transform: translateX(0) rotate(-1.5deg);
    }
    

    .bubble2, .bubble4, .bubble6 {
        align-self: flex-end;
        transform: translateX(60px) rotate(1.5deg);
    }

    .bubble2.in, .bubble4.in, .bubble6.in {
        opacity: 1;
        transform: translateX(0) rotate(1.5deg);
    }

    .bubble-img {
        order: -1;                
        transform: none;
        width: 80%;
        max-width: 300px;
        margin: 1rem auto;
    }

}
