:root {
  --primary-color: #4A90E2;
  --primary-hover: #357ABD;
  --secondary-color: #FFFFFF;
  --accent-color: #50E3C2;
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #F5F7FA;
  --bg-white: #FFFFFF;
  --color-error: #df2b0c;
  --color-error-hover: #cf4a33;
  --shadow: rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: 0.3s ease;
  --font-sans: 'Helvetica Neue', Arial, sans-serif;
  --max-content-width: 900px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--bg-light);
  min-height: 100svh;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.navbar {
  background-color: var(--bg-white);
  box-shadow: 0 2px 6px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  line-height: 1;
}

.navbar .nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.navbar .nav-links a,
.navbar .nav-links span {
  font-size: 1rem;
  color: var(--text-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
}

.navbar .nav-links a:hover {
  background-color: var(--bg-light);
  color: var(--text-color);
}


.container {
  max-width: var(--max-content-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

.btn-third {
  background-color: var(--color-error);
  color: var(--secondary-color);
  display: block;
  width: 100%;
}

.btn-third:hover {
  background-color: var(--color-error-hover);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 72px);
  padding: 2rem 1rem;
}

.landing-container img {
  width: 360px;
  max-width: 100%;
  height: auto;
}

.landing-container .title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.landing-container .tagline {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.5;
}

.btn-group .btn {
  margin: 0.5rem;
}

.auth-form,
.settings-form {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px var(--shadow);
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-form-home {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-content {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px var(--shadow);
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label,
.settings-form-home label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-form input,
.settings-form-home input {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #DDD;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.auth-form input:focus,
.settings-form-home input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.flashes {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.flashes .flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.flashes .flash.success {
  background-color: #DFF2BF;
  color: #4F8A10;
}

.flashes .floash.warning {
  background-color: #FEEFB3;
  color: #9F6000;
}

.flashes .flash.danger {
  background-color: #FFBABA;
  color: #D8000C;
}

.flashes .flash.info {
  background-color: #BDE5F8;
  color: #00529B;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow);
  max-width: 400px;
  text-align: center;
}

.modal p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-color);
}

.modal button {
  margin: 0.5rem;
}

@media (max-width: 600px) {
  .landing-container .title {
    font-size: 2.5rem;
  }

  .landing-container .tagline {
    font-size: 1rem;
  }
}

h2 {
  text-align: center;
}

#toggle-users {
  display: inline-block;
  margin-bottom: 1rem;
}

#user-list table {
  width: 100%;
  border-collapse: collapse;
}

#user-list th,
#user-list td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}

#user-list th {
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
}

.delete-user-btn {
  display: inline-block;
  width: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

#delete-user-modal .modal {
  max-width: 400px;
  padding: 2rem;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar .nav-links span {
  max-width: 60vw;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .container {
    margin: 1.5rem auto;
  }

  .landing-container .title {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }

  .landing-container img {
    width: clamp(260px, 55vw, 420px);
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 700px) {

  .auth-form,
  .settings-form,
  .home-content {
    max-width: 100%;
    margin: 1rem 0;
    padding: 1rem;
  }

  .btn {
    padding: 0.85rem 1.2rem;
    font-size: 1.05rem;
  }

  .btn-group .btn {
    width: 100%;
    margin: 0.4rem 0;
  }

  .auth-form input,
  .settings-form-home input {
    width: 100%;
  }

  .landing-container .tagline {
    font-size: 1.05rem;
    max-width: 90%;
  }
}

@media (max-width: 480px) {

  .home-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  .container {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }

  .flashes {
    max-width: 100%;
    margin: 0.5rem 0 1rem 0;
  }
}

@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
  }
}

@media (max-width: 768px) {
  .container {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }

  .auth-form,
  .settings-form,
  .home-content {
    max-width: 560px;
    width: 100%;
    margin: 1rem auto;
    padding: 1.25rem;
  }

  .auth-form input,
  .settings-form-home input {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {

  .auth-form,
  .settings-form,
  .home-content {
    padding: 1rem;
    border-radius: 6px;
  }
}

.landing-container img.hero,
.landing-container img {
  width: clamp(220px, 40vw, 420px);
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .landing-container .title {
    font-size: clamp(2.2rem, 7vw, 2.6rem);
  }

  .landing-container .tagline {
    font-size: 1.05rem;
    padding: 0 0.25rem;
  }
}

html,
body {
  overflow-x: hidden;
}

@media (max-width: 700px) {

  .navbar .nav-links a,
  .navbar .nav-links span {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@supports (min-height: 100svh) {
  .landing-container {
    min-height: calc(100svh - 72px);
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }

  .navbar .logo {
    font-size: 1.6rem;
  }

  .landing-container .title {
    font-size: clamp(2rem, 8vw, 2.4rem);
  }
}

@media (pointer: coarse) {
  .btn {
    min-height: 44px;
  }

  a,
  .btn {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-third:hover {
    transform: none;
  }
}

.site-footer {
  margin-top: auto;
  padding: 1rem 0;
  background: var(--bg-white);
  box-shadow: 0 -1px 4px var(--shadow);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}

.form-check input[type="checkbox"] {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.form-check label {
  color: var(--text-light);
  line-height: 1.4;
}

.form-check a {
  text-decoration: underline;
}

.container:has(.landing-container) {
  margin-top: 0.75rem;
}

@supports not selector(:has(*)) {
  .landing-container {
    margin-top: -1.25rem;
  }
}

.landing-container {
  justify-content: flex-start;
  padding-top: clamp(6px, 2vh, 18px);
  row-gap: 1rem;
}

@media (max-width: 600px) {
  .container:has(.landing-container) {
    margin-top: 0.5rem;
  }

  @supports not selector(:has(*)) {
    .landing-container {
      margin-top: -1.5rem;
    }
  }

  .landing-container {
    padding-top: 8px;
  }
}

.landing-container img.hero,
.landing-container img {
  margin-top: 0.25rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
}

.form-check input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.form-check label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-light);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.form-check label a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .auth-form {
    padding: 1.1rem 1rem;
  }
}

.auth-form.info-full {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.clean-list {
  list-style: disc outside;
  padding-left: 1.1rem;
  margin: 1rem 0 0.75rem;
}

.clean-list li {
  margin: 0.4rem 0;
  padding-left: 0.2rem;
  line-height: 1.5;
  color: var(--text-light);
}

.clean-list li::marker {
  color: var(--primary-color);
  font-size: 0.95em;
}

.clean-list strong {
  color: var(--text-color);
}

body {
  display: flex;
  flex-direction: column;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 8px 0 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform var(--transition), top var(--transition), opacity var(--transition), background-color var(--transition);
}

.menu-toggle .menu-icon {
  position: relative;
  width: 24px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform var(--transition), background-color var(--transition);
}

.menu-toggle .menu-icon::before {
  top: -6px;
}

.menu-toggle .menu-icon::after {
  top: 6px;
}

.navbar.open .menu-toggle .menu-icon {
  background: transparent;
}

.navbar.open .menu-toggle .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navbar.open .menu-toggle .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .navbar .container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    height: 64px;
    padding: 0 1rem;
  }

  .navbar .logo {
    justify-self: start;
    font-size: 1.6rem;
  }

  .navbar .nav-links {
    display: none;
  }
}

@media (min-width: 769px) {
  .navbar .container {
    display: flex;
  }
}

.page-content {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  z-index: 9;
}

@media (max-width: 768px) {
  .navbar {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .navbar .container {
    position: relative;
  }

  .navbar .nav-links {
    display: none;
  }

  .navbar.open #primary-navigation {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    margin: 0;
    padding: 0.25rem 0;
    background: var(--bg-white);
    border-top: 1px solid #eee;
    box-shadow: 0 8px 24px var(--shadow);
    z-index: 11;
    text-align: left;
    align-items: stretch;
  }

  .navbar.open #primary-navigation a,
  .navbar.open #primary-navigation span {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    text-align: left !important;
    justify-content: flex-start;
  }

  .navbar.open #primary-navigation a:last-child,
  .navbar.open #primary-navigation span:last-child {
    border-bottom: 0;
  }

  .navbar.open #primary-navigation a:hover {
    background: #f7f9fc;
  }

  .navbar.open~.nav-backdrop {
    display: block;
  }
}

.step-list {
  padding-left: 1.1rem;
  margin: .6rem 0 1rem;
}

.step-list li {
  margin: .3rem 0;
  line-height: 1.5;
  color: var(--text-light);
}

.js-only {
  display: none;
}

#server-logs {
  background-color: #111;
  color: #0f0;
  padding: 1rem;
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: monospace;
}

.uptime-display {
  font-family: monospace;
  font-size: 1.2rem;
  color: black;
  background-color: #aaaaaa;
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

#tokens-modal label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

#tokens-modal .ctrl {
  width: 100%;
  height: 42px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
}

#tokens-modal select.ctrl {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, #888 50%),
    linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: right 12px center, right 6px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

#tokens-modal label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

#tokens-modal table {
  border-collapse: collapse;
  border-spacing: 0;
}

