@charset "utf-8";

/* ==========================================================
   QM PERSONAL – qmintern.css
   Gemeinsame Basis für interne AG-, AN- und FB-Bereiche
========================================================== */

:root {
  --qm-primary: #6E9828;
  --qm-secondary: #5F8428;

  --qm-bg: #F4F8EC;
  --qm-soft: #EEF5E3;
  --qm-soft-2: #F8FBF2;
  --qm-hover: #E4EFD2;

  --qm-border: #CCD8BE;
  --qm-text: #1A1A1A;
  --qm-muted: #555555;
  --qm-white: #FFFFFF;

  --qm-danger: #9B3028;
  --qm-danger-dark: #762119;
  --qm-danger-soft: #FFF5F5;
  --qm-danger-border: #E3A3A3;

  --qm-warning: #8A6400;
  --qm-success: #365F18;

  --qm-radius: 12px;
  --qm-radius-sm: 8px;

  --qm-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);

  --qm-content-max: 1320px;
}

/* ==========================================================
   BOX-SIZING UND GRUNDEINSTELLUNGEN
========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  color: var(--qm-text);
  background: var(--qm-bg);

  font-family: Arial, Verdana, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;

  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================================
   LINKS
========================================================== */

a {
  color: var(--qm-primary);
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--qm-secondary);
  text-decoration: underline;
}

/* ==========================================================
   FOKUS
========================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #D7A500;
  outline-offset: 2px;
}

/* ==========================================================
   TYPOGRAFIE
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;

  color: var(--qm-text);

  line-height: 1.3;
}

h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

small {
  color: var(--qm-muted);
}

/* ==========================================================
   SEITENBREITEN
========================================================== */

#wrap,
.internal-wrap {
  width: 100%;
  max-width: var(--qm-content-max);

  margin: 0 auto;
  padding: 0 14px 32px;
}

#wrapi,
.internal-wrap--narrow {
  width: 100%;
  max-width: 650px;

  margin: 0 auto;
  padding: 1rem;
}

#fullpage {
  width: 100%;
  max-width: var(--qm-content-max);

  margin: 0 auto;
}

/* ==========================================================
   LEGACY-BREITEN
========================================================== */

#kopf,
#kopf2,
#kopf3,
#kopf3a,
#kopf5,
#breite,
#breiteu,
#breite2,
#breite3,
#breite4,
#breite5,
#breite6,
#breite7 {
  position: static;

  width: 100%;
  max-width: 100%;

  margin: 1rem 0;
}

#werbung,
#werbung5,
#werbungkopfeinzeilig {
  position: static;

  width: 100%;
  max-width: 180px;

  margin: 1rem auto;
}

.einrueken {
  padding-left: 1.5rem;
}

/* ==========================================================
   SEITENKOPF
========================================================== */

.internal-page-header {
  margin: 1rem 0 1.5rem;
}

.internal-page-header h1 {
  margin-bottom: 0;
}

/* ==========================================================
   LEGACY-ÜBERSCHRIFTEN
========================================================== */

h2.nutz,
h2.titel,
h2.titel5,
h2.ag,
h2.fb,
h2.ag6,
h2.an,
h1.an {
  width: 100%;
  max-width: 100%;

  margin: 1rem 0;
  padding: 0.7rem 0.9rem;

  color: var(--qm-text);
  background: var(--qm-soft);

  border: 1px solid var(--qm-border);
  border-left: 5px solid var(--qm-primary);
  border-radius: var(--qm-radius-sm);

  font-size: 1.2rem;
  font-weight: 700;
}

/* ==========================================================
   HINWEISE UND MELDUNGEN
========================================================== */

p.anmerk {
  color: var(--qm-muted);
  font-size: 0.9rem;
}

.hinweis,
p.hinweis,
h3.hinweis {
  margin: 1rem 0;
  padding: 0.85rem 1rem;

  color: #7A1616;
  background: #FFF1F1;

  border: 1px solid #E1B7B7;
  border-left: 5px solid #B43131;
  border-radius: var(--qm-radius-sm);

  font-weight: 700;
}

.fehlerbox,
.statusbox {
  position: static;

  width: 100%;
  max-width: 100%;

  margin: 1rem 0;
  padding: 1rem;

  border: 2px solid;
  border-radius: var(--qm-radius-sm);
}

.fehlerbox {
  color: var(--qm-white);
  background: #B83B3B;
  border-color: #8F2929;
}

.fehlerbox a {
  color: var(--qm-white);
  text-decoration: underline;
}

.statusbox {
  color: #24404A;
  background: #E8F6FA;
  border-color: #8ED9F6;
}

.fehlerbox ul,
.statusbox ul {
  margin-bottom: 0;
}

form.zurueck,
p.hinweislogo {
  margin-left: 0;
}

/* ==========================================================
   TABELLEN
========================================================== */

