:root {
      --ink: var(--tagonym-ink);
      --muted: var(--tagonym-muted);
      --line: var(--tagonym-line);
      --bg: var(--tagonym-bg);
      --white: var(--tagonym-surface);
      --radius: var(--tagonym-radius);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    header {
      background: var(--white);
      border-bottom: 1px solid var(--line);
    }

    .header-inner {
      max-width: 960px;
      margin: auto;
      min-height: 78px;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: 2px;
      text-decoration: none;
      color: var(--ink);
    }

    .top-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .language {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      text-decoration: none;
      letter-spacing: 1px;
    }

    .logout {
      background: transparent;
      border: 0;
      color: var(--muted);
      font-size: 13px;
      cursor: pointer;
    }

    main {
      max-width: 720px;
      margin: 0 auto;
      padding: 85px 24px 80px;
    }

    .eyebrow {
      margin: 0 0 18px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 2.5px;
      color: var(--muted);
    }

    h1 {
      font-size: clamp(38px, 7vw, 62px);
      line-height: 1.08;
      letter-spacing: -2.5px;
      margin: 0 0 18px;
      font-weight: 750;
    }

    .intro {
      color: var(--muted);
      font-size: 17px;
      line-height: 1.7;
      margin: 0 0 44px;
    }

    .panel {
      background: var(--white);
      padding: 34px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
    }

    .panel h2 {
      margin: 0 0 12px;
      font-size: 21px;
      letter-spacing: -.5px;
    }

    .helper {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.65;
      margin: 0 0 28px;
    }

    label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    input {
      width: 100%;
      padding: 16px;
      border: 1px solid #dedede;
      border-radius: 10px;
      font: inherit;
      outline: none;
      background: white;
    }

    input:focus {
      border-color: var(--ink);
      box-shadow: 0 0 0 3px #17191b12;
    }

    button.primary {
      display: block;
      width: 100%;
      padding: 17px 20px;
      margin-top: 14px;
      border: 0;
      border-radius: 100px;
      background: var(--ink);
      color: white;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    button.primary:hover { background: #333; }
    button:disabled { opacity: .55; cursor: wait; }

    .notice {
      display: none;
      border-radius: 10px;
      padding: 17px;
      margin-top: 20px;
      font-size: 14px;
      line-height: 1.6;
      background: #f1f3f3;
    }

    .notice.error { background: #fff0ee; }


    .tag-icon {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      background: #f3f3f3;
      display: grid;
      place-items: center;
      font-size: 22px;
      flex-shrink: 0;
    }



    .tag-id-copy {
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      font-size: 19px;
      padding: 4px 6px;
      flex-shrink: 0;
    }

.tag-id {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

    .status {
      font-size: 11px;
      font-weight: 700;
      padding: 7px 10px;
      background: #eaf4ed;
      color: #27613d;
      border-radius: 30px;
      white-space: nowrap;
    }

    .status.off {
      background: #f1f1f1;
      color: #777;
    }

    .edit-btn {
      border: 1px solid var(--line);
      background: var(--tagonym-surface);
      border-radius: 100px;
      padding: 10px 13px;
      cursor: pointer;
      font-size: 17px;
      color: var(--ink);
    }

    .edit-btn:hover { background: #f4f4f4; }


    .name-editor input {
      flex: 1 1 180px;
      min-width: 0;
      padding: 12px;
    }


    .name-editor button.save {
      background: var(--ink);
      color: white;
    }

    .name-error {
      width: 100%;
      color: #b33b2c;
      font-size: 12px;
    }

    .pause-btn {
      border: 1px solid var(--line);
      background: var(--tagonym-surface);
      border-radius: 100px;
      padding: 10px 13px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .pause-btn:hover { background: #f4f4f4; }

    .pause-btn:disabled {
      opacity: .5;
      cursor: not-allowed;
    }

    .hidden { display: none !important; }


    @media (max-width: 540px) {
      main { padding-top: 55px; }
      .panel { padding: 24px; }
      .tag { gap: 12px; }
      .tag-icon { width: 44px; height: 44px; }
    }
  
/* TAGONYM: Responsiver Bereich für E-Mail-Übertragung */
.transfer-entry {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.transfer-entry > .tag {
  min-width: 0;
  box-sizing: border-box;
}

.transfer-panel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 22px;
  border: 1px solid #e9e9e9;
  border-radius: var(--tagonym-radius);
  background: var(--tagonym-paper);
}

.transfer-panel label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
}

.transfer-panel input[type="email"] {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: white;
  color: #171717;
  font: inherit;
  font-size: 16px;
}

.transfer-panel p {
  max-width: 100%;
  line-height: 1.6;
  overflow-wrap: break-word;
  margin: 14px 0;
}

.transfer-panel button[type="submit"] {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 13px 16px;
  border: 0;
  border-radius: 100px;
  background: var(--tagonym-ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.transfer-panel button:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 600px) {
  .transfer-panel {
    padding: 18px 15px;
    border-radius: 12px;
  }

  .transfer-entry .tag-id {
    overflow-wrap: anywhere;
  }

  .transfer-panel button[type="submit"] {
    min-height: 50px;
  }
}

/* Responsive name editor */


@media (max-width: 600px) {
  .name-editor {
    padding: 16px;
    border-radius: 12px;
    gap: 12px;
  }

  .name-editor button {
    min-height: 50px;
    font-size: 16px;
  }
}


/* Name editor layout */

.name-editor {
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 20px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
}

.name-editor input.tagonym-field {
  min-width: 0;
  display: block;
  width: 100%;
  flex: none;
  box-sizing: border-box;
}

.name-editor button {
  border-radius: 9px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: white;
  font-weight: 650;
  padding: 12px 20px;
  font-size: 15px;
  display: block;
  width: 100%;
  min-height: 48px;
  flex: none;
}

.name-editor .name-error {
  flex-basis: 100%;
  font-size: 13px;
  width: 100%;
}


/* Tag card actions */

.tag {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tag-info {
  flex: 1;
  min-width: 0;
}

.tag-name {
  font-weight: 750;
  font-size: 15px;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.tag-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.tag-actions button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  white-space: normal;
}

.tag-actions button:hover:not(:disabled) {
  background: #f4f4f4;
}

.tag-actions button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.tag-actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.tag-actions .transfer-action {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .tag {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .tag-actions {
    grid-template-columns: 1fr;
  }

  .tag-actions button {
    min-height: 50px;
    font-size: 16px;
  }
}
