#contactform {
    position: relative;
    text-align: center;
}

@media (max-width: 759px) {
    #contactform {
        width: 92%;
        padding: 0 4%;
    }
}

@media (min-width: 760px) {
    #contactform {
        max-width: 1170px;
    }
}

.hidden {
    display: none;
}

/* =========================
   FORM WRAPPER
   ========================= */
form#f1 {
    display: block;
    position: relative;
    overflow: visible;
    margin: 1.2em auto 0 auto;
    text-align: left;
    background: #ffffff;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

@media (max-width: 759px) {
    form#f1 {
        width: 100%;
        border-radius: 10px;
    }

    .region_price_info {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 760px) {
    form#f1 {
        width: 840px;
        max-width: 100%;
    }

    .region_price_info {
        width: 100%;
        text-align: center;
        padding: 1em;
        background: #fff;
        color: #880602;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .region_price_info::placeholder {
        color: #404040;
        opacity: 1;
    }

    .region_price_info::-ms-input-placeholder {
        color: #404040;
    }
}

/* =========================
   TITLE
   ========================= */
.form-title {
    padding: 1em 1em 0.35em 1em;
    font-size: 1.02em;
    line-height: 1.3;
    color: #1f2937;
    font-weight: 600;
}

@media (min-width: 760px) {
    .form-title {
        padding: 1.05em 1.2em 0.4em 1.2em;
        font-size: 1.08em;
    }
}

/* =========================
   FIELDSET
   ========================= */
fieldset {
    width: 100%;
    border: none;
    margin: 0 !important;
    padding: 0.7em 1em 1em 1em !important;
    margin-inline-start: 0;
    margin-inline-end: 0;
    min-inline-size: 0;
    box-sizing: border-box;
}

@media (min-width: 760px) {
    fieldset {
        padding: 0.7em 1.2em 1.15em 1.2em !important;
    }
}

fieldset:first-child {
    border-top: none;
}

fieldset:last-child {
    border-bottom: none;
}

/* =========================
   FORM GRID
   ========================= */
#fs-contact {
    display: grid;
    gap: 0.8em;
    align-items: start;
}

.form-left,
.form-right {
    min-width: 0;
}

@media (min-width: 760px) {
    #fs-contact {
        grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
        column-gap: 0.9em;
        row-gap: 0;
        align-items: start;
    }
}

@media (max-width: 759px) {
    #fs-contact {
        grid-template-columns: 1fr;
        gap: 0.7em;
    }
}

.form-left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.34em;
    align-content: start;
}

.form-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45em;
    align-content: start;
}

.form-row {
    display: block;
    margin: 0;
}

.form-row label {
    display: block;
    margin: 0 0 0.18em 0;
}

.inquiry-row {
    margin-top: 0;
}

.inquiry-row label {
    margin-bottom: 0.18em;
}

/* =========================
   FORM ELEMENTS
   ========================= */
label {
    display: block;
    position: relative;
    margin-bottom: 0;
    line-height: 1.22;
    font-size: 11.5px;
    font-weight: 600;
    color: #4b5563;
    letter-spacing: 0.01em;
}

@media (max-width: 759px) {
    label {
        font-size: 12px;
    }
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    margin: 0;
    padding: 0.52em 0.68em;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    font: inherit;
    font-size: 12.5px;
    line-height: 1.22;
    border-radius: 8px;
    background: #f9fafb;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input[type="text"]:hover,
input[type="date"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover {
    background: #ffffff;
    border-color: #d9dde3;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #88062a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(136, 6, 42, 0.07);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2em;
    background: #f9fafb url('../img/select-arrows.svg') no-repeat right 0.7em center;
    background-size: 11px;
    color: #4b5563;
}

select:hover {
    background: #ffffff url('../img/select-arrows.svg') no-repeat right 0.7em center;
    background-size: 11px;
}

textarea {
    resize: vertical;
    min-height: 160px;
}

@media (min-width: 760px) {
    textarea {
        min-height: 329px;
    }
}

@media (max-width: 759px) {
    textarea {
        min-height: 140px;
    }
}

input[type="checkbox"],
input[type="radio"] {
    zoom: 110%;
}

input#action_forward {
    width: 100%;
    color: #fff;
    background: #880620;
    padding: 1em 3em;
    margin-top: 1em;
    border-radius: 5px;
}

/* =========================
   PRIVACY + BUTTON
   ========================= */
.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    margin-top: 0.05em;
    margin-bottom: 0;
    padding: 0.05em 0 0 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    color: #6b7280;
}