#tokens-modal th,
#tokens-modal td {
  padding: 8px 10px;
  text-align: left;
}

#tokens-modal td code {
  padding: 0;
  background: none;
  display: inline;
}

#tokens-modal th,
#tokens-modal td {
  padding-left: 10px !important;
}

#tokens-modal td code {
  padding: 0 !important;
  margin: 0 !important;
  background: none;
}

/* ===== Pricing (clean) ===== */

/* CTA: Ghost/Outline für Mail-Anfrage */
.btn-ghost {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}

.btn-ghost:hover {
  background: rgba(74, 144, 226, .06);
  transform: translateY(-2px);
}

.btn-small {
  padding: .55rem .9rem;
  font-size: .95rem;
}

/* Kopf + Intro */
.pricing {
  max-width: var(--max-content-width);
  margin: 2rem auto 3rem;
  text-align: center;
}

.pricing h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
  color: var(--primary-color);
}

.pricing-sub {
  color: var(--text-light);
  margin-bottom: 1.2rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-sub .br-sm {
  display: none;
}

@media (max-width:520px) {
  .pricing-sub .br-sm {
    display: inline;
  }
}

/* Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width:900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Karten */
.plan-card {
  position: relative;
  background: var(--bg-white);
  border-radius: 14px;
  box-shadow: 0 8px 22px var(--shadow);
  padding: 1.25rem 1.25rem 1.4rem;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border: 2px solid transparent;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow);
}

