:root {
    /* Schriftgrößen */
    --font-size-h1: clamp(2rem, 3vw + 0.5rem, 4.5rem);
    --font-size-h2: clamp(1.5rem, 2vw + 0.25rem, 3.5rem);
    --font-size-h3: clamp(1.125rem, 1.5vw + 0.25rem, 2.25rem);
    --font-size-legend: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    --font-size-label: clamp(0.875rem, 1.75vw + 0.375rem, 1.25rem);
    --font-size-button: clamp(0.875rem, 1.75vw + 0.375rem, 1.25rem);
    --font-size-body: clamp(0.875rem, 1.75vw + 0.375rem, 1.25rem);
    --font-size-footer: clamp(0.75rem, 1vw + 0.2rem, 1rem);

    --color-background: #fad1d9;
    --color-text: #1b191a;
    --color-highlight: #da0a5e;
    --color-label: #da0a5e;
    --color-button-bg: #EDEDED;
    --color-button-hover-bg: #acacac;
}

/* CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(1rem, 4vw, 5.625rem);
    /* Keep this since it's already responsive */
    font-size: var(--font-size-body);
    min-height: calc(100vh - clamp(1rem, 4vw, 5.625rem)* 2);
    justify-content: space-between;
}

main {
    flex-grow: 1;
    /* Takes up all remaining space */
    width: 100%;
    max-width: 1200px;
}

footer {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: var(--font-size-footer);
    font-weight: 400;
}

/* Start page specific styling */
.antrags-seite {
    background-color: var(--color-highlight);
}

.container,
.container-xl {
    max-width: 56.25rem;
    width: 100%;
    padding: clamp(0rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
}

.container-xl {
    max-width: 87.5rem;
    justify-content: space-between;
    gap: 4rem;
}

h1 {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: var(--font-size-h1);
    color: var(--color-highlight);
    margin-bottom: 1.25rem;
}

.section-main-heading h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
}

#head-container {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

p {
    line-height: 1.2em;
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
}

fieldset {
    border: none;
    margin-bottom: 1.25rem;
    /* 20px -> 1.25rem */
    padding: 0;
    width: 100%;
}

fieldset .form-control:last-child {
    margin-bottom: 0;
}

/*Toast Message*/

/* Toast container styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast message styles */
/* Toast container styles (position bottom-right) */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast message styles */
.toast {
    background-color: #edededdb;
    color: #000;
    padding: 12px 16px;
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    font-size: 14px;
    min-width: 250px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
}

/* Toast success and error variations */
.toast.success {
    border-left: 4px solid #5ea182;
    /* Bootstrap success green */
}

.toast.error {
    border-left: 4px solid #ab545c;
    /* Bootstrap danger red */
}

/* Toast appears and disappears with animations */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Close button inside the toast */
.toast .btn-close {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #000;
    cursor: pointer;
    width: fit-content;
}

/* Progress Bar Container */
.upload-progress {
    width: cacl(100% - 3px);
    background-color: #f3f3f3;
    border-radius: 0px;
    overflow: hidden;
    margin-top: 0.5rem;
    display: none;
    /* Hidden by default */
}

/* Progress Bar */
.upload-progress .progress-bar {
    height: 1rem;
    background-color: var(--color-button-hover-bg);
    text-align: center;
    color: white;
    font-size: var(--font-size-body);
    /*line-height: 20px;*/
    transition: width 0.4s ease;
    border-radius: 0px;
}

legend,
#datenschutz-container h2,
#impressum-container h2 {
    font-weight: 600;
    margin-bottom: 0.625rem;
    /* 10px -> 0.625rem */
    font-size: var(--font-size-legend);
}

#datenschutz-container h3,
#impressum-container h3 {
    font-weight: 600;
    margin-bottom: 0.625rem;
    margin-top: 0.625rem;
    font-size: var(--font-size-label);
}

#datenschutz-container section,
#impressum-container section {
    margin-bottom: 1.25rem;
}

ul {
    list-style-type: disc;
    padding-left: 2.5rem;
    margin: 1.25rem 0;
}

a {
    color: var(--color-label);
    font-weight: 700;
}

li {
    margin-bottom: 0.625rem;
    line-height: 1.6;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9375rem;
}

.form-control {
    flex: 1;
    min-width: calc(50% - 0.9375rem);
    margin-bottom: 0.9375rem;
}

