  .theme-toggle{
    display:inline-grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:0;
    position:relative;
    width:112px;
    height:34px;
    padding:3px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    background:rgba(255,255,255,.10);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
    cursor:pointer;
    user-select:none;
  }

  .site-header .header-right{
    gap:10px;
  }

  .site-header .user-pill,
  .site-header .logout-link{
    min-height:34px;
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    background:rgba(255,255,255,.10);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
    color:#f8fafc;
    font-size:13px;
    font-weight:850;
    line-height:1;
  }

  .site-header .user-pill{
    gap:8px;
    padding:0 13px;
  }

  .site-header .logout-link{
    position:relative;
    width:34px;
    min-width:34px;
    height:34px;
    min-height:34px;
    padding:0;
    overflow:hidden;
    color:transparent;
    font-size:0;
    text-decoration:none;
    backdrop-filter:none;
    transition:background .18s ease, border-color .18s ease, transform .18s ease;
  }

  .site-header .logout-link::before{
    content:"⏻";
    color:#f8fafc;
    font-size:17px;
    font-weight:900;
    line-height:1;
  }

  .site-header .logout-link:hover{
    background:rgba(255,255,255,.14);
    border-color:rgba(255,255,255,.24);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
    transform:translateY(-1px);
    text-decoration:none;
  }

  .theme-toggle input{
    position:absolute;
    opacity:0;
    pointer-events:none;
  }

  .theme-toggle::before{
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:calc(50% - 3px);
    height:calc(100% - 6px);
    border-radius:999px;
    background:#f8fafc;
    box-shadow:0 6px 16px rgba(0,0,0,.18);
    transition:transform .18s ease, background .18s ease;
  }

  .theme-toggle.is-dark::before{
    transform:translateX(100%);
    background:#111827;
  }

  .theme-toggle span{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:center;
    color:rgba(255,255,255,.76);
    font-size:11px;
    font-weight:850;
    line-height:1;
  }

  .theme-toggle:not(.is-dark) .theme-day{
    color:#111827;
  }

  .theme-toggle.is-dark .theme-dark{
    color:#f8fafc;
  }

  .flyer-intro-overlay{
    position:fixed;
    inset:0;
    z-index:9998;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(8, 15, 25, 0.72);
    backdrop-filter:blur(12px);
  }

  .flyer-intro-card{
    width:min(980px, 100%);
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.18);
    border-radius:24px;
    background:#0f172a;
    color:#f8fafc;
    box-shadow:0 28px 90px rgba(0,0,0,0.45);
  }

  .flyer-intro-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    padding:22px 24px 16px;
    border-bottom:1px solid rgba(148,163,184,0.24);
    background:linear-gradient(135deg, rgba(37,99,235,0.22), rgba(132,187,18,0.14));
  }

  .flyer-intro-kicker{
    margin:0 0 7px;
    color:#93c5fd;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.16em;
    text-transform:uppercase;
  }

  .flyer-intro-title{
    margin:0;
    font-size:clamp(26px, 4vw, 42px);
    line-height:1.04;
    font-weight:850;
    letter-spacing:-0.03em;
  }

  .flyer-intro-copy{
    max-width:620px;
    margin:10px 0 0;
    color:#cbd5e1;
    font-size:15px;
    line-height:1.5;
  }

  .flyer-intro-count{
    flex:0 0 auto;
    padding:9px 13px;
    border:1px solid rgba(148,163,184,0.28);
    border-radius:999px;
    background:rgba(15,23,42,0.62);
    color:#dbeafe;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
  }

  .flyer-intro-body{
    display:grid;
    grid-template-columns:minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap:22px;
    padding:22px 24px 24px;
  }

  .flyer-intro-stage{
    position:relative;
    min-height:330px;
    overflow:hidden;
    border:1px solid rgba(148,163,184,0.24);
    border-radius:18px;
    background:
      radial-gradient(circle at 20% 15%, rgba(59,130,246,0.22), transparent 32%),
      linear-gradient(145deg, #111827, #1f2937 52%, #0b1120);
  }

  .intro-editor-shell{
    position:absolute;
    inset:28px;
    display:grid;
    grid-template-columns:minmax(0, 1fr) 150px;
    gap:14px;
    animation:introFloat 15s ease-in-out infinite;
  }

  .intro-paper{
    position:relative;
    overflow:hidden;
    border:1px solid rgba(226,232,240,0.82);
    border-radius:10px;
    background:#f8fafc;
    box-shadow:0 18px 45px rgba(0,0,0,0.30);
  }

  .intro-paper::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:64px;
    background:linear-gradient(135deg, #84bd00, #4d7c0f);
  }

  .intro-logo-line{
    position:absolute;
    top:22px;
    left:50%;
    width:46%;
    height:10px;
    border-radius:999px;
    background:rgba(255,255,255,0.84);
    transform:translateX(-50%);
  }

  .intro-text-field{
    position:absolute;
    left:10%;
    right:12%;
    height:38px;
    border:2px solid #2563eb;
    border-radius:8px;
    background:rgba(255,255,255,0.88);
    color:#0f172a;
    font-size:20px;
    font-weight:850;
    line-height:38px;
    padding:0 12px;
    white-space:nowrap;
    box-shadow:0 0 0 4px rgba(37,99,235,0.12);
  }

  .intro-text-field.one{
    top:96px;
    animation:introFieldOne 15s ease-in-out infinite;
  }

  .intro-text-field.two{
    top:156px;
    width:58%;
    animation:introFieldTwo 15s ease-in-out infinite;
  }

  .intro-flyer-lines{
    position:absolute;
    left:10%;
    right:10%;
    top:226px;
    display:grid;
    gap:10px;
  }

  .intro-flyer-lines span{
    height:13px;
    border-radius:999px;
    background:#d1d5db;
  }

  .intro-toolbar{
    position:absolute;
    top:75px;
    left:15%;
    display:flex;
    align-items:center;
    gap:6px;
    padding:7px;
    border:1px solid rgba(203,213,225,0.92);
    border-radius:14px;
    background:#ffffff;
    color:#0f172a;
    box-shadow:0 12px 30px rgba(15,23,42,0.20);
    animation:introToolbar 15s ease-in-out infinite;
  }

  .intro-tool{
    min-width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #dbe3ef;
    border-radius:9px;
    font-size:13px;
    font-weight:850;
  }

  .intro-tool.active{
    border-color:#2563eb;
    color:#2563eb;
    background:#eff6ff;
  }

  .intro-panel{
    display:grid;
    align-content:start;
    gap:10px;
    padding:13px;
    border:1px solid rgba(148,163,184,0.24);
    border-radius:14px;
    background:rgba(15,23,42,0.72);
  }

  .intro-panel-title{
    margin:0 0 4px;
    color:#e2e8f0;
    font-size:13px;
    font-weight:850;
  }

  .intro-panel-button{
    height:34px;
    border:1px solid rgba(148,163,184,0.34);
    border-radius:10px;
    background:#1f2937;
  }

  .intro-panel-button.ai{
    border-color:rgba(147,197,253,0.60);
    background:linear-gradient(135deg, #2563eb, #7c3aed 58%, #ec4899);
    box-shadow:0 10px 24px rgba(59,130,246,0.22);
  }

  .flyer-intro-points{
    display:grid;
    gap:12px;
  }

  .flyer-intro-point{
    padding:14px;
    border:1px solid rgba(148,163,184,0.22);
    border-radius:14px;
    background:rgba(15,23,42,0.72);
  }

  .flyer-intro-point strong{
    display:block;
    margin-bottom:4px;
    color:#ffffff;
    font-size:14px;
  }

  .flyer-intro-point span{
    color:#cbd5e1;
    font-size:13px;
    line-height:1.42;
  }

  .flyer-intro-progress{
    height:6px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(148,163,184,0.22);
  }

  .flyer-intro-progress span{
    display:block;
    width:0%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg, #84bd00, #38bdf8, #a855f7);
    animation:introProgress 15s linear forwards;
  }

  .flyer-intro-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:4px;
  }

  .flyer-intro-btn{
    border:1px solid rgba(148,163,184,0.34);
    border-radius:12px;
    padding:11px 16px;
    background:#1f2937;
    color:#f8fafc;
    font:inherit;
    font-size:14px;
    font-weight:800;
    cursor:pointer;
  }

  .flyer-intro-btn.primary{
    border-color:#16a34a;
    background:#16a34a;
  }

  @keyframes introProgress{
    to{ width:100%; }
  }

  @keyframes introFloat{
    0%, 100%{ transform:translateY(5px) scale(0.98); }
    45%, 70%{ transform:translateY(-2px) scale(1); }
  }

  @keyframes introToolbar{
    0%, 18%{ opacity:0; transform:translate(-18px, 12px) scale(0.92); }
    28%, 88%{ opacity:1; transform:translate(0, 0) scale(1); }
    100%{ opacity:0; transform:translate(16px, -8px) scale(0.96); }
  }

  @keyframes introFieldOne{
    0%, 20%{ width:42%; }
    40%, 100%{ width:74%; }
  }

  @keyframes introFieldTwo{
    0%, 42%{ opacity:0; transform:translateY(16px); }
    55%, 100%{ opacity:1; transform:translateY(0); }
  }

  @media (max-width: 820px){
    .flyer-intro-body{
      grid-template-columns:1fr;
    }
    .intro-editor-shell{
      inset:18px;
      grid-template-columns:1fr;
    }
    .intro-panel{
      display:none;
    }
  }

  .flyer-intro-card{
    width:min(1120px, 100%);
  }

  .flyer-intro-body{
    grid-template-columns:minmax(0, 1.45fr) minmax(285px, 0.55fr);
  }

  .flyer-intro-stage{
    min-height:430px;
    background:#101a24;
  }

  .intro-editor-shell{
    inset:18px;
    grid-template-columns:minmax(0, 1fr) 210px;
    gap:12px;
    animation:introEditorFocus 15s ease-in-out infinite;
  }

  .intro-paper{
    border-color:#334155;
    border-radius:12px;
    background:#0d1721;
  }

  .intro-paper::before{
    height:42px;
    background:#172331;
    border-bottom:1px solid #334155;
  }

  .intro-logo-line{
    top:15px;
    left:18px;
    width:112px;
    height:auto;
    transform:none;
    border-radius:0;
    background:transparent;
    color:#e5edf7;
    font-size:13px;
    font-weight:850;
  }

  .intro-logo-line::before{
    content:"Arbeitsfläche";
  }

  .intro-logo-line::after{
    content:"Bereit";
    position:absolute;
    left:420px;
    color:#9ae6b4;
  }

  .intro-page-preview{
    position:absolute;
    left:50%;
    top:68px;
    width:310px;
    height:438px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.78);
    background:#f8fafc;
    box-shadow:0 24px 48px rgba(0,0,0,0.42);
    transform:translateX(-50%) scale(0.78);
    transform-origin:top center;
    animation:introPageZoom 15s ease-in-out infinite;
  }

  .intro-page-preview::before{
    content:"Landkaufmann";
    position:absolute;
    inset:0 0 auto 0;
    height:62px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, #84bd00, #5fa30a);
    color:#fff;
    font-size:22px;
    font-weight:800;
  }

  .intro-page-band{
    position:absolute;
    left:0;
    right:0;
    top:83px;
    height:44px;
    background:#84bd00;
    border-top:1px solid #4d7c0f;
    border-bottom:1px solid #4d7c0f;
  }

  .intro-page-band::after{
    content:"Wir halten jeden";
    position:absolute;
    left:20px;
    top:7px;
    color:#fff;
    font-size:22px;
    font-weight:850;
  }

  .intro-page-art{
    position:absolute;
    right:16px;
    top:64px;
    width:92px;
    height:72px;
    border-radius:44% 56% 48% 52%;
    background:
      radial-gradient(circle at 35% 45%, #f8c475 0 15px, transparent 16px),
      radial-gradient(circle at 62% 55%, #e89b44 0 17px, transparent 18px),
      radial-gradient(circle at 50% 35%, #fbd38d 0 13px, transparent 14px),
      #b7791f;
    box-shadow:0 8px 18px rgba(0,0,0,0.22);
  }

  .intro-page-lines{
    position:absolute;
    left:56px;
    right:44px;
    top:232px;
    display:grid;
    gap:12px;
  }

  .intro-page-lines span{
    height:19px;
    border-radius:999px;
    background:#0b6b2b;
    opacity:0.9;
  }

  .intro-page-bottom{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:72px;
    background:linear-gradient(135deg, #eff7e2, #84bd00);
  }

  .intro-text-field{
    left:18px;
    right:auto;
    height:34px;
    border-color:#2563eb;
    border-radius:2px;
    background:rgba(255,255,255,0.92);
    font-size:19px;
    line-height:34px;
    box-shadow:0 0 0 3px rgba(37,99,235,0.16);
  }

  .intro-text-field.one{
    top:148px;
    width:92px;
    animation:introTypeAndFit 15s ease-in-out infinite;
  }

  .intro-text-field.two{
    top:191px;
    width:68%;
    opacity:1;
    font-size:15px;
    animation:introSecondField 15s ease-in-out infinite;
  }

  .intro-toolbar{
    top:118px;
    left:48px;
    animation:introToolbar 15s ease-in-out infinite;
  }

  .intro-resize-handle{
    position:absolute;
    right:12px;
    top:150px;
    width:18px;
    height:42px;
    border:3px solid #fff;
    border-radius:12px;
    background:#2563eb;
    box-shadow:0 7px 18px rgba(37,99,235,0.34);
    animation:introResizeHandle 15s ease-in-out infinite;
  }

  .intro-click-dot{
    position:absolute;
    width:20px;
    height:20px;
    border-radius:999px;
    background:#fff;
    box-shadow:0 0 0 7px rgba(37,99,235,0.22), 0 12px 24px rgba(0,0,0,0.24);
    animation:introCursorPath 15s ease-in-out infinite;
  }

  .intro-callout{
    position:absolute;
    z-index:4;
    max-width:190px;
    padding:10px 12px;
    border:1px solid rgba(147,197,253,0.45);
    border-radius:13px;
    background:rgba(15,23,42,0.92);
    color:#e0f2fe;
    font-size:12px;
    font-weight:800;
    line-height:1.35;
    box-shadow:0 16px 34px rgba(0,0,0,0.32);
    opacity:0;
  }

  .intro-callout.place{
    left:34px;
    top:86px;
    animation:introCalloutPlace 15s ease-in-out infinite;
  }

  .intro-callout.write{
    left:245px;
    top:140px;
    animation:introCalloutWrite 15s ease-in-out infinite;
  }

  .intro-callout.fit{
    right:230px;
    top:76px;
    animation:introCalloutFit 15s ease-in-out infinite;
  }

  .intro-panel{
    grid-template-columns:1fr 1fr;
    gap:9px;
    padding:13px;
    background:#1a2533;
    border-color:#41536b;
  }

  .intro-panel-title{
    grid-column:1 / -1;
    font-size:14px;
  }

  .intro-panel-button{
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#f8fafc;
    font-size:11px;
    font-weight:850;
    background:#243244;
  }

  .intro-panel-button.ai{
    animation:introAiButton 15s ease-in-out infinite;
  }

  .intro-selected-tools{
    grid-column:1 / -1;
    display:grid;
    gap:8px;
    margin-top:6px;
    padding-top:10px;
    border-top:1px solid #41536b;
  }

  .intro-selected-tools label{
    color:#dbe4ef;
    font-size:12px;
    font-weight:850;
  }

  .intro-input-demo{
    height:31px;
    border:1px solid #64748b;
    border-radius:8px;
    background:#0f172a;
    color:#dbeafe;
    font-size:11px;
    font-weight:750;
    line-height:31px;
    padding:0 9px;
    overflow:hidden;
    white-space:nowrap;
    animation:introInputText 15s ease-in-out infinite;
  }

  .intro-layer-demo{
    padding:9px;
    border:1px solid #41536b;
    border-radius:8px;
    color:#dbeafe;
    font-size:10px;
    font-weight:800;
    background:#101a2d;
    animation:introLayerActive 15s ease-in-out infinite;
  }

  @keyframes introEditorFocus{
    0%, 100%{ transform:scale(0.985); }
    38%, 76%{ transform:scale(1); }
  }

  @keyframes introPageZoom{
    0%, 18%{ transform:translateX(-50%) scale(0.73); }
    30%, 82%{ transform:translateX(-50%) scale(0.80); }
    100%{ transform:translateX(-50%) scale(0.76); }
  }

  @keyframes introTypeAndFit{
    0%, 16%{ width:92px; color:transparent; }
    25%, 38%{ width:190px; color:#0f172a; }
    52%, 74%{ width:260px; color:#0f172a; font-size:17px; }
    100%{ width:260px; color:#0f172a; font-size:17px; }
  }

  @keyframes introSecondField{
    0%, 40%{ opacity:0; transform:translateY(9px); }
    50%, 100%{ opacity:1; transform:translateY(0); }
  }

  @keyframes introResizeHandle{
    0%, 40%{ right:182px; opacity:0; }
    52%, 76%{ right:30px; opacity:1; }
    100%{ right:30px; opacity:1; }
  }

  @keyframes introCursorPath{
    0%, 12%{ left:520px; top:68px; opacity:0; }
    18%, 28%{ left:532px; top:105px; opacity:1; }
    36%, 46%{ left:300px; top:180px; opacity:1; }
    56%, 70%{ left:544px; top:184px; opacity:1; }
    82%, 100%{ left:620px; top:98px; opacity:0; }
  }

  @keyframes introCalloutPlace{
    0%, 8%{ opacity:0; transform:translateY(8px); }
    14%, 28%{ opacity:1; transform:translateY(0); }
    36%, 100%{ opacity:0; transform:translateY(-5px); }
  }

  @keyframes introCalloutWrite{
    0%, 30%{ opacity:0; transform:translateY(8px); }
    38%, 52%{ opacity:1; transform:translateY(0); }
    60%, 100%{ opacity:0; transform:translateY(-5px); }
  }

  @keyframes introCalloutFit{
    0%, 56%{ opacity:0; transform:translateY(8px); }
    64%, 84%{ opacity:1; transform:translateY(0); }
    92%, 100%{ opacity:0; transform:translateY(-5px); }
  }

  @keyframes introAiButton{
    0%, 56%{ box-shadow:none; filter:saturate(1); }
    62%, 88%{ box-shadow:0 0 0 3px rgba(147,197,253,0.18), 0 14px 26px rgba(168,85,247,0.28); filter:saturate(1.4); }
    100%{ box-shadow:none; filter:saturate(1); }
  }

  @keyframes introInputText{
    0%, 34%{ color:transparent; }
    42%, 100%{ color:#dbeafe; }
  }

  @keyframes introLayerActive{
    0%, 48%{ border-color:#41536b; background:#101a2d; }
    58%, 100%{ border-color:#2563eb; background:#1e3a8a; }
  }

  @media (max-width: 900px){
    .flyer-intro-overlay{
      align-items:flex-start;
      overflow:auto;
    }
    .flyer-intro-body{
      grid-template-columns:1fr;
    }
    .flyer-intro-stage{
      min-height:410px;
    }
    .intro-editor-shell{
      grid-template-columns:1fr;
    }
    .intro-panel{
      display:none;
    }
    .intro-callout.fit{
      right:24px;
    }
  }
@media (max-width: 720px) {
  body .site-header {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 54px !important;
    padding: 8px 12px !important;
    flex-direction: initial !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  body .site-header .header-left {
    grid-column: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
  }

  body .site-header .brand-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    gap: 0 !important;
  }

  body .site-header .brand-icon-wrap {
    display: inline-flex !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  body .site-header .brand-company,
  body .site-header .brand-suite,
  body .site-header .brand-divider,
  body .site-header .theme-toggle {
    display: none !important;
  }

  body .site-header .header-right {
    grid-column: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  body .site-header .user-pill {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 112px) !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    overflow: hidden !important;
  }

  body .site-header .user-pill span:last-child {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }

  body .site-header .logout-link {
    display: inline-flex !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  body .site-header .logout-link::before {
    content: "⏻" !important;
    color: #f8fafc !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
}
