/* Design: Schmuckfarbe #FDCB00, Schwarz/Weiß, Hintergrund optional #EFF3F7 */
/* Grundschrift: Oxygen 400, 1.7rem / 2.4rem; Titel 700, 4.5rem / 5.5rem; Zwischentitel 2.4rem / 2.8rem */

:root {
  --kk-accent: #FDCB00;
  --kk-bg: #fff;
  --kk-bg-muted: #EFF3F7; /* z. B. für andere Elemente */
  --kk-text: #000;
  --kk-card-bg: #fff;
}

html {
  font-size: 10px;
}

body {
  font-family: "Oxygen", sans-serif;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 2.4rem;
  color: var(--kk-text);
  margin: 0;
  padding: 16px;
  background: var(--kk-bg);
}

.kk-page {
  max-width: 1140px;
  margin: 0 auto;
}

.kk-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 8px 0 25px;
}

.kk-header__logo {
  display: inline-block;
  line-height: 0;
}

.kk-header__right {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--kk-text);
  text-align: right;
}

/* Überschreibt Theme/globales margin-block-end: 1em für <p> */
.kk-header .kk-header__tagline {
  margin: 0;
  margin-block-end: 0 !important;
  margin-bottom: 0 !important;
  font-size: 1.7rem;
  line-height: 2.4rem;
  color: var(--kk-text);
}

.kk-header-bar {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  height: 35px;
  background: #000;
  margin-top: 24px;
  margin-bottom: 16px;
}

.kk-header-bar__inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  color: #fff;
  font-size: 1.7rem;
  line-height: 2.4rem;
  text-transform: uppercase;
}

/* Linie über volle Breite in hellem Blaugrau (ersetzt Platzhalter-Menü) */
.kk-header-line {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  height: 4px;
  background: var(--kk-bg-muted);
  margin-top: 24px;
  margin-bottom: 16px;
}

/* Fußzeile: schwarzer Balken, weiße Schrift */
.kk-footer {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  margin-top: 32px;
  padding: 16px 0;
  background: #000;
  color: #fff;
}

.kk-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 1.7rem;
  line-height: 2.4rem;
}

.kk-footer a {
  color: #fff;
  text-decoration: underline;
}

.kk-footer a:hover {
  text-decoration: none;
}

.kk-header__logo img,
.kk-header__logo svg {
  display: block;
  width: 312px !important;
  height: auto !important;
  max-width: none !important;
}

.kk-header__status {
  margin-top: 4px;
  font-size: 1.3rem;
  line-height: 1.5;
}

.kk-header__logout-form {
  display: inline-block;
  margin-left: 8px;
}

.kk-header__logout-form button {
  font-size: 1.3rem;
  padding: 2px 8px;
  background: var(--kk-accent);
  color: var(--kk-text);
  border-color: var(--kk-accent);
}

.kk-greeting {
  font-size: 1.7rem;
  line-height: 2.4rem;
  margin: 0 0 8px;
  color: var(--kk-text);
}

h1 {
  font-weight: 400;
  font-size: 4.5rem;
  line-height: 5.5rem;
  margin: 12px 0 20px;
  color: var(--kk-text);
}

h2 {
  font-size: 2.4rem;
  line-height: 2.8rem;
  font-weight: 700;
  color: var(--kk-text);
}

.card {
  background: var(--kk-card-bg);
  border: none;
  border-radius: 0;
  padding: 14px 0;
  margin: 0;
  box-shadow: none;
}

/* Zum Testen: ungerade Karten Blaugrau, gerade Weiß */
/* Hintergrundwechsel nur für Karten innerhalb des Hauptbereichs (.kk-main), nicht für verschachtelte .card */
.kk-main > div.card:nth-of-type(2n) {
  position: relative;
  background: transparent;
}

.kk-main > div.card:nth-of-type(2n)::before {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  top: 0;
  bottom: 0;
  background: var(--kk-bg-muted);
  z-index: -1;
}

.card label {
  display: block;
  margin: 10px 0 4px;
}

/* Einheitlicher Abstand zwischen letztem Feld und Primary-Button (Identitätsprüfung, Kontaktdaten) */
.card label + button.primary,
.card label + .primary {
  margin-top: 10px;
}

