/* ========================================================= 
   typenscheine.com – site.css (CLEAN SINGLE FILE – FULL)
   - 1 Datei, keine Duplikate
   - Tokens -> Base -> Layout -> Components -> Pages -> Utilities
   - Landing Premium Darstellung integriert
   ========================================================= */

/* =========================================================
   01) DESIGN TOKENS
   ========================================================= */
:root{
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e6e8ef;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1100px;

  --primary: #0f172a;
  --primaryHover: #111c36;

  --successBg: #ecfdf5;
  --successBorder: #a7f3d0;
  --successText: #065f46;

  --errorBg: #fff1f2;
  --errorBorder: #fecdd3;
  --errorText: #9f1239;

  --warnBg: #fffbeb;
  --warnBorder: #fde68a;
  --warnText: #92400e;
}

/* =========================================================
   02) BASE RESET + TYPO
   ========================================================= */
*{ box-sizing: border-box; }
html, body{ height:100%; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

main.page{ flex: 1 0 auto; }

/* =========================================================
   03) LAYOUT
   ========================================================= */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 18px;
}

/* =========================================================
   04) HEADER
   ========================================================= */
.site-header{
  background:#fff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.nav-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px;
  display:flex;
  align-items:center;
  gap: 12px;
  position: relative;
  flex-wrap: wrap;
}

.brand{
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-right:auto;
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 20px;
}

/* Text-Logo */
.logo-text{
  position: relative;
  display: inline-block;
  line-height: 1;
  text-decoration: none;
  padding-bottom: 8px;
}

.logo-main{
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.8px;
  color: #000;
  display: inline-block;
}

.logo-sub{
  position: absolute;
  right: 0;
  bottom: -5px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
  color: #000;
  white-space: nowrap;
}

/* =========================================================
   05) BUTTONS
   ========================================================= */
