/* =========================================================
   main.css – moderne, bereinigte Version
   Inhalte bleiben gleich, nur das Design wird „peppiger“
   ----------------------------------------------------- */

/* -------------------------
   Font-Face
-------------------------- */

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lexend-v19-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lexend-v19-latin-700.woff2') format('woff2');
}

/* -------------------------
   Design-Variablen
-------------------------- */

:root {
  --color-bg: #050509;
  --color-bg-alt: #101019;
  --color-section: #14141f;
  --color-section-soft: #191824;
  --color-text: #f7f7fb;
  --color-muted: #b3b3c4;
  --color-accent: #ff4b8b;
  --color-accent-soft: rgba(255, 75, 139, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.55);

  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;

  --layout-width: 1120px;
}

/* -------------------------
   Global Reset & Base
-------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Lexend', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(255, 75, 139, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(156, 110, 255, 0.22), transparent 60%),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

/* Links */

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: #ff629b;
  opacity: 0.9;
}

/* Wrapper / Layout */

.wrapper {
  width: min(var(--layout-width), 100% - 2.5rem);
  margin-inline: auto;
}

/* -------------------------
   Typografie
-------------------------- */

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
.h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
}

h2,
.h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
}

h3,
.h3 {
  font-size: 1.6rem;
}

h4,
.h4 {
  font-size: 1.3rem;
}

h5,
.h5 {
  font-size: 1.1rem;
}

h6,
.h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.9rem 0;
  color: var(--color-muted);
}

/* Standard-Text in Content-Bereichen */

.flexrow-text {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* -------------------------
   Header & Navigation
-------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.86));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding-bottom: 1.5rem;
}

/* Logo-Zeile */

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

.header-inner h1 {
  /* Wir blenden es im Design ein, statt zu verstecken */
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Logo */

.logo {
  height: auto;
  max-width: 260px;
  margin-inline: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.65));
  transition: transform var(--transition-med), filter var(--transition-med), opacity var(--transition-fast);
}

.logo:hover {
  transform: translateY(-4px) scale(1.02);
  opacity: 0.98;
}

/* Desktop-Navigation */

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#desktop {
  display: none;
}

#desktop ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding-top: 1.1rem;
  padding-bottom: 0.2rem;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#desktop ul li {
  position: relative;
}

#desktop ul li a {
  color: var(--color-muted);
  padding-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

#desktop ul li.current > a {
  color: var(--color-accent);
}

#desktop ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1rem;
  margin-inline: auto;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4b8b, #ff9a62);
  transition: width var(--transition-med);
}

#desktop ul li:hover a::after,
#desktop ul li.current a::after {
  width: 100%;
}

/* Mobile Menü-Button */

/* Mobiler Menübutton oben links */

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.8rem 1rem 0 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 220, 220, 0.7);
  background: rgba(0, 0, 0, 0.45);
  color: #f5f5f5;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-button::before {
  content: "";
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

/* Hover-Effekt */
.menu-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Auf Desktop ausgeblendet */
@media (min-width: 768px) {
  .menu-button {
    display: none;
  }
}

/* Mobile-Navigation als Overlay */
@media (max-width: 767px) {
  #mobile {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: radial-gradient(circle at top, rgba(255, 75, 139, 0.12), transparent 55%),
                rgba(0, 0, 0, 0.96);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  }

  body.menu-open #mobile {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  #mobile > img {
    display: none;
  }

  #mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: center;
  }

  #mobile ul li a {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
  }

  #mobile ul li.current a {
    color: var(--color-accent);
  }
}

/* Desktop: Mobile-Menü ausblenden, Desktop-Menü anzeigen, Logo größer */
@media (min-width: 768px) {
  #mobile {
    display: none;
  }

  #desktop {
    display: block;
  }

  .logo {
    max-width: 340px;
  }
}

@media (min-width: 1024px) {
  .logo {
    max-width: 420px;
  }
}


/* -------------------------
   Haupt-Content / Sections
-------------------------- */

main {
  padding-block: 3rem 5rem;
}

/* Flex-Row Layout für Text/Bild-Paare */