.plan-head {
  margin-bottom: .75rem;
}

.plan-name {
  font-size: 1.25rem;
  letter-spacing: .2px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .35rem;
}

.plan-price .price {
  font-size: 1.9rem;
  font-weight: 800;
}

.plan-price .old {
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.plan-note {
  color: #5b5b5b;
  margin-top: .35rem;
}

.plan-features {
  list-style: none;
  margin: .6rem 0 1rem;
  padding: 0;
}

.plan-features li {
  padding: .35rem 0;
  border-bottom: 1px dashed #eee;
  color: #3d3d3d;
}

.plan-features li:last-child {
  border-bottom: 0;
}

.plan-footer {
  display: grid;
  gap: .5rem;
  align-items: center;
  justify-items: start;
}

/* Starter & Pro bewusst zurückgenommen */
.plan-starter,
.plan-pro {
  background: #f7f8fb;
}

.plan-starter .plan-name,
.plan-pro .plan-name {
  color: #596173;
}

.plan-price.muted .price {
  color: #667085;
}

/* Classic prominent + blauer Rahmen */
.featured {
  border: 3px solid var(--primary-color) !important;
  background: linear-gradient(180deg, #fff 0%, #f3f7ff 100%);
  transform: scale(1.03);
  z-index: 1;
  box-shadow: 0 12px 28px var(--shadow), 0 0 0 3px rgba(74, 144, 226, .08) inset;
  border-radius: 16px;
}

.featured:hover {
  transform: scale(1.06);
}

.featured .plan-name {
  color: var(--primary-color);
}

.featured .plan-price .price {
  color: var(--primary-color);
}

/* Badge: Beliebteste Wahl */
.plan-badge {
  position: absolute;
  top: -12px;
  left: 14px;
  background: var(--primary-color);
  color: #fff;
  padding: .34rem .7rem;
  border-radius: 999px;
  font-size: .84rem;
  box-shadow: 0 6px 16px var(--shadow);
}

/* Rabatt-Starburst (rot) – ersetzt die alte .discount-pill */
.discount-burst {
  position: absolute;
  top: -18px;
  right: 14px;
  padding: 12px 16px;
  background: #e53935;
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  transform: rotate(6deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  /* Sternform */
  --p: polygon(50% 0%, 58% 18%, 78% 8%, 72% 26%, 92% 26%, 76% 38%,
      94% 50%, 76% 62%, 92% 74%, 72% 74%, 78% 92%, 58% 82%,
      50% 100%, 42% 82%, 22% 92%, 28% 74%, 8% 74%, 24% 62%,
      6% 50%, 24% 38%, 8% 26%, 28% 26%, 22% 8%, 42% 18%);
  clip-path: var(--p);
}

.discount-burst span {
  display: inline-block;
  transform: rotate(-6deg);
}

/* Footer-Hinweis: normaler Link, kein Button-Look */
.pricing-hint {
  color: var(--text-light);
  margin-top: 1rem;
  font-size: .95rem;
}

.pricing-hint-link {
  color: var(--primary-color);
  text-decoration: underline;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Mittlere Karte leicht höher für Fokus (Desktop) */
@media (min-width:901px) {
  .pricing-grid .plan-card:nth-child(2) {
    margin-top: -6px;
  }
}

/* ==== Impressum (leichtgewichtig, nutzt vorhandene Tokens) ==== */
.legal-card {
  background: var(--bg-white);
  border: 1px solid #e8ebf3;
  border-radius: 14px;
  box-shadow: 0 8px 22px var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.legal-title {
  margin: 0 0 .25rem 0;
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  color: var(--text-color);
}

.legal-sub {
  margin: 0 0 1.2rem 0;
  color: var(--text-light);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width:700px) {
  .legal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.legal-box {
  background: #f8fafc;
  border: 1px solid #edf0f7;
  border-radius: 12px;
  padding: 1rem;
}

.legal-heading {
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text-color);
  text-align: left;
  /* überschreibt globales h2:center, falls nötig */
}

.legal-address {
  margin: 0;
}

.legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.legal-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .5rem;
  align-items: baseline;
}

.legal-list li span {
  color: var(--text-light);
}

.legal-sep {
  margin: 1.25rem 0;
  height: 1px;
  background: #edf0f7;
  border: 0;
}

.legal-notes p {
  margin: .3rem 0;
}

.legal-stand {
  color: #8890a3;
  font-size: .95rem;
}

/* Utility, falls nicht vorhanden */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ==== Datenschutz (nutzt deine Tokens & Card-Optik) ==== */
.policy-card {
  background: var(--bg-white);
  border: 1px solid #e8ebf3;
  border-radius: 14px;
  box-shadow: 0 8px 22px var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: var(--max-content-width);
}

.policy-h2 {
  margin-top: 1.25rem;
  margin-bottom: .5rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--text-color);
  text-align: left;
  /* überschreibt globales h2:center */
}

.policy-h3 {
  margin-top: .75rem;
  margin-bottom: .25rem;
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 700;
}

/* Tabelle */
.table-wrap {
  overflow-x: auto;
  margin: .5rem 0 1rem;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e6e9f2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  font-size: .98rem;
}

.policy-table th,
.policy-table td {
  padding: .7rem .8rem;
  vertical-align: top;
  border-bottom: 1px solid #eef1f6;
}

.policy-table thead th {
  background: #f5f7fb;
  color: #444;
  text-align: left;
}

.policy-table tbody tr:last-child td {
  border-bottom: 0;
}

.policy-table code {
  background: #f1f4fa;
  padding: .05rem .35rem;
  border-radius: 4px;
}

.legal-stand {
  color: #8890a3;
  margin-top: .75rem;
}

/* ==== AGB: Meta & Nummerierung ==== */
.agb-meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: var(--text-light);
  font-size: .95rem;
  margin: .25rem 0 1rem;
}

@media (max-width:600px) {
  .agb-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.agb-ol {
  margin: .25rem 0 1rem 1.25rem;
  line-height: 1.6;
}

.agb-ol li {
  margin: .3rem 0;
}

.agb-ol.alpha {
  list-style: lower-latin;
  margin-left: 1.15rem;
}

/* ==== Info page polish (v2) ==== */

.info-card .info-sub {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.info-section {
  margin-top: 1.8rem;
}

/* === Schnellstart Grid === */
.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-box {
  background: #f8fafc;
  border: 1px solid #e7eaf2;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* === Fair Use Section === */
.fairuse {
  background: linear-gradient(180deg, #f9fbff 0%, #f1f5ff 100%);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  border: 1px solid #e0e7ff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.fairuse-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
}

.fairuse-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary-color);
}

.fairuse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin-top: .8rem;
}

@media (min-width: 720px) {
  .fairuse-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fairuse-item {
  background: white;
  border: 1px solid #e5e9f5;
  border-radius: 12px;
  padding: .8rem .9rem;
}

.fairuse-item h4 {
  margin: 0 0 .3rem;
  font-weight: 700;
  color: #344a8b;
}

.fairuse-item p {
  margin: 0;
  color: var(--text-light);
}

/* === FAQ === */
/* === FAQ (klickbar mit Chevron) === */
.faq-list {
  margin-top: .8rem;
  border-top: 1px solid #eceef3;
}

.faq-item {
  border-bottom: 1px solid #eceef3;
  padding: .6rem 0;
}

/* Grundstil des Toggles */
.faq-item summary {
  position: relative;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: .6rem 2rem .6rem .1rem;
  /* Platz rechts für Chevron */
  border-radius: 10px;
  transition: background-color .15s ease, color .15s ease;
}

/* Standard-Disclosure-Marker ausblenden */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Hover/Fokus */
.faq-item summary:hover {
  background: #f6f8fc;
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(74, 144, 226, .35);
  outline-offset: 2px;
}

/* Chevron rechts */
.faq-item summary::after {
  content: "▸";
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  line-height: 1;
  opacity: .8;
  transition: transform .2s ease, opacity .2s ease;
}

/* Geöffneter Zustand */
.faq-item[open] summary {
  color: var(--primary-color);
  background: #f6f8fc;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
  opacity: 1;
}

/* Antworttext */
.faq-item p {
  margin-top: .5rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* === Web-App section === */
.platform-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.platform-card {
  background: #f8fafc;
  border: 1px solid #e7eaf2;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

/* === Support section === */
.support-card {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  border: 1px solid #e0e6f9;
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.support-card h2 {
  margin: 0 0 .4rem;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.support-mail a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.support-mail a:hover {
  text-decoration: underline;
}

.support-note {
  color: var(--text-light);
  font-size: .9rem;
  margin-top: .5rem;
}

/* ===== Beta Overlay (klarer & größer) ===== */
.beta-overlay {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;

  background: linear-gradient(180deg, #fff6d8 0%, #ffefbf 100%);
  border: 1.5px solid #ffd873;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 10px 28px rgba(255, 183, 0, .18);
}

.beta-badge {
  position: absolute;
  top: -12px;
  left: 14px;
  background: #ffb300;
  color: #2b1f00;
  font-weight: 800;
  letter-spacing: .4px;
  padding: .3rem .6rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  font-size: .85rem;
  border: 1px solid #ffd873;
}

.beta-content {
  width: 100%;
}

.beta-title {
  margin: .2rem 0 .35rem;
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  line-height: 1.25;
  color: #3a2a00;
}

.beta-lead {
  margin: 0 0 .4rem;
  font-size: clamp(1rem, 1.9vw, 1.1rem);
  font-weight: 600;
  color: #4a3800;
}

.beta-lead a {
  color: #b56500;
  text-decoration: underline;
  font-weight: 800;
}

.beta-points {
  margin: .35rem 0 0;
  padding-left: 1.1rem;
  color: #5a4500;
  font-size: clamp(.98rem, 1.7vw, 1.05rem);
}

.beta-points li {
  margin: .25rem 0;
}

/* Mobile Tuning */
@media (max-width:600px) {
  .beta-overlay {
    padding: .95rem 1rem;
  }

  .beta-badge {
    left: 10px;
  }
}

/* Beta: 2 Karten statt Liste */
.beta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin-top: .6rem;
}

@media (min-width:720px) {
  .beta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.beta-card {
  background: linear-gradient(180deg, #fffaf0 0%, #fff4d8 100%);
  border: 1.5px solid #f3d58a;
  border-radius: 12px;
  padding: .9rem 1rem;
  box-shadow: 0 3px 10px rgba(255, 191, 0, 0.12);
  transition: transform .15s ease, box-shadow .15s ease;
}

.beta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 191, 0, 0.2);
}

.beta-card h4 {
  margin: 0 0 .3rem;
  font-weight: 700;
  color: #3b2d00;
}

.beta-card p {
  margin: 0;
  color: #4b3b00;
  line-height: 1.5;
}