.privacy-label input[type="checkbox"] {
    margin: 0.16em 0 0 0;
    flex: 0 0 auto;
}

.privacy-label span {
    display: block;
}

@media (max-width: 759px) {
    .privacy-label {
        font-size: 11.5px;
        line-height: 1.35;
    }
}

.contact-btn {
    background: #88062a;
    color: #ffffff;
    border: 1px solid #88062a;
    padding: 0.66em 1.05em;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    justify-self: start;
    width: auto;
    min-width: 135px;
}

.contact-btn:hover {
    background: #9b0a33;
    border-color: #9b0a33;
    transform: translateY(-1px);
}

.contact-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.contact-btn:disabled {
    background: #d1d5db;
    color: #7a7a7a;
    border: 1px solid #c4c8ce;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.9;
}

.contact-btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.contact-btn.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (max-width: 759px) {
    .form-right .contact-btn {
        width: 100%;
        min-width: 0;
        justify-self: stretch;
    }
}

/* =========================
   INFO TEXT ABOVE FORM
   ========================= */
.form > p {
    max-width: 840px;
    margin: 0 auto 1em auto;
    text-align: left;
    line-height: 1.45;
    font-size: 0.95em;
    color: #374151;
}

.form > p a {
    color: #88062a;
    font-weight: 600;
}

/* =========================
   LANGUAGE SELECTOR
   ========================= */
.language_selector {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(0.3em, 1vw, 1.2em);
    margin-top: 1em;
    overflow: hidden;
}

@media (max-width: 759px) {
    .language_selector {
        flex-wrap: wrap;
        gap: 0.5em;
        justify-content: center;
    }
}

.flag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    padding: clamp(0.2em, 0.5vw, 0.5em);
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
    flex: 0 1 auto;
    min-width: 0;
}

.flag:hover {
    background-color: #f3f3f3;
    transform: translateY(-2px);
}

.flag_img {
    width: clamp(32px, 5vw, 60px);
    height: clamp(22px, 3.3vw, 40px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.flag_label {
    margin-top: 0.5em;
    text-align: center;
    line-height: 1.2;
    max-width: clamp(45px, 8vw, 110px);
    font-size: clamp(10px, 1.2vw, 14px);
    color: #333;
    overflow-wrap: break-word;
}

.flag.is-active {
    background-color: #eaf3ff;
}

.flag.is-active .flag_img {
    outline: 2px solid #88062a;
    outline-offset: 2px;
}

.flag.is-active .flag_label {
    font-weight: 700;
    color: #88062a;
}

/* =========================
   HEADLINES
   ========================= */
#contactform h1,
#contactform h2 {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

#contactform h1 {
    margin-top: 0.7em;
    margin-bottom: 0.25em;
    text-align: center;
}

#contactform h2 {
    margin-top: 0;
    margin-bottom: 1em;
    text-align: center;
}

/* =========================
   TOP BOXES
   ========================= */
.flexboxContainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 840px;
    margin: 0 auto 1.2em auto;
    align-items: stretch;
}

.flexboxContainer section {
    min-width: 0;
    height: 100%;
}

section.welcome,
section.phone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    border-radius: 10px;
    padding: 1em 1.1em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    background: #fff;
    box-sizing: border-box;
}

section.welcome {
    text-align: left;
}

section.welcome a {
    color: #88062a;
}

section.phone {
    text-align: left;
    align-items: flex-start;
    padding-left: 1.1em;
    background-image: url('/images/phone.svg');
    background-repeat: no-repeat;
    background-position: 1.1em center;
    background-size: 44px;
    padding-left: 4.8em;
}

section.phone p {
    margin: 0;
}

section.phone .content {
    display: flex;
    flex-direction: column;
}

.phone-number {
    margin-top: 0.35em;
    font-weight: bold;
    font-size: 1.7em;
    line-height: 1.1;
}

.phone-number a {
    color: #88062a;
}

@media (max-width: 759px) {
    .flexboxContainer {
        grid-template-columns: 1fr;
        gap: 0.8em;
        width: 100%;
        margin-bottom: 1em;
    }

    section.welcome,
    section.phone {
        min-height: auto;
        padding: 0.95em 1em;
    }

    section.phone {
        background-position: 1em center;
        background-size: 38px;
        padding-left: 4.2em;
    }

    .phone-number {
        font-size: 1.45em;
    }
}