.flexrow {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3.5rem;
  padding: 2.2rem 1.8rem;
  background: radial-gradient(circle at top left, var(--color-accent-soft), transparent 60%),
              var(--color-section);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.flexrow:nth-of-type(even) {
  background: radial-gradient(circle at top right, rgba(156, 110, 255, 0.22), transparent 60%),
              var(--color-section-soft);
}

.flexrow-text {
  flex: 1.2;
}

.flexrow-text h2 {
  margin-bottom: 0.6rem;
}

.flexrow-text ul {
  margin: 0.6rem 0 0.6rem 1.2rem;
  padding: 0;
  color: var(--color-muted);
}

.flexrow-text li + li {
  margin-top: 0.3rem;
}

.flexrow-img {
  flex: 0.9;
  max-width: 360px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flexrow-img img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(0);
  transition: transform var(--transition-med), box-shadow var(--transition-med), filter var(--transition-med);
}

.flexrow:hover .flexrow-img img {
  transform: translateY(-6px);
  filter: saturate(1.05);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.85);
}

/* Abwechselnde Ausrichtung ab Tablet */

@media (min-width: 768px) {
  .flexrow {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2.6rem 2.8rem;
  }

  .flexrow-text {
    width: 60%;
  }

  .flexrow-img {
    max-width: 420px;
  }

  .flexreverse {
    flex-direction: row-reverse;
  }
}

/* -------------------------
   Teaser-Blöcke
-------------------------- */

.teaser {
  margin: 4rem 0;
}

.teaser-inner {
  padding: 2.1rem 1.6rem;
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  font-style: italic;
  color: #f9f9ff;
  background:
    radial-gradient(circle at top, rgba(255, 75, 139, 0.2), transparent 60%),
    linear-gradient(135deg, #181824, #17151f);
  border: 1px solid var(--color-border);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65);
}

/* -------------------------
   Video – responsiv
-------------------------- */

.responsive-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #24242e;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.responsive-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* -------------------------
   Tabellen (z.B. Preise)
-------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  margin-block: 1rem 2rem;
  background: rgba(12, 12, 18, 0.95);
}

th,
td {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.03);
}

/* -------------------------
   Partner / Referenzen
-------------------------- */

.partner-flex {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.partner-bild {
  max-width: 260px;
}

.partner-bild img {
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.75);
}

.partner-text {
  max-width: 650px;
  padding: 0.4rem 0;
}

@media (min-width: 768px) {
  .partner-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    padding-bottom: 0;
  }

  .partner-flex:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* -------------------------
   Blockquote / Zitate
-------------------------- */

blockquote {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 3rem auto;
  border-radius: 20px;
  padding: 0;
  z-index: 1;
}

blockquote::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 75, 139, 0.38), transparent 60%),
    radial-gradient(circle at bottom right, rgba(156, 110, 255, 0.4), transparent 65%);
  opacity: 0.18;
  z-index: -1;
}

blockquote::after {
  content: "”";
  position: absolute;
  bottom: -0.4em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  z-index: -1;
}

blockquote p {
  border-radius: 20px 20px 12px 12px;
  background-color: #191a1f;
  color: #ffffff;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  padding: 1.9rem 2rem 1.4rem 2rem;
}

@media (min-width: 600px) {
  blockquote p {
    font-size: 1.6rem;
  }
}

blockquote small {
  display: block;
  position: relative;
  background-color: #191a1f;
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.26em;
  margin: 0;
  padding: 1rem 1.8rem 1.4rem 1.8rem;
}

/* -------------------------
   Buttons / Call-To-Action
-------------------------- */

button,
.button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1.6rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ff4b8b, #ff9a62);
  border: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

button a,
.button a,
input[type="submit"] a {
  color: inherit;
  text-decoration: none;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  filter: brightness(1.05);
}

/* -------------------------
   Preise – Accordion
-------------------------- */

.collapsible-accordion {
  margin: 1.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 16, 0.96);
}

.collapsible-item {
  background: rgba(255, 255, 255, 0.02);
}

.collapsible-item + .collapsible-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Versteckte Inputs nur im Accordion */

.collapsible-accordion input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.collapsible-item-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #f5f5f5;
}

.collapsible-item-label h4 {
  padding: 0;
  margin: 0;
}

.collapsible-item-label::after {
  content: "›";
  width: 1.6em;
  text-align: center;
  font-size: 1.15em;
  transition: transform var(--transition-med);
}

.collapsible-item-content {
  max-height: 0;
  padding: 0 1.1rem;
  background: rgba(2, 2, 8, 0.9);
  transition: max-height var(--transition-med), padding var(--transition-med);
  overflow: hidden;
}

.collapsible-item-content h5 {
  margin: 0.4rem 0 0.4rem 0;
}

/* Geöffneter Zustand über :checked */

.collapsible-accordion input:checked + .collapsible-item-label::after {
  transform: rotate(90deg);
}