.table-scroll {
  width: 100%;
  max-width: 100%;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table.stelle,
table.projekt,
table.presse,
table.signup {
  width: 100%;

  background: var(--qm-white);
  border: 1px solid var(--qm-border);
}

table.stelle th,
table.projekt th,
table.presse th,
table.signup th {
  padding: 0.75rem;

  color: var(--qm-text);
  background: var(--qm-soft);

  border: 1px solid var(--qm-border);

  text-align: left;
}

table.stelle td,
table.projekt td,
table.presse td,
table.signup td {
  padding: 0.75rem;

  border: 1px solid var(--qm-border);

  text-align: left;
  vertical-align: top;
}

table.tools {
  text-align: right;
}

table.rap {
  border-spacing: 0.75rem;
}

/* ==========================================================
   FORMULARE
========================================================== */

form p {
  margin: 0 0 1rem;
}

fieldset {
  margin: 1rem 0;
  padding: 1rem;

  background: var(--qm-soft-2);

  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius-sm);
}

legend {
  padding: 0 0.4rem;

  color: var(--qm-text);
  font-weight: 700;
}

label {
  display: inline-block;

  margin-bottom: 0.3rem;

  font-weight: 700;
}

input,
select,
button,
textarea {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  max-width: 100%;

  padding: 0.65rem 0.75rem;

  color: var(--qm-text);
  background: var(--qm-white);

  border: 1px solid #AEBB9E;
  border-radius: 6px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  border-color: var(--qm-primary);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
}

/* ==========================================================
   EINHEITLICHES BUTTON-SYSTEM

   Grün = Hauptaktion
   Weiß = Navigation
   Rot  = kritische Aktion
========================================================== */

input[type="submit"],
button,
.button,
.internal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0.75rem 1.1rem;

  color: var(--qm-white);
  background: var(--qm-primary);

  border: 2px solid var(--qm-primary);
  border-radius: var(--qm-radius-sm);

  font: inherit;
  font-weight: 700;
  line-height: 1.3;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

/* Hauptaktionen */

input[type="submit"]:not(.internal-button--danger):hover,
input[type="submit"]:not(.internal-button--danger):focus,
button:not(.internal-button--danger):hover,
button:not(.internal-button--danger):focus,
.button:not(.button--danger):hover,
.button:not(.button--danger):focus,
.internal-button:not(.internal-button--danger):hover,
.internal-button:not(.internal-button--danger):focus {
  color: var(--qm-white);
  background: var(--qm-secondary);
  border-color: var(--qm-secondary);

  text-decoration: none;
}

/* Sekundäre Navigation */

.internal-button--secondary,
.button--secondary {
  color: var(--qm-primary);
  background: var(--qm-white);
  border-color: var(--qm-primary);
}

.internal-button--secondary:visited,
.button--secondary:visited {
  color: var(--qm-primary);
}

.internal-button--secondary:hover,
.internal-button--secondary:focus,
.button--secondary:hover,
.button--secondary:focus {
  color: var(--qm-text);
  background: var(--qm-hover);
  border-color: var(--qm-primary);

  text-decoration: none;
}

/* Kritische Aktion */

.internal-button--danger,
.button--danger {
  color: var(--qm-white);
  background: var(--qm-danger);
  border-color: var(--qm-danger);
}

.internal-button--danger:visited,
.button--danger:visited {
  color: var(--qm-white);
}

.internal-button--danger:hover,
.internal-button--danger:focus,
.button--danger:hover,
.button--danger:focus {
  color: var(--qm-white);
  background: var(--qm-danger-dark);
  border-color: var(--qm-danger-dark);

  text-decoration: none;
}

.internal-button--danger:focus-visible,
.button--danger:focus-visible {
  outline: 3px solid rgba(155, 48, 40, 0.4);
  outline-offset: 3px;
}

.internal-button--danger:active,
.button--danger:active {
  background: var(--qm-danger-dark);
  border-color: var(--qm-danger-dark);
}

/* Aktiver Klick */

.internal-button:active,
.button:active,
button:active,
input[type="submit"]:active {
  transform: translateY(1px);
}

/* Deaktivierte Buttons */

button:disabled,
input[type="submit"]:disabled,
.internal-button[aria-disabled="true"],
.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================
   BUTTON- UND AKTIONSBEREICHE
========================================================== */

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.profile-actions,
.profile-section__actions,
.profile-subsection__actions,
.internal-action-bar,
.internal-button-grid,
.internal-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 0.75rem;

  margin: 1rem 0;
}

/* ==========================================================
   INTERNE SERVICE-BEREICHE
========================================================== */

.internal-service-section {
  margin: 1.5rem 0;
  padding: 1.25rem;

  background: var(--qm-white);

  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius);

  box-shadow: var(--qm-shadow);
}