label {
    display: block;
    margin-bottom: 0.3125rem;
    /* 5px -> 0.3125rem */
    color: var(--color-label);
    font-size: var(--font-size-label);
}

#callback-form {
    margin-top: 0.9375rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="number"],
input[type="file"],
input[type="checkbox"],
input[type="tel"] {
    width: calc(100% - 1.1875rem);
    padding: 0.5rem;
    border: none;
    background: #f3f4f6;
    height: 1.25rem;
    font-family: 'Sinteca';
}

input[type="checkbox"] {
    margin-right: 0.5625rem;
    width: fit-content;
}

input[type="file"] {
    position: relative;
}

input[type="file"]::file-selector-button {
    width: 8.5rem;
    /* 136px -> 8.5rem */
    color: transparent;
}

/* Faked label styles and icon */
input[type="file"]::before {
    position: absolute;
    pointer-events: none;
    top: 0.625rem;
    /* 10px -> 0.625rem */
    left: 0.625rem;
    /* 10px -> 0.625rem */
    height: 1.125rem;
    /* 18px -> 1.125rem */
    width: 1.125rem;
    /* 18px -> 1.125rem */
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z'/%3E%3C/svg%3E");
}

input[type="file"]::after {
    position: absolute;
    pointer-events: none;
    top: 0.6875rem;
    /* 11px -> 0.6875rem */
    left: 2.125rem;
    /* 34px -> 2.125rem */
    color: var(--color-text);
    content: "Datei hochladen";
}

/* file upload button */
input[type="file"]::file-selector-button {
    border-radius: 0.25rem;
    /* 4px -> 0.25rem */
    padding: 0 1rem;
    /* 16px -> 1rem */
    height: 1.375rem;
    /* 22px -> 1.375rem */
    cursor: pointer;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.05);
    /* 0px 1px -> 0 0.0625rem */
    margin-right: 1rem;
    /* 16px -> 1rem */
    transition: background-color 200ms;
}

input[type="file"]::file-selector-button:hover {
    background-color: #f3f4f6;
}

input[type="file"]::file-selector-button:active {
    background-color: #e5e7eb;
}

button {
    width: 100%;
    padding: 0.625rem;
    /* 10px -> 0.625rem */
    background-color: var(--color-button-bg);
    border: none;
    border-radius: 2.375rem;
    /* 38px -> 2.375rem */
    font-size: var(--font-size-button);
    cursor: pointer;
}

button:hover {
    background-color: var(--color-button-hover-bg);
}

@media (max-width: 48rem) {

    /* 768px -> 48rem */
    .form-control {
        min-width: 100%;
    }
}

footer {
    font-family: Arial, sans-serif;
    font-size: var(--font-size-footer);
    font-weight: 400;
}

.footer-h {
    font-weight: bold;
    color: var(--color-highlight);
}

.board {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
    justify-content: flex-end;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    /* 3px -> 0.1875rem */
}

.board-outer {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.board-first {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1.5625rem;
}

.board-meta {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* styles.css */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.25rem;
    /* Keep as is */
}

.rect.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 16.25rem;
    height: auto;
    width: auto;
    max-width: 100%;
}

@media (max-width: 48rem) {

    /* 768px -> 48rem */
    .logo-img {
        max-height: 5rem;
        /* 80px -> 5rem */
    }

    .logo-container {
        flex-direction: column;
        align-items: end;
    }
}

@media (max-width: 30rem) {

    /* 480px -> 30rem */
    .logo-img {
        max-height: 3.75rem;
        /* 60px -> 3.75rem */
    }
}

main {
    width: 100%;
    max-width: 1200px;
}

.ja-label {
    display: flex;
    align-items: center;
    flex-direction: row;
    height: 35px;
}

.ja-label label {
    margin: 0;
    padding-top: 0.25rem;
}

.main-content-frame {
    width: 100%;
}

.section-main-heading {
    text-align: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 4.25rem;
}

.hero-media-frame .main-content {
    align-items: center;
}

.hero-media {
    margin: 0 auto;
    width: 100%;
    max-width: clamp(20rem, 90vw, 72rem);
}

.hero-media picture {
    display: block;
    width: 100%;
}