.collapsible-accordion input:checked ~ .collapsible-item-content {
  max-height: 100vh;
  padding: 0.9rem 1.1rem 1.2rem 1.1rem;
}

/* -------------------------
   Footer
-------------------------- */

footer {
  background: #000000;
  color: #ffffff;
  padding-top: 1.8rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  padding-block: 0.8rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-muted);
}

footer a {
  color: #d0d0ff;
}

footer a:hover {
  color: var(--color-accent);
}

/* -------------------------
   Kleine Helfer
-------------------------- */

strong {
  color: #ffffff;
}

ul {
  padding-left: 1.3rem;
}

/* Etwas mehr Luft auf sehr kleinen Screens */

@media (max-width: 480px) {
  .flexrow {
    padding: 1.8rem 1.4rem;
  }

  .teaser-inner {
    padding-inline: 1.2rem;
  }
}

/* =========================================
   Header dynamisch verkleinern beim Scrollen
   ========================================= */

/* sanfte Übergänge */
header {
  transition: padding var(--transition-med), background var(--transition-med), box-shadow var(--transition-med);
}

.header-inner,
.logo,
#desktop ul {
  transition: all var(--transition-med);
}

/* Zustand: gescrolled  */
header.header--scrolled {
  padding-bottom: 0.4rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.98);
}

/* Desktop-Verhalten */
@media (min-width: 768px) {

  header.header--scrolled .header-inner {
    padding-top: 0.2rem;
  }

  /* Logo deutlich kleiner im Sticky-Header */
  header.header--scrolled .logo {
    max-width: 180px;
  }

  /* Untertitel ausblenden, damit der Header schön kompakt wird */
  header.header--scrolled .header-inner h1 {
    display: none;
  }

  /* Navigation etwas dichter an den oberen Rand */
  header.header--scrolled #desktop ul {
    padding-top: 0.5rem;
    padding-bottom: 0.1rem;
  }
}

/* Mobile-Verhalten */
@media (max-width: 767px) {

  /* Logo auch auf dem Handy etwas kleiner beim Scrollen */
  header.header--scrolled .logo {
    max-width: 150px;
  }

  header.header--scrolled {
    padding-bottom: 0.6rem;
  }
}

/* contact form */
/* =========================================================
   contact-form.css – Styling passend zu main.css
   (scoped auf .contact-form, damit nichts anderes leidet)
   ========================================================= */

/* --- Honeypot zuverlässig verstecken --- */
.contact-form .pw-honeypot,
.contact-form .Inputfield_website,
.contact-form .Inputfield.website,
.contact-form [name="website"] {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* PW Form-Markup: UL/LI ohne Bullets + ohne Standard-Padding */
.contact-form .Inputfields,
.contact-form .Inputfields > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* sicherheitshalber auch alle UL innerhalb des Formulars (z.B. Checkboxes) */
.contact-form ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Intro Card --- */
.contact-form-intro {
  margin: 0 0 1.4rem 0;
  padding: 1.4rem 1.4rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, var(--color-accent-soft), transparent 60%),
    linear-gradient(135deg, #181824, #17151f);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  color: var(--color-muted);
  line-height: 1.8;
}

/* --- Formular-Card (Wrapper ist das <form>) --- */
.contact-form {
  margin: 0;
  padding: 1.5rem 1.2rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 75, 139, 0.14), transparent 60%),
    radial-gradient(circle at bottom right, rgba(156, 110, 255, 0.18), transparent 60%),
    var(--color-section);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

/* ProcessWire rendert meist einen .Inputfields Container */
.contact-form .Inputfields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

/* 2 Spalten ab Tablet */
@media (min-width: 768px) {
  .contact-form {
    padding: 2rem 2rem;
  }

  .contact-form .Inputfields {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.4rem;
  }

  /* Felder, die über beide Spalten laufen sollen */
  .contact-form .Inputfield_services,
  .contact-form .Inputfield_message,
  .contact-form .Inputfield_submit_contact {
    grid-column: 1 / -1;
  }
}

/* --- Inputfield Grundlayout --- */
.contact-form .Inputfield {
  margin: 0 !important; /* PW gibt teils Margins mit */
}

/* Label / Header */
.contact-form .InputfieldHeader {
  margin: 0 0 0.45rem 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Input Container */
.contact-form .InputfieldContent {
  margin: 0;
}

/* Text Inputs / Email / Textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    background var(--transition-fast);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* Placeholder */
.contact-form ::placeholder {
  color: rgba(179, 179, 196, 0.7);
}

/* Hover + Focus */
.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form input[type="tel"]:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 75, 139, 0.75);
  box-shadow:
    0 0 0 4px rgba(255, 75, 139, 0.18),
    0 18px 45px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.38);
  transform: translateY(-1px);
}