/* =========================
   MISC EXISTING STYLES
   ========================= */
.club-set label {
    display: inline-block !important;
    position: relative;
    margin-bottom: 0.5em;
    margin-right: 20%;
}

.divider {
    border-top: 1px solid #dedede;
    padding-top: 1em;
    margin-top: 1em;
}

#services,
#sprachen {
    display: none;
    width: 100%;
    overflow: hidden;
}

.ui-datepicker {
    width: 100% !important;
}

.contact-selector-closed {
    display: block;
    position: relative;
    width: 100%;
    margin: 1em 0;
    border-top: 1px solid #dedede;
    padding: 1em 0 0 0;
}

.contact-selector-closed:after {
    content: '+';
    position: absolute;
    top: 22px;
    right: 5px;
    z-index: -1;
    font-size: 2em;
    color: #880620;
}

.contact-selector-opened {
    display: block;
    position: relative;
    margin: 1em 0;
    border-top: 1px solid #dedede;
    padding: 1em 0 1em 0;
}

.contact-selector-opened:after {
    content: '-';
    position: absolute;
    top: 5px;
    right: 9px;
    z-index: -1;
    font-size: 2em;
    color: #880620;
}

.contact-selector-inner {
    /*
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    */
}

.contact-selector-divider {
    margin-bottom: 2em;
}

.set {
    clear: both;
}

.setBlock {
    display: block;
    /*break-inside: avoid-column;*/
}

.setTitle {
    display: block;
    margin-bottom: 1em;
    text-decoration: underline;
}

.set input {
    float: left;
    width: 1.3em;
}

.set label {
    float: left;
    top: -8px;
}

#contact-help {
    clear: both;
    display: block;
    position: relative;
    margin: 8em 0 0 0;
    padding: 1em;
    border: 1px solid #dedede;
}

.feedback {
    position: absolute;
    margin-top: -1.5em;
    right: 0.1em;
    color: #c0392b;
    font-size: 1em;
}

.feedback_select {
    margin-top: -1.1em !important;
}

#images_feedback {
    margin-top: 2.5em !important;
}

#g-recaptcha-feedback {
}

.pricesBox {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.imageBox {
    display: none;
}

.productsBlock {
    margin-top: 1em;
    background: #eee;
    padding: 15px;
    border-radius: 8px;
}

discount {
    --bg1: #88062a;
    --bg2: #a30835;
    --fg: #ffffff;
    position: absolute;
    margin-left: 2em;
    height: 2em;
    color: var(--fg);
    font-size: 0.4em;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    background: linear-gradient(145deg, var(--bg2), var(--bg1));
    padding: 0 0.2em;
    border-radius: 20% 50%;
}

discount span {
    position: relative;
    top: -1em;
    z-index: 1;
}

.ui-menu .ui-menu-item-wrapper {
    padding: 0.5em !important;
    font-size: 1.5em !important;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}

.feedback {
    position: absolute;
    top: 0;
    display: none;
}

.existing-customer-note {
    max-width: 840px !important;
    margin: 1em auto !important;
    padding: 0.85em 1em;
    text-align: center !important;
    line-height: 1.45 !important;
    font-size: 0.94em !important;
    color: #374151 !important;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
}

.existing-customer-note a {
    color: #88062a;
    font-weight: 600;
    text-decoration: none;
}

.existing-customer-note a:hover {
    text-decoration: underline;
}

@media (max-width: 759px) {
    .existing-customer-note {
        margin: 0 auto 0.9em auto;
        padding: 0.8em 0.9em;
        font-size: 0.92em;
        line-height: 1.4;
    }
}

/* =========================
   OVERLAY
   ========================= */

body.no-scroll {
  overflow: hidden;
}

/* Wichtig: alles im Overlay rechnet sauber */
.overlay,
.overlay * {
  box-sizing: border-box;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 999;
}

/* Panel */
.overlay .panel {
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  opacity: 0;
  transform: translateY(-80px);
}

/* Header */
.overlay .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 10px;
  font-weight: 700;
  font-size: 18px;
  color: #333;
  gap: 16px;
}

/* Close */
.overlay .close {
  flex-shrink: 0;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
}

.overlay .close:hover {
  color: #000;
}

/* Content */
.overlay .content {
  text-align: center;
  padding: 20px 32px 36px;
  overflow-y: auto;
  overflow-x: hidden; /* verhindert rechts rausrutschen */
}