.internal-service-section h2 {
  margin-bottom: 0.75rem;
}

/* ==========================================================
   KLEINE INTERNE HINWEISE
========================================================== */

.internal-note {
  padding: 1rem;

  background: var(--qm-soft-2);

  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius-sm);
}

/* ==========================================================
   BEWEGUNGEN REDUZIEREN
========================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ==========================================================
   MOBILE DARSTELLUNG
========================================================== */

@media (max-width: 48rem) {
  #wrap,
  .internal-wrap {
    padding: 0 10px 24px;
  }

  #wrapi,
  .internal-wrap--narrow {
    padding: 0.75rem;
  }

  body {
    font-size: 1rem;
    line-height: 1.65;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .einrueken {
    padding-left: 0;
  }

  .signup,
  .signup tbody,
  .signup tr,
  .signup th,
  .signup td {
    display: block;
    width: 100%;
  }

  .signup th {
    padding-bottom: 0.25rem;
  }

  .signup td {
    padding-top: 0.25rem;
  }

  input[type="submit"],
  button,
  .button,
  .internal-button {
    width: 100%;
    min-height: 50px;

    font-size: 1rem;
  }

  .profile-actions,
  .profile-section__actions,
  .profile-subsection__actions,
  .internal-action-bar,
  .internal-button-grid,
  .internal-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .internal-service-section {
    padding: 1rem;
  }
}
/* ==========================================================
   FB-KONTAKT – KONTAKTFORMULAR
========================================================== */

.internal-page {
  width: 100%;
}

.internal-main {
  width: 100%;
  max-width: var(--qm-content-max);
  margin: 0 auto;
  padding: 0 14px 2rem;
}

.contact-card {
  width: 100%;
  margin: 1rem 0 2rem;
  padding: 1.5rem;

  background: var(--qm-white);

  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius);

  box-shadow: var(--qm-shadow);
}

/* Lange Inhalte sicher umbrechen */
.form-field,
.form-confirmation,
.contact-card__header {
  overflow-wrap: anywhere;
}

/* ==========================================================
   KOPFBEREICH
========================================================== */

.contact-card__header {
  margin: 0 0 1.5rem;
  padding: 0 0 1.25rem;

  border-bottom: 1px solid var(--qm-border);
}

.contact-card__eyebrow {
  margin: 0 0 0.35rem;

  color: var(--qm-primary);

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;

  text-transform: uppercase;
}

.contact-card__header h1 {
  margin: 0 0 0.75rem;
}

.contact-card__header p:last-child {
  margin-bottom: 0;

  color: var(--qm-muted);
}

/* ==========================================================
   FORMULAR
========================================================== */

.contact-form {
  margin-top: 1.5rem;
}

.form-section {
  margin: 0 0 1.5rem;
  padding: 1.25rem;

  background: var(--qm-soft-2);

  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius);
}

.form-section legend {
  padding: 0 0.5rem;

  color: var(--qm-text);

  font-size: 1.1rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  min-width: 0;
  margin: 0 0 1rem;
}

.form-grid .form-field {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  margin: 0 0 0.35rem;
}

.form-field__footer {
  margin-top: 0.4rem;
}

/*
 * Pflichtfelder dezent markieren.
 */
.form-field input:required,
.form-field select:required,
.form-field textarea:required {
  border-left: 3px solid var(--qm-primary);
}

/* ==========================================================
   HINWEISE
========================================================== */

.form-hint {
  margin: 0.4rem 0 0;

  color: var(--qm-muted);

  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

/*
 * Einwilligung / Protokollierung
 */
.form-confirmation {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;

  background: var(--qm-soft);

  border: 1px solid var(--qm-border);
  border-left: 5px solid var(--qm-primary);
  border-radius: var(--qm-radius-sm);
}

.form-confirmation label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;

  margin: 0;

  line-height: 1.5;
}

.form-confirmation input[type="checkbox"] {
  flex: 0 0 auto;

  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
}

.form-confirmation .form-hint {
  margin-left: 1.8rem;
}

.form-confirmation .form-hint + .form-hint {
  margin-top: 0.75rem;
  padding-top: 0.75rem;

  border-top: 1px solid var(--qm-border);
}
/* ==========================================================
   FB-KONTAKT – STATUS- UND FEHLERMELDUNGEN
========================================================== */

.form-message {
  position: relative;

  margin: 1.5rem 0;
  padding: 1rem 1.25rem;

  border: 2px solid;
  border-left-width: 7px;
  border-radius: var(--qm-radius-sm);

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Erfolgreiche Aktion */

.form-message--success {
  color: #274B12;
  background: #DDEFCB;
  border-color: #6E9828;
}

/* Fehler */

.form-message--error {
  color: var(--qm-danger-dark);
  background: var(--qm-danger-soft);
  border-color: var(--qm-danger);
}

/* Absätze innerhalb der Meldung */

.form-message p {
  margin: 0;
}

.form-message p + p {
  margin-top: 0.5rem;
}

/* Fehlerliste */

.form-message ul {
  margin: 0.6rem 0 0;
  padding-left: 1.4rem;
}

.form-message li + li {
  margin-top: 0.25rem;
}
/* ==========================================================
   AKTIONEN
========================================================== */

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 0.75rem;

  margin: 1.5rem 0 0;
}

