:root{
  --bg-color: #fffcee;
  --text-color: #3f3f3f;
  --accent-color: #0e5200;
  --info-color: #0071bd; 
  --danger-color: #b91c1c;
  --link-color: #209ed5;
  --pill-color: #e9ffe4;
  --box-bg: #ffffff;
  --radius: 5px;
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  --anchor-offset: 86px;
  --maxw: 1100px;
  --c-text: #1e1e1e;
  --c-muted: #1e1e1e;
}
html { scroll-behavior: smooth; box-sizing: border-box; }

@font-face {
  font-family: 'Lora';
  src: url('fonts/lora/Lora-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url('fonts/lora/Lora-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/***************************
GENERAL STYLES 
****************************/

body{
  font-family: 'Lora', sans-serif;
  color:var(--c-text);
  background:var(--bg-color);
  line-height:1.5;
  margin: 0;

  min-height: 100vh;          /* Fallback */
  min-height: 100dvh;         /* korrektes mobiles Viewport-Maß */
  display: flex;
  flex-direction: column;
}
a{
  color:var(--link-color); 
  text-decoration: none
}
a:hover{
  text-decoration: underline
}

/***************************
TOP BAR
****************************/

.topbar{
  position: sticky; top: 0; z-index: 50;
  background: var(--accent-color);
  box-shadow: var(--box-shadow);
  color: #fff;
}
.topbar-inner{
  margin: 0 auto; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .6rem 1rem;
}
body:has(.page--topbar-wide) .topbar-inner { max-width: none; }

.topbar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand{
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; letter-spacing: .2px; font-size: 1.05rem;
}
.brand-logo{ height: 45px; width: 45px; }
.brand-name, .brand a{ color:#fff; text-decoration:none; }
.brand a:hover{ text-decoration: underline; }


.menu-toggle{
  appearance: none; background: transparent; border: 0; color: #fff; cursor: pointer;
  padding: .5rem; border-radius: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-toggle:hover{ background: rgba(255,255,255,.08); }
.menu-toggle:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.menu-toggle svg{ display:block; fill: currentColor; }

.dialog--drawer .dialog__panel{
  margin: 0 0 0 auto;
  height: 100vh; max-height: 100vh; overflow: auto;
  width: min(92vw, 380px);
  border-radius: 16px 0 0 16px;
  transform: translateX(16px);
}
.dialog--drawer.is-open .dialog__panel{ transform: translateX(0); }


.site-menu{
  display: flex; flex-direction: column; gap: .25rem;
  padding: .25rem 0 .75rem;
}
.site-menu__link{
  display: block; padding: .6rem .25rem;
  border-radius: 10px; color: inherit; text-decoration: none;
}
.site-menu__link:hover{ background: #f3f4f6; }
.site-menu__logout{ margin-top: .5rem; }
.site-menu__logout-btn{
  width: 100%; text-align: left; padding: .6rem .25rem; color: var(--text-color);
  border: 0; background: transparent; cursor: pointer; border-radius: 10px;
}
.site-menu__logout-btn:hover{ background: #fef2f2; color: #b91c1c; }


@media (min-width: 900px){
  .topbar-inner{ padding: .8rem 1rem; }
}


/***************************
CONTENT WRAP 
****************************/

.wrap{
  max-width:var(--maxw); 
  margin:0  auto 1.2rem auto; 
  padding:0 1rem
}

.content {
  padding: 1rem 0.5rem;
  background-color: var(--bg-color);
  color: var(--c-text);
}
@media (min-width: 769px) {
  .content {
    padding: 1rem 2rem;
  }
}

.page-title{
  text-align: center;
}

.page-title a {
  display: block;
  width: fit-content;
  margin: 0.5rem auto;
}

/***************************
GRID 
****************************/

.grid{
  display:grid; 
  gap:1rem
}
@media (min-width: 769px){ 
  .grid{
    grid-template-columns: 1fr 1fr; 
  } 
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 950px){ 
  .grid{
    grid-template-columns: 1.2fr 1.6fr 1.2fr;
  } 
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/***************************
FORM GRID
****************************/

.row { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }

.names-grid { 
  display: grid; 
  grid-template-columns: 44px 100px 1fr; 
  gap: .5rem 1rem; 
  align-items: center; 
}
.names-grid--header { 
  font-weight: 700; 
  color: #6b7280; 
  margin-bottom: .25rem; 
}
.names-grid--header > div { 
  padding-bottom: .25rem; 
  border-bottom: 1px solid #eef2f7; 
}
.names-row { display: contents; }  
.names-col.idx { 
  text-align: right; 
  color: #6b7280; 
  font-variant-numeric: tabular-nums;
}
.names-col input { box-sizing: border-box; width: 100%; }

.invite-grid { 
  display: grid; 
  grid-template-columns: 44px 1fr 1fr; 
  gap: .5rem 1rem; 
  align-items: center; 
}
.invite-grid--header { 
  font-weight: 700; 
  color: #6b7280; 
  margin-bottom: .25rem; 
}
.invite-grid--header > div { 
  padding-bottom: .25rem; 
  border-bottom: 1px solid #eef2f7; 
}
.invite-row { display: contents; }
.invite-col.idx { 
  text-align: right; 
  color: #6b7280; 
  font-variant-numeric: tabular-nums;
}
.invite-col input { box-sizing: border-box; width: 100%; }

@media (max-width: 520px){
  .names-grid { grid-template-columns: 32px 1fr; }
  .invite-grid { grid-template-columns: 32px 1fr 1fr; }
}

/***************************
PILL
****************************/

.pill-group{ 
  display:flex; 
  flex-wrap:wrap; 
  gap:.5rem;
  padding: 1rem;
  justify-content: center;
}

.pill{
  position:relative; display:inline-flex; align-items:center;
  border:1px solid var(--accent-color); 
  border-radius:999px;
  padding:.7rem 1.2rem; 
  user-select:none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
  background: var(--pill-color);
  color:var(--c-text);
  font-weight:700; 
  font-size:.9rem;
}

.pill input{ position:absolute; inset:0; opacity:0; pointer-events:none; }
.pill span{ display:inline-block; font-weight:700; }

.pill:has(input:checked) {
  background: var(--accent-color);
  color: #fff;
}
.pill-group .pill {
  cursor:pointer; 
}
.pill-group .pill:hover{ transform: translateY(-1px); }

.pills { display:flex; flex-wrap:wrap; gap:.35rem; }
@media (max-width: 768px){
  .pills { justify-content: center; }
}
.pill-select {
    display:inline-flex; 
    align-items:center; 
    gap:.35rem;
    padding:.2rem .6rem; 
    border-radius:999px;
    border:1px solid transparent; 
    cursor:pointer; 
    user-select:none;
    font-size:.9rem;
    position:relative; 
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
    background: var(--pill-color);
    color:var(--c-text);
    font-weight:700; 
}
.pill-select.is-allowed  { background:#e9f9ea; border-color:#b9e2be; } /* grün */
.pill-select.is-blocked  { background:#ffe9e9; border-color:#edb1b1; } /* rot  */
.pill-select[aria-disabled="true"] { opacity:.6; cursor:not-allowed; }
.pill-select .pill-icon { font-weight:700; line-height:1; }

/***************************
MUTED
****************************/

.muted{
  color:var(--c-muted);
}

/***************************
CARD
****************************/

.card{
  background: #fff;
  border-radius:var(--radius);
  padding:1rem; margin:1rem 0;
  box-shadow:var(--box-shadow);
  border:1px solid #e9ecef;
  padding:1rem; margin:1rem 0;
}
.card h2, .card h3{
    margin: 0 0 20px 0;
}
@media (max-width: 768px) {
  .card h2, .card h3, .card {
    text-align: center;
  }
}

.card .card__header{ 
  padding:1rem 1rem .5rem;
  border-bottom:1px solid #f1f5f9;
  margin-bottom:.25rem; 
}
.card .card__body{ padding:.5rem 1rem 1rem; }

.card .card__footer{
  padding: 1rem 0;
  display: flex;
  justify-content: flex-end;     
  gap: .75rem;
}
@media (max-width:768px) {
  .card .card__footer{
    justify-content: center;
  } 
}

.card.card__center .card__header {
  justify-content: center;
  text-align: center;
}

.card.card__center .card__footer {
  justify-content: center;
}


.invite-options{ display:grid; gap:.75rem; grid-template-columns:1fr; }
@media (min-width:680px){ .invite-options{ grid-template-columns:1fr 1fr; } }

.option-tile{
  display:flex;
  flex-direction: row;              /* überschreibt mobile button-regel */
  align-items:center;
  gap:.75rem;

  padding:.85rem .95rem;
  border:1px solid #e5e7eb;
  border-radius:12px;

  background:#fff;
  color: var(--accent-color);
  cursor:pointer;
  text-align:left;

  transition: background .15s, border-color .15s, box-shadow .15s, transform .03s, color .15s;
}

/* Icon soll immer die aktuelle Textfarbe übernehmen */
.option-tile svg{
  flex:0 0 auto;
  color: currentColor;
  fill: currentColor;
}

/* “muted” innerhalb der Tiles: normal grau, nicht schwarz */
.option-tile .muted{
  color:#6b7280;
}

/* Hover/Focus: bewusst invertieren (Grün + Weiß) */
.option-tile:hover,
.option-tile:focus-visible{
  background: var(--accent-color);
  border-color: var(--accent-color);
  color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

.option-tile:hover .muted,
.option-tile:focus-visible .muted{
  color: rgba(255,255,255,.85);
}

.option-tile:active{ transform:translateY(1px); }

/* Tastatur-Fokus sichtbar */
.option-tile:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}


.actions-grid .card__footer{
  padding: 0 1rem 1rem;
  display: flex; justify-content: flex-end; align-items: center; gap: .75rem;
}
.actions-grid .status-line{
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}

.chip{
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: 999px;
  font-weight: 700; font-size: .85rem;
  background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0;
}
.chip-success{
  background: #ecfdf5; color: #065f46; border-color: #a7f3d0;
}



/***************************
TOOLBAR
****************************/

.toolbar{
  display:flex; 
  gap:.6rem; 
  flex-wrap:wrap; 
  align-items:center
}
.toolbar-table {
  justify-content:center; 
  margin-top:1rem;
}

/***************************
SWITCH
****************************/

.switch {
  --h: 28px;
  --w: 52px;
  --knob: 22px;

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
}

.switch .slider {
  display: inline-block;
  width: var(--w);
  height: var(--h);
  border-radius: calc(var(--h) / 2);
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
  position: relative;
  transition: background .18s ease, border-color .18s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: var(--knob);
  height: var(--knob);
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: left .18s ease;
}

.switch input[type="checkbox"]{
  position: absolute;
  inset: 0;
  width: var(--w);
  height: var(--h);
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch input[type="checkbox"]:checked + .slider {
  background: var(--accent-color); 
  border-color: var(--accent-color);
}
.switch input[type="checkbox"]:checked + .slider::before {
  left: calc(var(--w) - var(--knob) - 3px);
}

.switch .switch-text {
  font-size: .9rem;
  color: #6b7280;
}
.switch input[type="checkbox"]:checked ~ .switch-text {
  color: var(--accent-color);
  content: "An";
}

@media (max-width: 768px) {

  .switch{
    display:inline-flex;    
    align-items:center;      
    gap:.5rem;
  }


  .switch .switch-text{
    display:inline-flex;
    align-items:center; 
    height: var(--h);  
    line-height: var(--h);   
  }

  .switch .slider{
    display:block;
    height: var(--h);
  }
}

.switch-text{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:.5rem 0;
}

/***************************
MEMBER CARDS
****************************/

.members-cards { 
  display: none; 
}

@media (max-width: 768px) {
  .cards-mobile {
    display: grid;
    gap: .75rem;
  }
  .card-mobile {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    padding: .75rem;
  }
  .card-mobile__title {
    font-weight: 700;
    margin-bottom: .25rem;
  }
  .card-mobile__wish {
    margin: .35rem 0 .6rem;
  }
  .card-mobile__actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }
  .card-mobile__actions form { display: inline; }
}

@media (min-width: 769px) {
  .cards-mobile { display: none; }
}

/***************************
NOTE
****************************/

.note{
  background:#fff; border-left:4px solid var(--info-color);
  padding:.6rem .75rem; color:#1e293b;
}
.note-success{
  border-left:4px solid var(--accent-color);
}
.note-danger{
  border-left: 4px solid var(--danger-color);
}

.note.draw-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

/***************************
STEPPER
****************************/

.wl-stepper{
  list-style:none; padding:0; margin:0 0 .75rem 0;
  display:flex; gap:.5rem; counter-reset: step;
}
.wl-stepper li{
  flex:1; text-align:center; font-weight:700; font-size:.9rem;
  background:#eef2f7; color:#475569; border-radius:999px; padding:.4rem .5rem;
  position:relative;
}
.wl-stepper li.is-active{ background:var(--accent-color); color:#fff; }

.wl-step{ display:none; }
.wl-step.is-active{ display:block; }

.wl-stepper-actions{
  display:flex; gap:.6rem; align-items:center; justify-content:center; margin-top:.75rem;
}

/***************************
INFO-HELP
****************************/

.help { margin: 0.5rem 0 1rem 0; }
.help summary {
  cursor: pointer;
  color: var(--accent-color);
  font-weight: 600;
  list-style: none;      
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.help summary::before {
  content: "▸";
  display: inline-block;
  transform: translateY(1px);
}
.help[open] summary { color: var(--accent-color); }
.help[open] summary::before { content: "▾"; }
.help .help-body {
  margin-top: .35rem;
  font-size: .95rem;
  color: #6b7280;                 
  line-height: 1.5;
  text-align: center;
  padding: 0 1rem;
}

/***************************
INPUTS
****************************/

input, button, a.btn-secondary, button.btn-secondary, textarea{
  font: inherit;
  padding:.65rem .75rem;
  border-radius: var(--radius);
  border:1px solid #e5e7eb;
  background:#fff;
  outline:none;
  transition:.15s border-color, .15s box-shadow, .15s transform;
}
textarea{
  width: calc(100% - 1.7rem); 
  min-height:11rem; resize:vertical
}
input:focus, textarea:focus{
  border-color:var(--accent-color); box-shadow:var(--ring)
}

.modal input[type="text"],
.modal input[type="email"] {
  width: 100%;
}

input[type="date"]{
  -webkit-appearance: none;
  appearance: none;
  position: relative;

  background: #fff;
  color: var(--text-color);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: .65rem .75rem;
  padding-right: 2.25rem;
  min-height: 44px;
  line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2' fill='none' stroke='%230e5200' stroke-width='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6' stroke='%230e5200' stroke-width='2'/%3E%3Cline x1='8' y1='2' x2='8' y2='6' stroke='%230e5200' stroke-width='2'/%3E%3Cline x1='3' y1='10' x2='21' y2='10' stroke='%230e5200' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 1.1rem;
}

fieldset.settings input[type="date"]{
  border: 1px solid #e5e7eb;
  width: calc(100% - 5rem);
  text-align: center;
}

input[type="date"]::-webkit-calendar-picker-indicator{
  opacity: 0;
}

input[type="date"]::-webkit-date-and-time-value { 
  text-align: center; 
}

input[type="date"]:-webkit-autofill {
  -webkit-text-fill-color: var(--text-color);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}


/***************************
BUTTONS
****************************/

button, .btn, a.btn-secondary {
  background:var(--accent-color); 
  color:#fff; 
  border:none; 
  cursor:pointer; 
  font-weight:700;
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 768px) {
  button, .btn, a.btn-secondary {
    flex-direction: column;
  }
}
button:hover, .btn:hover, a.btn-secondary:hover {
  background:var(--accent-color)
}
button:active, .btn:active{
  transform: translateY(1px)
}
.btn-secondary, a.btn-secondary{
  background:#fff; 
  color:var(--accent-color); 
  border:1px solid var(--accent-color) !important;
  font-weight: bold !important;
}
.btn-secondary:hover, a.btn-secondary:hover{
  color:#fff;
}
.btn-danger{
  background: var(--danger-color);
}

button[disabled], 
button.is-disabled {
  background: #cbd5e1 !important;
  color: #ffffff !important;
  border-color: #cbd5e1 !important;
  opacity: 1;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;     
}

button[disabled]:hover,
button[disabled]:active,
button.is-disabled:hover,
button.is-disabled:active {
  background: #cbd5e1 !important;
  transform: none !important;
}

.btn-danger:hover { filter: brightness(0.95); }
.btn-danger:active { transform: translateY(1px); }

.btn-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  padding: .9rem 1rem;
}
.btn-icon svg { display:block; }

.btn.is-loading{
  position: relative;
  pointer-events: none;
  opacity: .85;
}
.btn.is-loading::after{
  content: "";
  display: inline-block;
  width: 1em; height: 1em;
  margin-left: .5em; vertical-align: -0.125em;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .8s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/***************************
FORMS
****************************/

form.inline{
  display:flex; 
  gap:.6rem; 
  flex-wrap:wrap; 
  align-items:end
}
@media (max-width: 768px) {
  form.inline input{
    width: 100%;
  }
  form.inline button {
    margin: 0 auto;
  }
}

fieldset.settings {
  border:0; 
  padding:0; 
  margin:.5rem 0;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;   
  align-items:center;     
  gap:.5rem;
}

fieldset.settings textarea {
  border: 0;
}
fieldset.settings input {
  border: 0;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

fieldset.settings legend {
  margin-bottom: 10px;
    text-align: center;
}

fieldset.settings input {
  width: calc(100% - 1.7rem);
}

fieldset.settings input[type="checkbox"] {
  width: auto;
}

/***************************
GENERIC DIALOG
****************************/
.dialog{ 
  position: fixed; inset: 0; z-index: 100; 
  display: grid; place-items: center;
}
.dialog[hidden]{ display:none; }

.dialog__backdrop{
  position:absolute; inset:0; background:rgba(0,0,0,.5);
  opacity:0; transition:opacity .2s ease;
}
.dialog__panel{
  position:relative; background:#fff; color:var(--text-color, #111827);
  width:clamp(320px, 92vw, 560px); max-height:92vh; overflow:auto;
  border-radius:var(--radius, 12px); box-shadow:var(--box-shadow, 0 10px 30px rgba(0,0,0,.15));
  padding:1rem 2rem; transform:translateY(10px); opacity:.98;
  transition:transform .2s ease, opacity .2s ease;
}

.dialog.is-open .dialog__backdrop{ opacity:1; }
.dialog.is-open .dialog__panel{ transform:translateY(0); opacity:1; }

.dialog__header{ display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-bottom:.5rem; }
.dialog__title{ font-size:1.25rem; margin:0; }
.dialog__body{ padding:.25rem 0 .5rem; }
.dialog__footer{ display:flex; justify-content:flex-end; gap:.5rem; margin-top:.75rem; }

.dialog__close{ 
  background:transparent; 
  border:0; 
  font-size:1.25rem; 
  line-height:1; 
  cursor:pointer; 
  color: var(--accent-color); 
}
.dialog__close:hover {
  background: var(--danger-color);
  color: #fff;
}

body.has-dialog-open{ overflow:hidden; }

.dialog--wide .dialog__panel{ width:clamp(320px, 80vw, 760px); }
.dialog--narrow .dialog__panel{ width:clamp(280px, 80vw, 420px); }

.share-grid{ display:grid; grid-template-columns:1fr auto; gap:.5rem 1rem; align-items:center; }
.share-grid--header{ font-weight:700; color:#6b7280; margin-bottom:.25rem; }
.share-grid--header > div{ padding-bottom:.25rem; border-bottom:1px solid #eef2f7; }
.share-row{ display:contents; }


/***************************
LISTS
****************************/

ul,ol {
  margin-left: -20px;
  text-align: left;
}

/***************************
TABLES
****************************/

.table-desktop{
  overflow-x: auto;
}
table{
  border-collapse: collapse; 
  width:100%
}
th, td{
  padding:.6rem .75rem; 
  border-bottom:1px solid #eef2f7; 
  vertical-align:top
}
th{
  font-size:.92rem; 
  text-transform:uppercase; 
  letter-spacing:.03em; 
  color:var(--c-muted); 
  text-align: left;
}
tr:hover td{
  background:#fafafa
}

@media (max-width: 768px) {
  .table-desktop { display: none; }
}

/***************************
LANDING PAGES 
****************************/

.hero-cta { 
  background: var(--bg-color);
  padding: .5rem 0 0; 
}
.hero-cta h1 {
  margin-top: 0.2rem;
}

.hero-cta .assignment {
  border-radius: var(--radius);
  box-shadow:var(--box-shadow);
  grid-template-columns: 1fr;
}
.hero-cta__benefits{
  margin: 0;
  padding: 0;     
  list-style: none;        
  display: grid;
  gap: .5rem;
}

.hero-cta__benefits li{
  position: relative;
  padding-left: 2rem;    
  line-height: 1.4;
}

.hero-cta__benefits li::before{
  content: "✓"; 
  position: absolute;
  left: 0;
  top: .1rem;   
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;  
}

.hero-cta__form{
  margin-top: .25rem;
  gap: 1rem;
  justify-content: space-evenly;
}
.hero-cta__form input[type="text"]{
  text-align: center;
}

.visually-hidden{
  position:absolute !important; 
  width:1px; height:1px; 
  padding:0; margin:-1px; 
  overflow:hidden; 
  clip:rect(0 0 0 0); 
  white-space:nowrap; 
  border:0;
}


.hero-image {
  width: 50%;
  max-width: 150px;
  margin: 0 auto;
  display: block;
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

.steps-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 769px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1000px) {
  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 1rem;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: .5rem;
  background: var(--bg-color);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.step-card h3 {
  margin: 0 0 .25rem 0;
  font-size: 1.05rem;
}
.step-card p {
  margin: 0;
}

/***************************
GROUP OVERVIEW
****************************/

.group-list{
  display: grid; gap: 1rem;
}
@media (min-width: 780px){
  .group-list{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1120px){
  .group-list{ grid-template-columns: 1fr 1fr 1fr; }
}

.group-card{ padding: .9rem 1rem; }
.group-card__head{
  justify-content:space-between; 
  margin-bottom:.5rem; 
  border-bottom:1px solid #f1f5f9; 
  padding-bottom:.5rem;
  
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .5rem 1rem;
}
.group-card__title{ display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.group-card__name{
  font-weight: 800; 
  font-size: 1.05rem; 
  color: inherit; 
  text-decoration: none;
  word-break: break-word;
}
.group-card__name:hover{ text-decoration: underline; }
.group-card__actions{ display:flex; gap:.5rem; flex-wrap:wrap; }


@media (max-width: 520px){
  .group-card__head{ grid-template-columns: 1fr; }
  .group-card__actions{ justify-content: flex-start; }
}

/* Meta-Grid */
.group-meta{
  display:grid; 
  gap: .5rem .75rem;
  grid-template-columns: minmax(120px, 1fr) 1fr; 
  margin: .5rem 0 0 0;
  align-items: baseline;
}
@media (min-width: 720px){ .group-meta{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
.group-meta__item{ 
  display: contents;
  grid-template-columns: auto 1fr; 
  column-gap:.5rem; 
  align-items:baseline; 
}
.group-meta__item dt{
  font-size:.8rem; 
  color:#6b7280; 
  font-weight:700; 
  text-transform:uppercase; 
  letter-spacing:.03em;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
}
.group-meta__item dd{
  margin:0; font-weight:700; color:#334155;
}

.group-card{
  border:1px solid #e9ecef;
  box-shadow: var(--box-shadow);
  border-radius: var(--radius);
  background:#fff;
  transition: box-shadow .15s ease, transform .03s ease;
}
.group-card:hover{ box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-1px); }


@media (min-width: 700px){
  .group-meta{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .group-meta__item{
    display: grid; grid-template-columns: auto 1fr; gap: .4rem;
  }
}

/***************************
WICHTEL
****************************/

.assignments-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .assignments-row { grid-template-columns: 1fr; }
}

.assignment {
  display: grid;
  grid-template-columns: auto 1fr; 
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 14px;
  background: var(--card-bg, #fff);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}

.assignment-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
}

.assignment-label {
  font-size: .95rem;
  line-height: 1.2;
  color: var(--muted, #667085);
  margin-bottom: .2rem;
}
.assignment-name {
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .2px;
}

.assignment-wishlist summary {
  cursor: pointer;
  margin-top: .35rem;
}
.assignment-wishlist .wishlist-body {
  margin-top: .35rem;
}

.small { font-size: .875rem; }



/***************************
FOOTER
****************************/

.footer{
  margin-top:auto;     
  text-align:center; 
  color: #fff; 
  background-color: var(--accent-color);
  font-size:.9rem;
  padding: 50px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}

.footer a {
  color: #fff;
}
.footer a:hover {
  color: var(--bg-color);
}

.footer-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 1rem 2rem;
  align-items: start;
  grid-template-columns: 1fr;  
}

@media (min-width: 769px){
  .footer-inner{
    grid-template-columns: 1.2fr 1.2fr auto;   
  }
}

@media (max-width: 768px) {
  .footer-brand, .footer-nav, .footer-nav ul li, .footer-copy {
    margin: 0 auto;
  }
}

.footer-brand .brand { 
  text-decoration: none; 
}
.footer-tagline{
  margin: .35rem 0 0;
  opacity: .9;
  font-size: .95rem;
}

.footer-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;    
}
.footer a{ color: #fff; }  
.footer a:hover{ color: var(--bg-color); text-decoration: underline; }

.footer-copy{
  align-self: end;
  justify-self: start;
}
@media (max-width: 768px){
  .footer-copy{
    grid-column: 1 / -1; 
    margin-top: .5rem;
  }
}


/***************************
COOKIE BANNER
****************************/

.cookie-banner{
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: #111827; color: #fff; padding: .9rem 1rem;
  box-shadow: 0 -6px 20px rgba(0,0,0,.22);
}
.cookie-banner__content{ max-width: var(--maxw); margin: 0 auto; }
.cookie-banner a{ color: #a7f3d0; text-decoration: underline; }
.cookie-banner__actions{ display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.6rem; }

/***************************
SPECIAL
****************************/

.wichtel {
  font-size: 1.2rem;
}

.buttons {
  display: flex;
  flex-direction: column;    
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem 0;
  width: 100%;
  flex-wrap: nowrap;       
}

.buttons button {
  display: block;
  width: 100%;              
  text-align: center;
}

@media (min-width: 769px) {
  .buttons.buttons-left  { justify-content: flex-start; }
  .buttons.buttons-right { justify-content: flex-end; }
  .buttons button { width: auto; }
}

.budget-custom{
  margin-top: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;       
  text-align: center;
  margin-bottom: 1rem;
}
.budget-custom[hidden] {
  display: none;
}

.budget-custom label{
  margin: 0;
  font-weight: 700;
}

.budget-custom input[type="number"],
.budget-custom input[type="text"]{
  max-width: 160px; 
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.table-responsive {
  text-align: left;
}


.linklike{background:none;border:0;padding:0;color:#fff;cursor:pointer;text-decoration:underline;font:inherit}

.inline{display:inline}

.icon-crown { margin-right:.35rem; font-size:1em; line-height:1; vertical-align:middle; }

.table-mobile-cards .pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  font-size: .9rem;
}
.table-mobile-cards .pill .pill-icon {
  font-weight: 700;
  line-height: 1;
}
.table-mobile-cards .pill.is-allowed,
.table-mobile-cards .pill[data-excluded="0"] {
  background: #e9f9ea;  
  border-color: #b9e2be;
}
.table-mobile-cards .pill.is-blocked,
.table-mobile-cards .pill[data-excluded="1"] {
  background: #ffe9e9;  
  border-color: #edb1b1;
}

.table-mobile-cards td .buttons { 
  flex-direction: row;
}

@media (max-width: 768px) {
  .table-mobile-cards {
    border-collapse: separate;
    border-spacing: 0 .75rem; 
  }
  .table-mobile-cards thead { display: none; }
  .table-mobile-cards tbody { display: block; }

  .table-mobile-cards tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    padding: .75rem;
    margin-bottom: 1rem;
  }

  .table-mobile-cards tbody td {
    display: block;
    padding: .25rem 0;
    border: 0;
    text-align: center;
  }

  .table-mobile-cards  tr:hover td{
    background: none;
  }
  #setup-members.table-mobile-cards tbody td:nth-child(1) { display: none; }
  .table-mobile-cards tbody td:nth-child(1) .table-mobile-cards__title { 
    font-weight: bold;
    font-size: 1.2rem;
  }

  .table-mobile-cards tbody td:nth-child(2) .name--with-crown {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    margin-bottom: .2rem;
  }

  .table-mobile-cards tbody td:nth-child(3) {
    color: #6b7280;
    margin-bottom: .35rem;
  }

  .table-mobile-cards tbody td:nth-child(4) .pills {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: center;
  }

  .table-mobile-cards tbody td:nth-child(5) {
    display: flex;
    justify-content: center;
    margin-top: .6rem;
    flex-direction: column;
    align-items: center;
  }
}

/* Wunschlisten-Einträge (eigene + zugeloste Person) */
.wishlist-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  background: #fff;
}

.wishlist-item-icon img {
  display: block;
  border-radius: 8px;
}

.wishlist-item-main {
  flex: 1 1 auto;
  text-align: left;
  min-width: 0;
}

.wishlist-item-title {
  font-weight: 600;
  margin-bottom: .1rem;
}

.wishlist-item-desc {
  font-size: .9rem;
  color: #6b7280;
  margin-top: .15rem;
}

.wishlist-item-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Mobile: Button unter den Content schieben */
@media (max-width: 640px) {
  .wishlist-item {
    flex-direction: column;
    align-items: center;
  }

  .wishlist-item-icon {
    margin: 0 auto;
  }

  .wishlist-item-desc, .wishlist-item-title {
    text-align: center;
  }

  .wishlist-item-actions {
    width: 100%;
    margin-left: 0;
    margin-top: .5rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .wishlist-item-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

.success-icon {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    height: 36px;
    padding-top: 10px;
    width: 48px;
    margin: 10px;
    text-align: center;
}

.success-icon.no-success {
  background-color: var(--danger-color);
}

.wish-detail {
  display: grid;
  grid-template-columns: 1fr auto; 
  gap: .5rem 1rem; 
}

.wish-detail__button {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .wish-detail {
    grid-template-columns: 1fr;
  }
  .wish-detail__button {
    justify-content: center;
  }
  .wish-detail__body {
    text-align: center;
  }
}

.info-message {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.1rem;
}

.info-message.info-message__danger {
  background: var(--danger-color);
  color: #fff;
}

.partner-section {
  display: block;
  margin-top: 1.5rem;
  max-width: 480px;
  margin:1rem auto;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  font-size: 0.9rem;
  color: #8d8d8d;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media(max-width: 768px) {
  .partner-section a.btn-secondary {
    flex-direction: row;
  }
}

.notifications-toggle{
  position: relative;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: .25rem .4rem;
  display: flex;
  align-items: center;
}

.notifications-icon{
  font-size: 1.4rem;
  line-height: 1;
}

.notifications-badge{
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 .3rem;
  border-radius: 999px;
  background: #dc2626; /* Rot für ungelesen */
  color: #fff;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notifications-wrapper{
  position: relative;
}

.notifications-panel{
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: .5rem;
  min-width: 260px;
  max-width: min(320px, 90vw);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .75rem 1rem;
  z-index: 60;
  color: var(--text-color);
  height: 50vh;
  overflow: scroll;
  border: solid 1px;
}


.notifications-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.notifications-item + .notifications-item{
  border-top: 1px solid #e5e7eb;
}

.notification-link{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  padding: .5rem 0;
}

.notification-link--button{
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notifications-item.is-unread .notifications-message{
  font-weight: 600;
}

.notifications-meta{
  font-size: .8rem;
  color: var(--text-color);
}

.notifications-empty{
  margin: 0;
  font-size: .9rem;
  color: var(--text-color);
}

.notifications-icon{
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notifications-icon svg{
  width: 20px;
  height: 20px;
  display: block;
}

.notifications-wrapper {
  display: flex;
}

.notifications-meta-row {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: center;
}

.notifications-cta {
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
}

.notifications-mark-all {
  font-size: .85rem;
  padding: .35rem .6rem;
  width: fit-content;
}

.gift-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap:.5rem;
  margin-top:.75rem;
}
@media (max-width: 1145px) {
  .gift-search-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .gift-search-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .gift-search-grid {
    grid-template-columns: 1fr;
  }
}

.gift-search-grid-item {
  font-size:.85rem; 
  padding: 1rem;
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  flex-direction:row;
  text-decoration:none;
  border-radius: var(--radius);
  border:1px solid var(--accent-color);
  color: var(--accent-color);
  text-align: left;
}

.gift-search-grid-item:hover {
  cursor: pointer;
  background-color: #daf3d4;
}

.gift-search-grid-toggle {
  display: none;
}

@media (max-width: 520px) {
  .gift-search-grid--collapsed .gift-search-grid-item:nth-child(n+7) {
    display: none;
  }

  .gift-search-grid-toggle {
    display: inline-flex;
    margin-top: .75rem;
    width: 100%;
    justify-content: center;
  }
}