/* Icon */
.overlay .icon {
  width: 120px;
  height: 120px;
  margin: 10px auto 28px;
}

.overlay .icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.overlay .icon-circle {
  fill: #880602;
  transform: scale(0.8);
  transform-origin: center;
  opacity: 0;
}

.overlay .icon-check {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  opacity: 0;
}

.overlay .icon.animate .icon-circle {
  animation: overlayIconPop 0.35s ease forwards;
}

.overlay .icon.animate .icon-check {
  animation: overlayCheckDraw 0.45s ease 0.2s forwards;
}

@keyframes overlayIconPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes overlayCheckDraw {
  0% {
    stroke-dashoffset: 70;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Text */
.overlay .content h2 {
  color: #333;
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
  word-break: break-word;
}

.overlay .content p {
  color: #555;
  margin: 0 auto 34px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.5;
  word-break: break-word;
}

/* Button */
.overlay .btn {
  display: block;
  width: 100%;
  max-width: 100%; /* wichtig */
  padding: 16px 24px;
  background: #e0e0e0;
  border: 1px solid #bcbcbc;
  border-radius: 6px;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease;
}

.overlay .btn:hover {
  background: #d5d5d5;
}

/* Mobile */
@media (max-width: 640px) {
  .overlay {
    padding: 10px;
  }

  .overlay .panel {
    max-height: calc(100vh - 20px);
    border-radius: 8px;
  }

  .overlay .header {
    padding: 18px 20px 8px;
    font-size: 16px;
  }

  .overlay .close {
    font-size: 30px;
  }

  .overlay .content {
    padding: 12px 20px 20px;
  }

  .overlay .icon {
    width: 92px;
    height: 92px;
    margin: 8px auto 20px;
  }

  .overlay .content h2 {
    font-size: 22px;
  }

  .overlay .content p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .overlay .btn {
    font-size: 17px;
    padding: 14px 16px;
  }
}

#error-code {
    font-family: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    /*color: #d7e3ff;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);*/
    border: 1px solid #243041;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow:
        0 0 0 1px rgba(120, 160, 255, 0.06) inset,
        0 10px 30px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.01em;
}









/* =========================
   SELECT OPTION CARDS
   ========================= */

section.select1,
section.select2 {
    min-width: 0;
    height: 100%;
}

/* Klickbare Karte */
.select-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 132px;
    border-radius: 10px;
    padding: 1em 1.1em 1em 4.8em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    background-color: #fff;
    box-sizing: border-box;
    text-align: left;
    align-items: flex-start;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-repeat: no-repeat;
    background-position: 1.1em center;
    background-size: 44px;
    border: 1px solid transparent;
    cursor: pointer;
}

/* Hover + Fokus */
.select-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    background-color: #fcfcfc;
    border-color: #ead6dd;
}

.select-card:focus {
    outline: none;
    border-color: #88062a;
    box-shadow: 0 0 0 3px rgba(136, 6, 42, 0.10);
}

/* Pfeil rechts */
.select-card::after {
    content: "→";
    position: absolute;
    right: 1em;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: #88062a;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.select-card:hover::after {
    transform: translateY(-50%) translateX(3px);
}

/* Icons */
section.select1 .select-card {
    background-image: url('/images/contact-mail-phone.svg');
}

section.select2 .select-card {
    background-image: url('/images/upload-form.svg');
}

/* Text */
.select-title {
    margin: 0 0 0.35em 0;
    font-weight: 700;
    font-size: 1.08em;
    line-height: 1.25;
    color: #1f2937;
}

.select-text {
    margin: 0;
    line-height: 1.45;
    color: #374151;
    font-size: 0.95em;
    max-width: 92%;
}

.select-note {
    margin-top: 0.45em;
    font-size: 0.88em;
    color: #88062a;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 759px) {
    section.select1,
    section.select2 {
        min-height: auto;
    }

    .select-card {
        min-height: auto;
        padding: 0.95em 2.8em 0.95em 4.2em;
        background-position: 1em center;
        background-size: 38px;
    }

    .select-title {
        font-size: 1em;
    }

    .select-text {
        font-size: 0.92em;
        line-height: 1.4;
        max-width: 100%;
    }

    .select-card::after {
        right: 0.8em;
        font-size: 1.15em;
    }
}


#form1 {
    display: none;
}