/*
 * Hauptaktion bleibt grün.
 */
.form-actions .button--primary {
  color: var(--qm-white);
  background: var(--qm-primary);
  border-color: var(--qm-primary);
}

.form-actions .button--primary:hover,
.form-actions .button--primary:focus {
  color: var(--qm-white);
  background: var(--qm-secondary);
  border-color: var(--qm-secondary);
}

/*
 * Navigation bleibt weiß.
 */
.form-actions .button--secondary {
  color: var(--qm-primary);
  background: var(--qm-white);
  border-color: var(--qm-primary);
}

.form-actions .button--secondary:hover,
.form-actions .button--secondary:focus {
  color: var(--qm-text);
  background: var(--qm-hover);
  border-color: var(--qm-primary);
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 48rem) {
  .internal-main {
    padding: 0 10px 1.5rem;
  }

  .contact-card {
    padding: 1rem;
  }

  .form-section {
    padding: 1rem;
  }

  .form-grid--two-columns {
    grid-template-columns: 1fr;
  }

  .form-confirmation {
    padding: 1rem;
  }

  .form-confirmation .form-hint {
    margin-left: 0;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .button {
    width: 100%;
  }
}
/* ==========================================================
   FB-SERVICE – PROFILSTATISTIK
========================================================== */

.profile-statistics {
  margin: 1.5rem 0;
  padding: 1.25rem;

  background: var(--qm-white);

  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius);

  box-shadow: var(--qm-shadow);
}

/* ==========================================================
   STATISTIK – KOPFBEREICH
========================================================== */

.profile-statistics__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;

  margin-bottom: 1.25rem;
  padding-bottom: 1rem;

  border-bottom: 1px solid var(--qm-border);
}

.profile-statistics__header > div {
  min-width: 0;
}

.profile-statistics__eyebrow {
  margin: 0 0 0.25rem;

  color: var(--qm-primary);

  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.profile-statistics__header h2 {
  margin: 0;

  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.3;
}

/* ==========================================================
   PROFILSTATUS
========================================================== */

.profile-statistics__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  min-height: 2rem;
  padding: 0.35rem 0.75rem;

  border: 1px solid;
  border-radius: 999px;

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;

  white-space: nowrap;
}

.profile-statistics__status--active {
  color: var(--qm-success);
  background: var(--qm-soft);
  border-color: var(--qm-primary);
}

.profile-statistics__status--inactive {
  color: var(--qm-danger-dark);
  background: var(--qm-danger-soft);
  border-color: var(--qm-danger-border);
}

.profile-statistics__status--missing {
  color: var(--qm-muted);
  background: var(--qm-soft-2);
  border-color: var(--qm-border);
}

/* ==========================================================
   STATISTIK – KACHELN
========================================================== */

.profile-statistics__grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(11rem, 1fr)
    );

  gap: 1rem;

  margin: 0;
}

.profile-statistics__item {
  min-width: 0;
  padding: 1rem;

  background: var(--qm-soft-2);

  border: 1px solid var(--qm-border);
  border-left: 4px solid var(--qm-primary);
  border-radius: var(--qm-radius-sm);
}

.profile-statistics__item dt {
  margin: 0 0 0.35rem;

  color: var(--qm-muted);

  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.profile-statistics__item dd {
  margin: 0;

  color: var(--qm-text);

  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;

  overflow-wrap: anywhere;
}

/* ==========================================================
   STATISTIK – HINWEIS
========================================================== */

.profile-statistics__hint {
  margin: 1rem 0 0;
  padding-top: 1rem;

  color: var(--qm-muted);

  border-top: 1px solid var(--qm-border);

  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================
   KEIN PROFIL VORHANDEN
========================================================== */

.profile-statistics__empty {
  padding: 1rem;

  background: var(--qm-soft-2);

  border: 1px solid var(--qm-border);
  border-radius: var(--qm-radius-sm);
}

.profile-statistics__empty p {
  margin: 0 0 1rem;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 48rem) {

  .profile-statistics {
    padding: 1rem;
  }

  .profile-statistics__header {
    display: block;
  }

  .profile-statistics__status {
    margin-top: 0.75rem;
  }

  .profile-statistics__grid {
    grid-template-columns: 1fr;
  }

  .profile-statistics__item {
    padding: 0.9rem;
  }

  .profile-statistics__item dd {
    font-size: 1.1rem;
  }
}