.hero-media-link {
    display: block;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-media-link:hover,
.hero-media-link:focus-visible {
    transform: translateY(-0.35rem);
    box-shadow: 0 2rem 3.5rem rgba(27, 25, 26, 0.18);
    outline: none;
}

.hero-media-caption {
    margin-top: 1.25rem;
    text-align: center;
}

.hero-media-caption-link {
    font-weight: 600;
    color: var(--color-highlight);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.hero-media-caption-link:focus-visible {
    outline: 3px solid rgba(218, 10, 94, 0.35);
    outline-offset: 4px;
}

.hero-media img {
    width: 100%;
    height: auto;
    box-shadow: 0 1.5rem 3rem rgba(27, 25, 26, 0.12);
    object-fit: cover;
}

.section-logo img {
    width: clamp(17rem, 15vw + 5rem, 21.875rem);
    height: auto;
    transition: transform 0.3s ease-in-out;
    /* Smooth transition for other transformations */
}

#logo:hover img {
    cursor: pointer;
    animation: wiggle1 1.5s ease-in infinite;
}

.section-faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-faq div {
    display: flex;
    gap: 1.25rem;
    align-items: flex-end;
}

.section-faq img {
    height: clamp(1.5rem, 2vw + 0.5rem, 2rem);
    width: clamp(1.5rem, 2vw + 0.5rem, 2rem);
    margin-bottom: 5px;
}

.btn {
    position: relative;
    width: fit-content;
    background: var(--color-highlight);
    border-radius: 38px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    font-size: var(--font-size-button);
    color: var(--color-text);
    text-decoration: none;
    padding: 1.25rem 2.25rem;
    text-wrap: nowrap;
}

#logo {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 5vw + 1rem, 5.5rem);
    /* Responsive gap using clamp */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.faq-answer.open {
    max-height: 5500px;
    padding: 5px 0px;
}

.content-wrapper img {
    margin-right: 10px;
    width: 45px;
    height: 35px;
}


.sticky-logo {
    display: flex;
    position: sticky;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 5vw + 1rem, 5.5rem);
    top: 1.25rem;
}

@media (max-width: 670px) {
    .main-container {
        flex-direction: column;
        gap: 1rem;
    }

    h1,
    .row a {
        margin-bottom: .5rem !important;
    }

    .main-content {
        gap: 0.5rem;
    }

    #logo,
    .sticky-logo {
        gap: 1rem;
    }

    .section-logo img {
        width: 100%;
        max-width: 200px;
    }

    .content-wrapper img {
        margin-right: 10px;
        width: 31px;
        height: 24px;
    }

    .section-faq {
        gap: 0.5rem;
    }

    .section-main-heading h2 {
        margin-bottom: 1.25rem;
    }
}

@keyframes wiggle1 {

    0%,
    10% {
        transform: rotateZ(0);
    }

    20% {
        transform: rotateZ(-1.25deg);
    }

    30% {
        transform: rotateZ(1deg);
    }

    40% {
        transform: rotateZ(-0.75deg);
    }

    50% {
        transform: rotateZ(0.625deg);
    }

    60% {
        transform: rotateZ(-0.5deg);
    }

    70% {
        transform: rotateZ(0.375deg);
    }

    80% {
        transform: rotateZ(-0.25deg);
    }

    90% {
        transform: rotateZ(0.125deg);
    }

    100% {
        transform: rotateZ(0);
    }
}

/* Adjusted expanding circle */
#expandingCircle {
    position: absolute;
    background-color: var(--color-highlight);
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center center;
    transition: transform 0.5s ease-in-out;
    z-index: 9999;
}

#logo-img {
    position: relative;
    z-index: 100000;
}

#expandingCircle.expand {
    transform: scale(20);
    /* Adjust this value as needed */
}

.row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
}

.row a {
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--font-size-h1);
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.row a img {
    width: clamp(2rem, 4vw, 4rem);
    height: clamp(2rem, 4vw, 4rem);
    margin-right: 10px;
    rotate: 180deg;
}

#form-container {
    gap: 1.25rem;
}

.section-changes-info p {
    margin-bottom: 1.25rem;
}

.faq-question h2 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    font-family: 'Space Mono', sans-serif;
    color: var(--color-highlight);
    cursor: pointer;
    text-decoration: underline;
}

.content-wrapper {
    display: flex;
}

.faq-answer {
    display: block !important;
    line-height: 1.2em;
}

