/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  --bg:                   #e9f2e7;
  --bg-surface:           #ffffff;
  --bg-input:             #ffffff;
  --border:               #c8dfc4;
  --border-input:         #b0ccab;
  --border-focus:         #2a7d3f;
  --text:                 #1a2b1c;
  --text-muted:           #4a6b50;
  --text-faint:           #8aab90;
  --heading:              #0d1a0f;
  --link:                 #7c3aed;
  --link-hover:           #6d28d9;
  --btn-primary-bg:       #2a7d3f;
  --btn-primary-fg:       #ffffff;
  --nav-bg:               #ddecd9;
  --nav-border:           #c8dfc4;
  --nav-text:             #4a6b50;
  --input-bg:             #ffffff;
  --input-text:           #1a2b1c;
  --shadow:               rgba(13, 26, 15, 0.08);
  --not-found-code:       #c8dfc4;
  --accent:               #7c3aed;
  --accent-hover:         #6d28d9;
  --toast-success-bg:     #b8dfc0;
  --toast-success-border: #2a7d3f;
  --toast-error-bg:       #f7c5c5;
  --toast-error-border:   #b33a3a;
  --toast-info-bg:        #d8d0fb;
  --toast-info-border:    #7c3aed;
  --toast-text:           #0d1a0f;
  --nav-height:           72px;
  --footer-height:        52px;
  --field-height:         3.25rem;
  --field-gap:            1rem;
  --textarea-height:      calc(3 * var(--field-height) + 2 * (var(--field-gap) + 0.5rem));
  --page-max-width:       860px;
  --page-padding:         1.5rem;
}

html.light {
  --bg:                   #e9f2e7;
  --bg-surface:           #ffffff;
  --bg-input:             #ffffff;
  --border:               #c8dfc4;
  --border-input:         #b0ccab;
  --border-focus:         #2a7d3f;
  --text:                 #1a2b1c;
  --text-muted:           #4a6b50;
  --text-faint:           #8aab90;
  --heading:              #0d1a0f;
  --link:                 #7c3aed;
  --link-hover:           #6d28d9;
  --btn-primary-bg:       #2a7d3f;
  --btn-primary-fg:       #ffffff;
  --nav-bg:               #ddecd9;
  --nav-border:           #c8dfc4;
  --nav-text:             #4a6b50;
  --input-bg:             #ffffff;
  --input-text:           #1a2b1c;
  --shadow:               rgba(13, 26, 15, 0.08);
  --not-found-code:       #c8dfc4;
  --accent:               #7c3aed;
  --accent-hover:         #6d28d9;
  --toast-success-bg:     #b8dfc0;
  --toast-success-border: #2a7d3f;
  --toast-error-bg:       #f7c5c5;
  --toast-error-border:   #b33a3a;
  --toast-info-bg:        #d8d0fb;
  --toast-info-border:    #7c3aed;
  --toast-text:           #0d1a0f;
}

html.dark {
  --bg:                   #111a13;
  --bg-surface:           #1a2b1c;
  --bg-input:             #111a13;
  --border:               #243d27;
  --border-input:         #2e5233;
  --border-focus:         #3a9e52;
  --text:                 #dceedd;
  --text-muted:           #7aaa82;
  --text-faint:           #3d6645;
  --heading:              #eaf5eb;
  --link:                 #9d6ef5;
  --link-hover:           #b490f7;
  --btn-primary-bg:       #3a9e52;
  --btn-primary-fg:       #ffffff;
  --nav-bg:               #1a2b1c;
  --nav-border:           #243d27;
  --nav-text:             #7aaa82;
  --input-bg:             #111a13;
  --input-text:           #dceedd;
  --shadow:               rgba(0, 0, 0, 0.5);
  --not-found-code:       #243d27;
  --accent:               #9d6ef5;
  --accent-hover:         #b490f7;
  --toast-success-bg:     #164d24;
  --toast-success-border: #3a9e52;
  --toast-error-bg:       #4d1616;
  --toast-error-border:   #b33a3a;
  --toast-info-bg:        #2d1a66;
  --toast-info-border:    #9d6ef5;
  --toast-text:           #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not(.light):not(.dark) {
    --bg:                   #111a13;
    --bg-surface:           #1a2b1c;
    --bg-input:             #111a13;
    --border:               #243d27;
    --border-input:         #2e5233;
    --border-focus:         #3a9e52;
    --text:                 #dceedd;
    --text-muted:           #7aaa82;
    --text-faint:           #3d6645;
    --heading:              #eaf5eb;
    --link:                 #9d6ef5;
    --link-hover:           #b490f7;
    --btn-primary-bg:       #3a9e52;
    --btn-primary-fg:       #ffffff;
    --nav-bg:               #1a2b1c;
    --nav-border:           #243d27;
    --nav-text:             #7aaa82;
    --input-bg:             #111a13;
    --input-text:           #dceedd;
    --shadow:               rgba(0, 0, 0, 0.5);
    --not-found-code:       #243d27;
    --accent:               #9d6ef5;
    --accent-hover:         #b490f7;
    --toast-success-bg:     #164d24;
    --toast-success-border: #3a9e52;
    --toast-error-bg:       #4d1616;
    --toast-error-border:   #b33a3a;
    --toast-info-bg:        #2d1a66;
    --toast-info-border:    #9d6ef5;
    --toast-text:           #ffffff;
  }
}