.btn-login{
  padding: 8px 12px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary);
  color:#fff;
  font-weight: 700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
}
.btn-login:hover{ background: #0b1222; }

.btn-primary{
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor:pointer;
}
.btn-primary:hover{ background: var(--primaryHover); }

.btn-secondary{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  cursor:pointer;
}
.btn-secondary:hover{ background: rgba(15,23,42,0.04); }

.btn-cta{
  padding: 8px 12px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
}
.btn-cta:hover{ background: rgba(15,23,42,0.05); }

.btn-danger{
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.btn-danger:hover{ opacity: 0.9; }

/* =========================================================
   06) CARDS + TEXT
   ========================================================= */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.card h1{
  margin: 0 0 12px 0;
  font-size: 34px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.card h2{
  margin: 0 0 10px 0;
  font-size: 24px;
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.card h3{
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 700;
}
.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.note{
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.card .note a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   07) LISTS
   ========================================================= */
.list{
  margin: 14px 0 0 0;
  padding-left: 18px;
}
.list li{ margin: 8px 0; }

/* =========================================================
   08) FORMS
   ========================================================= */
.form-label{
  font-size: 14px;
  color: var(--muted);
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.form-input{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
.form-input:focus{
  outline:none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.10);
}

.login-form,
.landing-login{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.landing-links{
  font-size: 14px;
  color: var(--muted);
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.landing-links a{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-links a:hover{ color: var(--text); }

/* =========================================================
   09) ALERTS / STATUS
   ========================================================= */
.alert{
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid;
}
.alert ul{ margin: 0; padding-left: 18px; }

.alert-success{ background: var(--successBg); border-color: var(--successBorder); color: var(--successText); }
.alert-error{ background: var(--errorBg); border-color: var(--errorBorder); color: var(--errorText); }
.alert-warn{ background: var(--warnBg); border-color: var(--warnBorder); color: var(--warnText); }

.status-box{
  margin-top: 14px;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid;
}
.status-ok{ background: var(--successBg); border-color: var(--successBorder); color: var(--successText); }
.status-bad{ background: var(--errorBg); border-color: var(--errorBorder); color: var(--errorText); }
.status-title{ font-weight: 700; }
.status-text{ margin-top: 4px; font-size: 14px; }

/* =========================================================
   10) AUTH PAGES
   ========================================================= */
.auth-card{
  max-width: 520px;
  margin: 0 auto;
}
.auth-footer-link{
  margin-top: 14px;
  text-align: center;
}
.password-hint{
  margin: 6px 0 10px 0;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   11) REGISTER – PLAN AUSWAHL
   ========================================================= */
.plan-select{
  display:flex;
  flex-direction:row;
  gap:14px;
  width:100%;
}

.plan-option{
  flex:1;
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
}

.plan-option input[type="radio"]{
  margin-top:6px;
  flex:0 0 auto;
}

.plan-option:hover{ background:#f1f3f6; }

.plan-option:has(input:checked){
  border-color:#0f172a;
  background:#f8fafc;
}

.plan-title{ font-weight: 700; }
.plan-sub{ font-size: 14px; color: var(--muted); }

/* =========================================================
   12) LANDING – GRID + PLANS
   ========================================================= */
.landing-grid{
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
  align-items: start;
}

.landing-left{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-right{ position: relative; }

.landing-login-card .note{
  margin-top: 6px;
  margin-bottom: 10px;
}
.landing-login-card{
  box-shadow: 0 8px 22px rgba(15,23,42,0.06);
}

@media (min-width: 901px){
  .landing-login-card{
    position: sticky;
    top: 18px;
  }
}

.plans{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.plan-card{
  display:flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-card h2{ margin-bottom: 4px; }

.plan-price{
  margin: 6px 0 8px 0;
  font-size: 22px;
  letter-spacing: -0.2px;
}

.plan-period{
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}

.plan-card .note{ margin-top: 6px; }

.plan-card .list{
  margin-top: 10px;
  padding-left: 18px;
}
.plan-card .list li{ margin: 6px 0; }

.plan-actions{
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.plan-actions a{
  width: 100%;
  text-align: center;
}
.plan-actions .btn-secondary,
.plan-actions .btn-primary{
  width: 100%;
  margin-top: 0;
}

.plan-card.is-selected{
  border-color: var(--primary);
  box-shadow: 0 18px 42px rgba(15,23,42,0.14);
}

/* =========================================================
   13) LANDING – HERO / CTA / TRUST (PREMIUM)
   ========================================================= */
.landing-hero{
  position: relative;
  overflow: visible;

  padding: 26px;
  padding-right: 26px; /* FIX: kein Badge mehr -> symmetrisch */
  border-radius: 22px;
}

/* Headline */
.landing-hero h1{
  font-size: 32px;
  letter-spacing: -0.9px;
  line-height: 1.02;
  margin-bottom: 10px;
}

/* Hero Text */
.landing-hero .note{
  margin-top: 0;
  font-size: 15px;
  line-height: 1.55;
  max-width: 64ch;
}

/* CTA */
.hero-actions{
  margin-top: 26px;
  display:flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;

  position: relative;
  z-index: 5;
}

/* ===== Landing Hero CTA (Desktop + Mobile) ===== */
.btn-hero{
  align-items:center;
  justify-content:center;
  margin-top: 20px;   
  display:flex;
 
  gap:8px;
  margin-left: auto;
  margin-right: auto;
  height:46px;
  padding:0 18px;
  min-width: 280px;

  border-radius: 18px;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(15,23,42,0.18);
  box-shadow: none;

  font-size: 15px;
  font-weight: 700;
  line-height: 1;

  transition: background .12s ease, border-color .12s ease;
}

.btn-hero:hover{
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.24);
}

.btn-hero-sub{
  font-weight: 700;
  opacity: .75;
}

/* Jahresabo “Meistgewählt” (du nutzt trust-pill als Badge) */
.plan-card .trust-pill{
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.08);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}

/* weniger “springy” hover auf Landing */
.landing-left .card:hover,
.landing-right .card:hover{
  transform: none;
  box-shadow: var(--shadow);
}

/* =========================================================
   14) PORTAL / ACCOUNT
   ========================================================= */
.form-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.form-title{
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.back-link{
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
}
.back-link:hover{ color: var(--text); }

.portal-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.info-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-box{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.info-label{ font-size: 13px; color: var(--muted); }
.info-value{ font-weight: 700; margin-top: 4px; }
.info-sub{ margin-top: 4px; font-size: 13px; color: var(--muted); }

.button-row{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-zone{
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* =========================================================
   15) ACCOUNT DROPDOWN
   ========================================================= */
.account-menu{ position: relative; }

.account-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  height: 36px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.account-toggle:hover{ background: #0b1222; }

.avatar{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.account-label{ font-weight: 700; }

.account-dropdown{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 100;
}

.account-dropdown a{
  display:block;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text);
}
.account-dropdown a:hover{ background: rgba(15,23,42,0.05); }

@media (min-width: 721px){
  .account-menu:hover .account-dropdown{ display:block; }
}
.account-menu.open .account-dropdown{ display:block; }

/* =========================================================
   16) FOOTER
   ========================================================= */
.site-footer{
  flex: 0 0 auto;
  background:#fff;
  border-top: 1px solid var(--border);
}

.footer-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a{
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
}
.footer-links a:hover{
  background: rgba(15,23,42,0.05);
  color: var(--text);
}

/* =========================================================
   17) ABOUT
   ========================================================= */
.about-layout{
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: start;
}
.about-text p{
  margin-bottom: 1rem;
  line-height: 1.7;
}
.about-note{
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.about-profile{ text-align: center; }
.about-profile img{
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.profile-info strong{ display: block; font-size: 1rem; }
.profile-info span{ font-size: 0.85rem; color: var(--muted); }

/* =========================================================
   18) COOKIE BANNER
   ========================================================= */
.ts-cookie{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.ts-cookie__card{
  width: 100%;
  max-width: 1100px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.ts-cookie__title{
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.ts-cookie__desc{
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
}

.ts-cookie__actions{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ts-cookie__btn{
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ts-cookie__btn--primary{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.ts-cookie__btn--primary:hover{ background: var(--primaryHover); }
.ts-cookie__btn--ghost:hover{ background: #f3f4f6; }

.ts-cookie__links{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
}
.ts-cookie__links a{
  color: var(--muted);
  text-decoration: underline;
}
.ts-cookie__linkbtn{
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.ts-cookie__settings{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ts-cookie__toggle{
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  color: var(--text);
}
.ts-cookie__hint{
  margin-top: 6px;
  color: var(--muted);
  font-size: .9rem;
}
.ts-cookie__actions--settings{ margin-top: 10px; }

/* =========================================================
   19) RESPONSIVE (SAMMELBLOCK)
   ========================================================= */
@media (max-width: 900px){
  .landing-grid{ grid-template-columns: 1fr; }
  .landing-login-card{ position: static; }
  .plans{ grid-template-columns: 1fr; }

  .landing-hero{
    padding-right: 26px; /* FIX: kein Badge */
  }
}

@media (max-width: 768px){
  .about-layout{ grid-template-columns: 1fr; }
  .about-profile{ order: -1; margin-bottom: 24px; }
}

@media (max-width: 720px){
  .brand{ font-size: 18px; }
  .logo-main{ font-size: 24px; }
  .logo-sub{ font-size: 12px; bottom: -11px; }
  .logo-text{ padding-bottom: 7px; }

  .footer-wrap{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 18px;
  }
  .footer-links{
    justify-content: center;
    gap: 10px;
  }
  .footer-links a{ padding: 8px 12px; }

  .plan-select{
    flex-direction: column;
    gap: 12px;
  }
  .plan-option{ width: 100%; min-height: auto; }

  .landing-hero h1{ font-size: 32px; }

  .hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  /* Mobile: CTA full width, keine min-width */
  .btn-hero{
    width: 100%;
    min-width: 0;
  }

  .landing-hero .hero-actions .btn-primary{
    width: 100%;
    min-width: 0;
  }

  .trust-bar{
    grid-template-columns: 1fr;
  }
  .trust-bar .trust-pill:last-child{
    grid-column: auto;
  }

  .btn-cta{ display: none !important; }

  .account-toggle{ width: 100%; justify-content: center; }
}

@media (max-width: 600px){
  .form-grid{ grid-template-columns: 1fr; }
  .portal-grid{ grid-template-columns: 1fr; }
  .info-grid{ grid-template-columns: 1fr; }
}

@media (min-width: 720px){
  .ts-cookie__card{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
    align-items: start;
  }
  .ts-cookie__actions{
    margin-top: 0;
    justify-content: flex-end;
  }
  .ts-cookie__links{
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .ts-cookie__settings{
    grid-column: 1 / -1;
  }
}