.contact-form input[type="text"]:focus-visible,
.contact-form input[type="email"]:focus-visible,
.contact-form input[type="tel"]:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
}

/* --- Checkbox-Block (Services) als “Pills” --- */
.contact-form .Inputfield_services .InputfieldContent {
  padding: 0.3rem 0 0;
}

/* PW erzeugt je nach Markup UL/LI oder Labels – wir fangen beides ab */
.contact-form .Inputfield_services ul,
.contact-form .Inputfield_services .InputfieldCheckboxes,
.contact-form .Inputfield_services .InputfieldCheckboxes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .contact-form .Inputfield_services ul,
  .contact-form .Inputfield_services .InputfieldCheckboxes,
  .contact-form .Inputfield_services .InputfieldCheckboxes ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .contact-form .Inputfield_services ul,
  .contact-form .Inputfield_services .InputfieldCheckboxes,
  .contact-form .Inputfield_services .InputfieldCheckboxes ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-form .Inputfield_services li {
  margin: 0;
}

/* Label als pill */
.contact-form .Inputfield_services label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
  color: var(--color-text);
}

.contact-form .Inputfield_services label:hover {
  border-color: rgba(255, 75, 139, 0.55);
  background: rgba(255, 75, 139, 0.08);
  transform: translateY(-1px);
}

/* Native Checkbox modern einfärben */
.contact-form .Inputfield_services input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-accent);
}

/* Wenn Browser :has kann, pill bei checked hervorheben */
@supports selector(label:has(input:checked)) {
  .contact-form .Inputfield_services label:has(input:checked) {
    border-color: rgba(255, 75, 139, 0.8);
    background: rgba(255, 75, 139, 0.14);
  }
}

/* --- Submit Button --- */
.contact-form .Inputfield_submit_contact {
  margin-top: 0.4rem;
}

.contact-form .Inputfield_submit_contact input[type="submit"],
.contact-form .Inputfield_submit_contact button[type="submit"] {
  width: 100%;
  padding: 0.85rem 1.8rem; /* etwas “wertiger” als global */
}

/* --- Fehlermeldungen (ProcessWire) --- */
.contact-form .InputfieldError,
.contact-form .ui-state-error,
.contact-form .error {
  margin-top: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 75, 139, 0.35);
  background: rgba(255, 75, 139, 0.12);
  color: #ffd6e4;
  font-size: 0.95rem;
}

.contact-form .InputfieldStateError input[type="text"],
.contact-form .InputfieldStateError input[type="email"],
.contact-form .InputfieldStateError input[type="tel"],
.contact-form .InputfieldStateError textarea {
  border-color: rgba(255, 75, 139, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 75, 139, 0.14);
}

/* Required-Hinweis (falls PW Marker nutzt) */
.contact-form .InputfieldStateRequired .InputfieldHeader {
  color: rgba(247, 247, 251, 0.92);
}

/* --- Privacy / Hint unterhalb --- */
.contact-form-privacy {
  margin-top: 1.2rem;
  padding: 1rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: center;
}

.contact-form-privacy a {
  color: var(--color-accent);
}

/* Dein Small-Hint ist inline gestylt – wir “ziehen” ihn optisch passend */
.contact-form + p[style*="font-size: 12px"] {
  color: rgba(179, 179, 196, 0.72) !important;
  margin-top: 0.9rem !important;
}

/* --- Success Modal --- */
.contact-form-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
  z-index: 9999;
}

.contact-form-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-form-modal-content {
  width: min(560px, 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background:
    radial-gradient(circle at top left, rgba(255, 75, 139, 0.18), transparent 60%),
    linear-gradient(135deg, #181824, #17151f);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
  padding: 1.6rem 1.6rem 1.2rem 1.6rem;
  transform: translateY(6px);
  animation: cf-pop 0.28s ease-out forwards;
}

.contact-form-modal-content h2 {
  margin: 0 0 0.6rem 0;
}

.contact-form-modal-content p {
  margin: 0 0 1.1rem 0;
  color: var(--color-muted);
}

.contact-form-modal-button {
  width: 100%;
  padding: 0.85rem 1.8rem;
}

@keyframes cf-pop {
  to {
    transform: translateY(0);
  }
}

.contact-form-hint{
  font-size: 0.78rem;
  color: rgba(179, 179, 196, 0.72);
  margin-top: 0.9rem;
  text-align: center;
}