.flex-it {
    display: flex;
    gap: 1.25rem;
}

input[type="text"],
input[type="email"] {
    border: 1px solid var(--color-text);
    /* Define a light gray border color */
    border-radius: 25px;
    padding: 10px 15px;
    /* Add padding for better spacing */
    font-size: 16px;
    /* Increase font size for better readability */
    transition: border-color 0.3s ease;
    /* Smooth transition for border color */
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: var(--color-highlight);
    /* Change border color on focus */
    outline: none;
    /* Remove default outline */
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0.9;
    z-index: 1000;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.social-flex {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.social-flex svg {
    width: clamp(50px, 1.5vw, 100px);
    height: auto;
}

#successMessage {
    margin: 0 0 15px 0;
    text-align: center;
    color: var(--color-highlight);
}

.linktree-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.linktree-button {
    background-color: var(--color-button-bg);
    border: none;
    border-radius: 2.375rem;
    font-size: var(--font-size-button);
    cursor: pointer;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.linktree-button:hover {
    background-color: var(--color-button-hover-bg);
}

/* GENITALPANIK Section Styling */
.genitalpanik-section {
    margin-top: 2rem;
}

.genitalpanik-content {
    margin: 0 auto;
    width: 100%;
    max-width: clamp(20rem, 95vw, 75rem);
}

.genitalpanik-flex-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.genitalpanik-header {
    flex: 0 0 35%;
    padding-right: 1rem;
}

.genitalpanik-header h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--color-highlight);
    line-height: 1.3;
    text-align: center;
}

.genitalpanik-images {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.genitalpanik-image {
    flex: 1;
    max-width: 50%;
}

.genitalpanik-image picture {
    display: block;
    width: 100%;
}

.genitalpanik-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 1rem 2rem rgba(27, 25, 26, 0.12);
    object-fit: cover;
}

.genitalpanik-caption {
    margin-top: 0.5rem;
    font-size: var(--font-size-footer);
    color: var(--color-text);
    line-height: 1.3;
}

.genitalpanik-accordion {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.genitalpanik-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    justify-content: center;
    transition: transform 0.2s ease;
}

.genitalpanik-toggle:hover {
    transform: translateX(0.25rem);
}

.genitalpanik-toggle img {
    width: 2.5rem;
    height: 2.5rem;
    transition: transform 0.3s ease;
}

.genitalpanik-toggle.active img {
    transform: rotate(180deg);
}

.genitalpanik-subtitle {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(218, 10, 94, 0.08);
    border-left: 4px solid var(--color-highlight);
    border-radius: 0.5rem;
}

.genitalpanik-subtitle h3 {
    font-size: var(--font-size-h3);
    color: var(--color-highlight);
    line-height: 1.4;
}

.genitalpanik-text {
    margin-top: 1rem;
}

.genitalpanik-text p {
    line-height: 1.5;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.genitalpanik-text strong {
    color: var(--color-highlight);
    font-weight: 700;
}

@media (max-width: 768px) {
    .genitalpanik-flex-container {
        flex-direction: column;
    }

    .genitalpanik-header {
        flex: 1;
        padding-right: 0;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .genitalpanik-images {
        flex-direction: column;
    }

    .genitalpanik-image {
        max-width: 100%;
    }
}

@media (max-width: 670px) {
    .genitalpanik-header h2 {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }

    .genitalpanik-toggle img {
        width: 2rem;
        height: 2rem;
    }
}

/* Fixed Donation Button */
.donation-button-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background-color: var(--color-highlight);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 2.375rem;
    font-size: var(--font-size-button);
    font-weight: 700;
    box-shadow: 0 0.25rem 0.75rem rgba(218, 10, 94, 0.3);
    transition: background-color 200ms, transform 200ms, box-shadow 200ms;
    display: inline-block;
    white-space: nowrap;
}

.donation-button-fixed:hover {
    background-color: #b60850;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(218, 10, 94, 0.4);
}

.donation-button-fixed:active {
    transform: translateY(0);
    box-shadow: 0 0.25rem 0.5rem rgba(218, 10, 94, 0.3);
}

@media (max-width: 768px) {
    .donation-button-fixed {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.875rem 1.5rem;
        font-size: clamp(0.75rem, 1.5vw + 0.3rem, 1rem);
    }
}

@media (max-width: 480px) {
    .donation-button-fixed {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
    }
}