/* ============================================================
   SCHRIFTARTEN
   ============================================================ */

@font-face {
  font-family: 'Comfortaa';
  src: url('/public/fonts/Comfortaa-VariableFont_wght.woff2') format('woff2'),
       url('/public/fonts/Comfortaa-VariableFont_wght.ttf')   format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET & BASIS
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Comfortaa', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background 0.2s, color 0.2s;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  padding-bottom: var(--footer-height);
  overflow-x: hidden;
  width: 100%;
  animation: page-in 0.15s ease forwards;
}

@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover { color: var(--link-hover); }

img, video, iframe, embed, object {
  max-width: 100%;
  display: block;
}

ul, ol { padding-left: 1.5rem; }

/* ============================================================
   TYPOGRAFIE
   ============================================================ */

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--heading);
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { line-height: 1.7; }

small { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================================
   NAVIGATION
   ============================================================ */

#nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--page-padding);
  height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.nav__side { display: flex; align-items: center; gap: 0.75rem; }
.nav__side--right { justify-content: flex-end; }

.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.15s;
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo-img { height: 48px; width: auto; display: block; }

.nav__theme {
  background: none;
  border: 1px solid var(--border-input);
  color: var(--nav-text);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.nav__theme:hover { border-color: var(--heading); color: var(--heading); }

.nav__burger-wrapper { position: relative; }

.nav__burger {
  background: none;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.nav__burger:hover { border-color: var(--heading); }

.nav__burger-line {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav__burger--open .nav__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open .nav__burger-line:nth-child(2) { opacity: 0; }
.nav__burger--open .nav__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 8px 24px var(--shadow);
  overflow: hidden;
  animation: dropdown-in 0.15s ease forwards;
  z-index: 200;
}

.nav__dropdown-item {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s;
}

.nav__dropdown-item:hover { background: var(--bg); }
.nav__dropdown-item--danger { color: #e05555; }
.nav__dropdown-item--danger:hover { background: var(--bg); color: #c03333; }
.nav__dropdown-item--upgrade { color: var(--btn-primary-bg); font-weight: 600; }

.nav__dropdown-item--profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav__dropdown-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.nav__dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .nav { padding: 0 1rem; height: 60px; }
  .nav__logo-img { height: 36px; }
}

/* ============================================================
   SEITEN – EINHEITLICHE BREITE
   ============================================================ */

.page,
.page--home,
.page--profile,
.page--profile-view,
.page--legal,
.page--upgrade,
.page--shop-edit,
.page--shop-view,
.page--connections,
.page--dashboard,
.page--settings {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 2.5rem var(--page-padding);
  box-sizing: border-box;
}

/* ============================================================
   HOME – HERO
   ============================================================ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1rem;
  gap: 1.25rem;
}

.hero h1 { font-size: 2.4rem; font-weight: 700; }

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:hover:not(:disabled) { opacity: 0.85; }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }

.btn--secondary {
  background: transparent;
  border: 1px solid var(--border-input);
  color: var(--text-muted);
}

.btn--secondary:hover:not(:disabled) {
  border-color: var(--heading);
  color: var(--heading);
  opacity: 1;
}

.btn--danger {
  background: transparent;
  border: 1px solid #b33a3a;
  color: #b33a3a;
}

.btn--danger:hover:not(:disabled) {
  background: #b33a3a;
  color: #ffffff;
  opacity: 1;
}

.btn--connected {
  background: transparent;
  border: 1px solid var(--border-focus);
  color: var(--border-focus);
  cursor: default;
}

.btn--connected:hover { opacity: 1; }

.btn--pending {
  background: transparent;
  border: 1px solid var(--border-input);
  color: var(--text-faint);
  cursor: not-allowed;
}

.btn--full { width: 100%; padding: 0.75rem; }
.btn--sm   { padding: 0.35rem 0.85rem; font-size: 0.85rem; }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   AUTH-SEITEN
   ============================================================ */

.page--auth {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3.5rem var(--page-padding);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-box {
  width: 100%;
  max-width: var(--page-max-width);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.auth-box h1 { font-size: 1.7rem; }

.auth-box__hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-box__hint a { color: var(--accent); }
.auth-box__hint a:hover { color: var(--accent-hover); }

/* ============================================================
   FORMULARE
   ============================================================ */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--field-gap);
  width: 100%;
}

.form-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-field__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-field__label--hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* ============================================================
   FLOATING LABELS
   ============================================================ */

.form-field--floating {
  position: relative;
  margin-top: 0.5rem;
}

.form-input {
  height: var(--field-height);
  padding: 0.5rem 0.9rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border-input);
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--border-focus) 20%, transparent);
}

.form-input::placeholder { color: transparent; }
.form-input--error { border-color: #e05555; }

.form-input--error:focus {
  border-color: #e05555;
  box-shadow: 0 0 0 3px rgba(224, 85, 85, 0.2);
}

.form-input--error::placeholder { color: #e05555; opacity: 1; }

.form-input--textarea {
  height: var(--textarea-height);
  min-height: var(--textarea-height);
  max-height: var(--textarea-height);
  padding: 1.1rem 0.9rem;
  resize: none;
  line-height: 1.6;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset;
  -webkit-text-fill-color: var(--input-text);
  transition: background-color 99999s ease 0s;
}

.form-field--floating label {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-faint);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease,
              color 0.2s ease, transform 0.2s ease;
  background: var(--input-bg);
  padding: 0;
  white-space: nowrap;
}

.form-field--floating .form-input:focus + label,
.form-field--floating .form-input:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.form-field--floating .form-input:focus + label { color: var(--border-focus); }

.form-field--floating .form-input--error + label {
  opacity: 0;
  pointer-events: none;
}

.form-field--floating textarea + label {
  top: 1.1rem;
  transform: none;
}

.form-field--floating textarea:focus + label,
.form-field--floating textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  padding: 0 0.25rem;
}

select.form-input {
  height: var(--field-height);
  padding: 0 0.9rem;
  cursor: pointer;
}

.auth-form__forgot {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  display: block;
  margin-top: calc(-1 * var(--field-gap) / 2);
}

.auth-form__forgot:hover { color: var(--accent); }

.forgot-success {
  background: color-mix(in srgb, var(--border-focus) 10%, transparent);
  border: 1px solid var(--border-focus);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.forgot-success__icon { font-size: 2rem; line-height: 1; }

.forgot-success__text { font-size: 0.9rem; color: var(--text); line-height: 1.6; }

/* ============================================================
   PROFIL – BEARBEITEN
   ============================================================ */

.profile-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile-header h1 { margin-bottom: 0.25rem; }
.profile-header__username { color: var(--text-muted); font-size: 0.95rem; }
.profile-header__change-password { font-size: 0.85rem; color: var(--text-muted); }
.profile-header__change-password:hover { color: var(--accent); }

.profile-form-container { margin-bottom: 3rem; }

.profile-preview {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-preview h2 {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.profile-preview__content { display: flex; flex-direction: column; gap: 0.75rem; }
.preview__name { font-size: 1.2rem; font-weight: 600; color: var(--heading); }
.preview__bio  { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }
.preview__bio a { color: var(--link); }
.preview__website { color: var(--link); font-size: 0.9rem; }
.preview__website:hover { text-decoration: underline; }

/* ============================================================
   PROFIL – ÖFFENTLICHE ANSICHT
   ============================================================ */

.profile-view { display: flex; flex-direction: column; gap: 1.5rem; }

.profile-view__header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile-view__header h1 { font-size: 2rem; }
.profile-view__username { color: var(--text-muted); font-size: 0.95rem; }
.profile-view__bio { color: var(--text); line-height: 1.7; }
.profile-view__bio a { color: var(--link); }
.profile-view__bio p { margin-bottom: 0.5rem; }
.profile-view__bio p:last-child { margin-bottom: 0; }
.profile-view__website { margin: 0; }
.profile-view__website a { color: var(--link); font-size: 0.95rem; }
.profile-view__website a:hover { text-decoration: underline; }

.profile-view__meta {
  color: var(--text-faint);
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   PROFIL – SEKTIONEN
   ============================================================ */

.profile-view__announcement {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-view__announcement-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.profile-view__announcement-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.profile-view__section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.profile-view__description {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.profile-view__description-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.profile-view__address {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.profile-view__address-line {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-view__company {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.profile-view__company-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-view__availability {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.profile-view__availability-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-view__availability-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-view__availability-row:last-child {
  border-bottom: none;
}

.profile-view__availability-day {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 100px;
}

.profile-view__availability-times {
  color: var(--text);
  text-align: right;
}

/* ============================================================
   CONNECT BUTTON
   ============================================================ */

.connect-button-wrapper { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============================================================
   404 – NOT FOUND
   ============================================================ */

.page--not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem var(--page-padding);
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.not-found__code {
  font-size: 7rem;
  font-weight: 700;
  color: var(--not-found-code);
  line-height: 1;
  user-select: none;
}

.not-found__subtitle { color: var(--text-muted); margin-bottom: 1rem; }

/* ============================================================
   TOAST
   ============================================================ */

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 340px;
  box-shadow: 0 4px 16px var(--shadow);
  animation: toast-in 0.2s ease forwards;
  pointer-events: all;
}

.toast--success { background: var(--toast-success-bg); border: 1px solid var(--toast-success-border); color: var(--toast-text); }
.toast--error   { background: var(--toast-error-bg);   border: 1px solid var(--toast-error-border);   color: var(--toast-text); }
.toast--info    { background: var(--toast-info-bg);    border: 1px solid var(--toast-info-border);    color: var(--toast-text); }

.toast__close {
  background: none;
  border: none;
  color: var(--toast-text);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.toast__close:hover { opacity: 1; }
.toast--hiding { animation: toast-out 0.2s ease forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(10px) scale(0.97); }
}

/* ============================================================
   ZUSTÄNDE
   ============================================================ */

.loading-text { color: var(--text-faint); font-size: 0.95rem; padding: 1rem 0; }
.error-text   { color: #e05555; font-size: 0.95rem; }

.page-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 0;
}

.restricted__icon { font-size: 3rem; margin-bottom: 0.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  .page,
  .page--home,
  .page--profile,
  .page--profile-view,
  .page--legal,
  .page--upgrade,
  .page--shop-edit,
  .page--shop-view,
  .page--connections,
  .page--dashboard,
  .page--settings {
    padding: 1.5rem 1rem;
  }

  .hero { padding: 3rem 0.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .not-found__code { font-size: 5rem; }
  #toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast { max-width: 100%; }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  z-index: 200;
}

.footer__details {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.footer__details summary { list-style: none; }
.footer__details summary::-webkit-details-marker { display: none; }

.footer__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.footer__summary:hover .footer__copyright { color: var(--text); }

.footer__copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer__arrow {
  font-size: 1.2rem;
  color: var(--text-faint);
  transition: transform 0.25s ease, color 0.15s;
  line-height: 1;
}

.footer__details[open] .footer__arrow { transform: rotate(180deg); }

.footer__links {
  padding-bottom: 1.5rem;
  animation: footer-open 0.2s ease forwards;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

@media (min-width: 600px) {
  .footer__nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1rem;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer__col a,
.footer__col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.footer__col a:hover { color: var(--link); }

.footer__lang-select {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border-input);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
  width: 100%;
}

.footer__lang-select:focus {
  outline: none;
  border-color: var(--accent);
}

@keyframes footer-open {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .footer__details { padding: 0 1rem; }
  .footer__nav { gap: 1.5rem; }
}

/* ============================================================
   RECHTLICHE SEITEN
   ============================================================ */

.page--legal h1 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-content h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--heading);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-list {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   CAPTCHA & HONEYPOT
   ============================================================ */

.form-field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

.captcha-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.captcha__question {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   KONTO LÖSCHEN
   ============================================================ */

.delete-account__warning {
  background: color-mix(in srgb, #b33a3a 10%, transparent);
  border: 1px solid #b33a3a;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.delete-account__icon { font-size: 2rem; line-height: 1; }

.delete-account__description {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.delete-account__confirm-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* ============================================================
   UPGRADE – LIZENZÜBERSICHT
   ============================================================ */

.upgrade-wrapper { display: flex; flex-direction: column; gap: 2.5rem; }

.upgrade__current { display: flex; flex-direction: column; gap: 0.25rem; }

.upgrade__current-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
}

.upgrade__current-name { font-size: 1.4rem; font-weight: 700; color: var(--heading); }
.upgrade__current-expires { font-size: 0.85rem; color: var(--text-muted); }
.upgrade__current-addon { font-size: 0.85rem; color: var(--accent); }

.upgrade__divider { border: none; border-top: 1px solid var(--border); }

.upgrade__interval { display: flex; flex-direction: column; gap: 0.75rem; }
.upgrade__interval-label { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }

.interval-toggle { display: flex; align-items: center; gap: 0.5rem; }

.interval-toggle__btn {
  background: none;
  border: 1px solid var(--border-input);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.15s;
}

.interval-toggle__btn--active {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: #ffffff;
}

.interval-toggle__saving {
  font-size: 0.75rem;
  color: var(--btn-primary-bg);
  font-weight: 600;
  background: color-mix(in srgb, var(--btn-primary-bg) 15%, transparent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow 0.2s;
}

.plan-card:hover { box-shadow: 0 4px 20px var(--shadow); }

.plan-card--featured {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--btn-primary-bg) 30%, transparent);
}

.plan-card--current { border-color: var(--accent); }

.plan-card__name { font-size: 1.2rem; font-weight: 700; color: var(--heading); }

.plan-card__price { display: flex; align-items: baseline; gap: 0.35rem; }
.plan-card__price-amount { font-size: 2rem; font-weight: 700; color: var(--heading); }
.plan-card__price-period { font-size: 0.85rem; color: var(--text-muted); }

.plan-card__features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.plan-card__features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.plan-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--btn-primary-bg);
  font-weight: 700;
}

.plan-card__addon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.plan-card__addon-checkbox { accent-color: var(--btn-primary-bg); width: 16px; height: 16px; cursor: pointer; }

.plan-card__addon-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.plan-card__addon-price { color: var(--text-muted); font-size: 0.8rem; }
.plan-card__btn { width: 100%; }
.plan-card__current-label { text-align: center; font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* ============================================================
   SHOP – BEARBEITEN
   ============================================================ */

.shop-edit__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.shop-edit__form-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.shop-item-form { display: flex; flex-direction: column; gap: 1.25rem; }
.shop-edit__meta { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 1rem; }
.shop-edit__empty { color: var(--text-muted); font-size: 0.95rem; }
.shop-edit__list { display: flex; flex-direction: column; gap: 0.75rem; }

.shop-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 1rem;
}

.shop-item-card--inactive { opacity: 0.5; }
.shop-item-card__info { display: flex; flex-direction: column; gap: 0.2rem; }
.shop-item-card__title { font-weight: 600; color: var(--heading); font-size: 0.95rem; }
.shop-item-card__price { color: var(--btn-primary-bg); font-size: 0.9rem; font-weight: 600; }
.shop-item-card__stock { font-size: 0.8rem; color: var(--text-faint); }
.shop-item-card__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ============================================================
   SHOP – ÖFFENTLICHE ANSICHT
   ============================================================ */

.shop-view { display: flex; flex-direction: column; gap: 2rem; }

.shop-view h1 {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.shop-view__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.shop-view__empty { color: var(--text-muted); }

.shop-view-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.shop-view-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
}

.shop-view-card__title { font-size: 1rem; font-weight: 600; color: var(--heading); }
.shop-view-card__desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; flex: 1; }

.shop-view-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.shop-view-card__price { font-size: 1.1rem; font-weight: 700; color: var(--btn-primary-bg); }
.shop-view-card__stock { font-size: 0.78rem; color: var(--text-faint); }

/* ============================================================
   VERBINDUNGEN
   ============================================================ */

.connections-wrapper { display: flex; flex-direction: column; gap: 1.5rem; }

.connections-wrapper h1 {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.connections__section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
}

.connections__empty { color: var(--text-muted); font-size: 0.95rem; }

.connections-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.connections-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 1rem;
}

.connections-list__info { display: flex; flex-direction: column; gap: 0.15rem; }

.connections-list__name {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.15s;
}

.connections-list__name:hover { color: var(--link); }
.connections-list__username { font-size: 0.8rem; color: var(--text-faint); }
.connections-list__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.dashboard__header h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.dashboard__welcome { color: var(--text-muted); font-size: 0.95rem; }

.dashboard__grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Klein – 2 Kacheln pro Zeile, 5 Zeilen */
@media (max-width: 539px) {
  .dashboard__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard__tile {
    grid-column: span 1;
  }
}

/* Mittel – 2 / 3 / 3 / 2 Layout, schmaleres Grid */
@media (min-width: 540px) and (max-width: 959px) {
  .dashboard__grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }

  /* Zeile 1 – 2/3 + 1/3 */
  .dashboard__tile:nth-child(1)  { grid-column: span 4; }
  .dashboard__tile:nth-child(2)  { grid-column: span 2; }

  /* Zeile 2 – je 1/3 */
  .dashboard__tile:nth-child(3)  { grid-column: span 2; }
  .dashboard__tile:nth-child(4)  { grid-column: span 2; }
  .dashboard__tile:nth-child(5)  { grid-column: span 2; }

  /* Zeile 3 – je 1/3 */
  .dashboard__tile:nth-child(6)  { grid-column: span 2; }
  .dashboard__tile:nth-child(7)  { grid-column: span 2; }
  .dashboard__tile:nth-child(8)  { grid-column: span 2; }

  /* Zeile 4 – 1/3 + 2/3 */
  .dashboard__tile:nth-child(9)  { grid-column: span 2; }
  .dashboard__tile:nth-child(10) { grid-column: span 4; }
}

/* Groß – 5 Kacheln pro Zeile, 2 Zeilen */
@media (min-width: 960px) {
  .dashboard__grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 100%;
  }

  .dashboard__tile {
    grid-column: span 1;
  }
}

.dashboard__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  font-family: inherit;
  color: var(--text);
  min-height: 140px;
  position: relative;
  box-sizing: border-box;
}

.dashboard__tile:hover:not(:disabled) {
  box-shadow: 0 4px 16px var(--shadow);
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.dashboard__tile--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.dashboard__tile--danger {
  border-color: color-mix(in srgb, #b33a3a 40%, var(--border));
}

.dashboard__tile--danger:hover:not(:disabled) {
  border-color: #b33a3a;
  box-shadow: 0 4px 16px rgba(179, 58, 58, 0.2);
}

.dashboard__tile-icon { font-size: 2rem; line-height: 1; }

.dashboard__tile-label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}

.dashboard__tile-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard__tile-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard__tile--disabled .dashboard__tile-desc {
  color: var(--accent);
  font-style: italic;
}

.dashboard__tile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e05555;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* ============================================================
   EINSTELLUNGEN – LISTE
   ============================================================ */

.settings__header { margin-bottom: 2rem; }

.settings__back {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
  transition: color 0.15s;
}

.settings__back:hover { color: var(--link); }
.settings__header h1 { font-size: 1.6rem; }

.settings__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.settings__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.settings__item:hover {
  border-color: var(--border-focus);
  box-shadow: 0 2px 8px var(--shadow);
}

.settings__item--active {
  border-color: var(--border-focus);
  background: color-mix(in srgb, var(--border-focus) 5%, var(--bg-surface));
}

.settings__item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.settings__item-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }

.settings__item-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.settings__item-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings__item-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings__item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings__item-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.settings__item-arrow { font-size: 1.4rem; color: var(--text-faint); line-height: 1; }

.settings__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #e05555;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* ============================================================
   EINSTELLUNGEN – UNTERSEITEN
   ============================================================ */

.settings__section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings__picture-current { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.settings__picture-label { font-size: 0.85rem; color: var(--text-muted); }

.settings__picture-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.settings__file-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.settings__file-wrapper { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.settings__file-name { font-size: 0.85rem; color: var(--text-muted); word-break: break-all; }
.settings__form { display: flex; flex-direction: column; gap: 1.25rem; }

/* ============================================================
   VERFÜGBARKEITSZEITEN
   ============================================================ */

.availability__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.availability__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.availability__day {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.availability__slots {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 600px) {
  .availability__slots {
    position: relative;
    grid-template-columns: repeat(4, 1fr);
  }
}

.availability__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.availability__label {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.availability__input {
  -webkit-appearance: none;  /* iOS Shadow-DOM-Styles deaktivieren */
  appearance: none;
  display: block;             /* Replaced Element auf Block zwingen */
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 2.5rem;
  padding: 0.8rem
   0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--input-text);
  font-family: inherit;
}

.availability__error {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, #b33a3a 10%, transparent);
  border: 1px solid #b33a3a;
  border-radius: 6px;
  font-size: 0.88rem;
}

/* ============================================================
   ANZEIGEOPTIONEN
   ============================================================ */

.display__list { display: flex; flex-direction: column; gap: 0.5rem; }

.display__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.display__row:hover { border-color: var(--border-focus); }

.display__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--btn-primary-bg);
  cursor: pointer;
  flex-shrink: 0;
}

.display__label { font-size: 0.95rem; color: var(--text); font-weight: 500; }

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */

.forgot-success {
  background: color-mix(in srgb, var(--border-focus) 10%, transparent);
  border: 1px solid var(--border-focus);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.forgot-success__icon { font-size: 2rem; line-height: 1; }
.forgot-success__text { font-size: 0.9rem; color: var(--text); line-height: 1.6; }

/* ============================================================
   PAGE-ERROR & RESTRICTED
   ============================================================ */

.page-error {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 0;
}

.restricted__icon { font-size: 3rem; margin-bottom: 0.5rem; }
.loading-text { color: var(--text-faint); font-size: 0.95rem; padding: 1rem 0; }
.error-text   { color: #e05555; font-size: 0.95rem; }

/* ============================================================
   AVATAR
   ============================================================ */

.avatar {
  width: var(--avatar-size, 48px);
  height: var(--avatar-size, 48px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--border);
}

.avatar--placeholder {
  width: var(--avatar-size, 48px);
  height: var(--avatar-size, 48px);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar--placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Profil – öffentliche Ansicht */
.profile-view__avatar-wrapper {
  display: flex;
  justify-content: center;
  padding-bottom: 1.5rem;
}

.profile-view__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
}

/* Einstellungen – Vorschau */
.settings__picture-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* ============================================================
   RADIO GROUPS
   ============================================================ */

.form-field--radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Standard – kompakte Liste */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.radio-group__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.radio-group__row:hover {
  border-color: var(--border-focus);
}

.radio-group__row:has(input:checked) {
  border-color: var(--border-focus);
  background: color-mix(in srgb, var(--border-focus) 6%, var(--bg-surface));
}

/* Verstecktes natives Radio */
.radio-group__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Eigener Radio-Indikator */
.radio-group__indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-input);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.radio-group__indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-focus);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.15s, transform 0.15s;
}

.radio-group__row:has(input:checked) .radio-group__indicator {
  border-color: var(--border-focus);
}

.radio-group__row:has(input:checked) .radio-group__indicator::after {
  opacity: 1;
  transform: scale(1);
}

.radio-group__label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* Karten-Variante – für Sichtbarkeit */
.radio-group--card {
  gap: 0.5rem;
}

.radio-group__card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.radio-group__card:hover {
  border-color: var(--border-focus);
}

.radio-group__card:has(input:checked) {
  border-color: var(--border-focus);
  background: color-mix(in srgb, var(--border-focus) 6%, var(--bg-surface));
}

.radio-group__card .radio-group__indicator {
  margin-top: 0.15rem;
}

.radio-group__card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.radio-group__card .radio-group__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
}

.radio-group__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   PROFILBILD – ZWEI-CONTAINER-LAYOUT
   ============================================================ */

.picture__row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.picture__box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 130px;
}

.picture__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.picture__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin: 0 auto;
  display: block;
}

/* Vorschau-Container – rund, overflow hidden für Zoom-Effekt */
.picture__preview-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-focus);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.picture__preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.1s ease;
  display: block;
}

/* Zoom-Regler */
.picture__zoom-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  margin-top: 0.25rem;
}

.picture__zoom-label {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.picture__zoom-slider {
  width: 120px;
  accent-color: var(--btn-primary-bg);
  cursor: pointer;
}

@media (max-width: 480px) {
  .picture__row {
    flex-direction: column;
    align-items: center;
  }

  .picture__box {
    width: 100%;
    align-items: center;
  }
}