form {
  padding-bottom: 14px;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

button {
  font-family: "Oxygen", sans-serif;
  font-size: 1.7rem;
  line-height: 2.4rem;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--kk-text);
  cursor: pointer;
}

button.primary {
  background: var(--kk-accent);
  color: var(--kk-text);
  border-color: var(--kk-accent);
}

button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

input {
  font-family: "Oxygen", sans-serif;
  font-size: 1.7rem;
  line-height: 2.4rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  color: var(--kk-text);
}

/* Checkboxen im Zustellart-Bereich nicht in voller Breite darstellen */
.kk-delivery-consent input[type="checkbox"] {
  width: auto;
  max-width: none;
  padding: 0;
  margin-right: 8px;
  accent-color: #FDCB00;
}

.kk-delivery-consent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.kk-delivery-save {
  margin-top: 4px;
}

/* Zustellart-Optionen (Post / E-Mail / SMS) als Buttons */
.kk-delivery-select {
  gap: 10px;
}

.kk-delivery-details {
  margin-top: 4px;
  margin-bottom: 4px;
}

.kk-delivery-hint {
  font-size: 1.4rem;
  color: #666;
  margin-top: 4px;
}

.kk-delivery-option {
  position: relative;
  display: inline-block;
}

/* eigentlicher Radio-Kreis unsichtbar */
.kk-delivery-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* sichtbarer Button */
.kk-delivery-option span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  min-width: 80px;    
  text-align: center;   
}

/* ausgewählte Zustellart hervorheben */
.kk-delivery-option input[type="radio"]:checked + span {
  border-color: var(--kk-accent);
  background: #fff7d6;
  font-weight: 700;
}

/* deaktivierte Optionen halbhell */
.kk-delivery-option input[type="radio"]:disabled + span {
  opacity: 0.45;
  cursor: not-allowed;
}

input::placeholder {
  color: #999;
}

input.kk-phone-placeholder::placeholder {
  color: #ccc;
}

.field-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 8px;
}

.field-row input {
  flex: 1 1 260px;
  max-width: 420px;
}

.icon-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--kk-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.ok,
.err {
  font-size: 1.7rem;
  line-height: 2.4rem;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 8px 0;
}

.ok {
  background: #eaffea;
  border: 1px solid #bfe8bf;
  color: var(--kk-text);
}

.err {
  background: #ffecec;
  border: 1px solid #f0b7b7;
  color: var(--kk-text);
}

.kk-page a {
  color: var(--kk-accent);
  text-decoration: underline;
}

.kk-page a:hover {
  text-decoration: none;
}

/* Spezieller Stil für den PDF-Link unter "Ihre offene Rechnung":
   schwarzer Text auf gelbem Hintergrund mit gut sichtbarem Fokusrahmen. */
.kk-page a.kk-pdf-link {
  display: inline-block;
  padding: 6px 12px;
  background: var(--kk-accent);
  color: var(--kk-text);
  text-decoration: none;
  border-radius: 8px;
}

.kk-page a.kk-pdf-link:hover,
.kk-page a.kk-pdf-link:focus-visible {
  text-decoration: underline;
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Gut sichtbarer Fokus für interaktive Elemente (Tastaturbedienung) */
button:focus-visible,
.kk-main button:focus-visible,
.icon-btn:focus-visible,
.kk-page a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Zustellart-Optionen: Fokus auf dem sichtbaren Pillen-Button */
.kk-delivery-option input[type="radio"]:focus-visible + span {
  outline: 3px solid #000;
  outline-offset: 3px;
}

small {
  color: #666;
  font-size: inherit;
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 2.5rem;
    line-height: 2.8rem;
  }
  h2 {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }
  .kk-header__logo img,
  .kk-header__logo svg {
    width: 185px !important;
    height: auto !important;
    max-width: none !important;
  }
  /* Auf Mobilgeräten Inputs immer volle Breite */
  input {
    max-width: 100%;
  }
  .field-row input {
    max-width: 100%;
  }
  /* Tagline im Header auf Status-Größe bringen */
  .kk-header .kk-header__tagline {
    font-size: 1.3rem !important;
    line-height: 1.5 !important;
  }
  /* Buttons auf Handy etwas größer und leichter klickbar */
  .kk-main button {
    font-size: 1.8rem;
    padding: 12px 24px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 24px;
  }


  
}
