/* Innovationslabor – Quiz (CI-angepasst an bistum-essen.de)
   Leitidee: Weißfläche + neutrale Grautöne, starkes Magenta als Akzent,
   serifenlose, klare Typo. Fokus-States und Kontraste AA/AAA-orientiert. */

@font-face{
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("font/outfit-latin-400-normal.woff2") format("woff2"),
    url("font/outfit-latin-400-normal.woff") format("woff"),
    url("font/Outfit-Regular.ttf") format("truetype");
}
@font-face{
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("font/outfit-latin-500-normal.woff2") format("woff2"),
    url("font/outfit-latin-500-normal.woff") format("woff"),
    url("font/Outfit-Medium.ttf") format("truetype");
}
@font-face{
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("font/outfit-latin-600-normal.woff2") format("woff2"),
    url("font/outfit-latin-600-normal.woff") format("woff"),
    url("font/Outfit-SemiBold.ttf") format("truetype");
}
@font-face{
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("font/outfit-latin-700-normal.woff2") format("woff2"),
    url("font/outfit-latin-700-normal.woff") format("woff"),
    url("font/Outfit-Bold.ttf") format("truetype");
}
@font-face{
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src:
    url("font/outfit-latin-800-normal.woff2") format("woff2"),
    url("font/outfit-latin-800-normal.woff") format("woff"),
    url("font/Outfit-Black.ttf") format("truetype");
}

   :root{
    /* BRAND-TOKENS (hier ggf. gegen offizielle CI-Werte tauschen) */
    --brand: #E1007A;           /* Magenta / Dialogkreuz-Anmutung */
    --brand-600: #C10068;       /* Hover/Darker */
    --brand-100: #FCE4F0;       /* Tinted background */
    --brand-050: #FEF3F8;       /* Very light tint for pills */
  
    /* NEUTRAL / TEXT */
    --text: #111827;            /* Grau-900 */
    --muted: #334155;           /* Slate-700 */
    --border: #E5E7EB;          /* Grau-200 */
    --bg: #FFFFFF;              /* rein weißer Seitenhintergrund */
    --card: transparent;
  
    /* INTERACTION */
    --ring: rgba(225,0,122,.25); /* Fokus-Ring aus Markenfarbe */
    --page-safe-bottom: 220px;   /* Space reserved for sticky footer */
  }
  
  /* Base */
  *{ box-sizing:border-box }
  html,body{
    height:100%;
  }
  body{
    margin:0;
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans",
                 "Apple Color Emoji","Segoe UI Emoji", sans-serif;
    color:var(--text);
    background:var(--bg);
    line-height:1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: var(--page-safe-bottom); /* keep content clear of fixed footer and decor */
  }
  body.modal-open{
    overflow:hidden;
  }

  .site-header{
    background:#f6c1db;
    padding:40px 0 40px;
    position:relative;
  }
  .header-boundary{
    max-width:1280px;
    margin:0 auto;
    padding:0 16px;
    position:relative;
  }
  .header-inner{
    max-width:880px;
    margin:0 auto;
  }
  .site-header h1{
    margin:0;
    font-size: clamp(32px, 4vw, 46px);
    font-weight:700;
    color:#e6007e;
    line-height:1;
  }
  .site-header h1 small{
    display:block;
    font-size: clamp(18px, 2vw, 22px);
    letter-spacing: .04em;
    margin-bottom:-4px;
    line-height:1;
  }
  .site-header h1 br{
    display:none;
  }
  .decor-target{
    position:absolute;
    top:40%;
    right:16px;
    transform: translateY(-30%);
    width: clamp(160px, 22vw, 220px);
    pointer-events:none;
  }

  .modal{
    position:fixed;
    inset:0;
    z-index:100;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .modal.hidden{ display:none }
  .modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(17,24,39,.55);
  }
  .modal-content{
    position:relative;
    background:#fff;
    border-radius:16px;
    box-shadow:0 24px 60px rgba(15,23,42,.25);
    padding:32px;
    max-width:480px;
    width:calc(100% - 32px);
    z-index:1;
  }
  .modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
  }
  .modal-header h2{
    margin:0;
    font-size:24px;
    color:var(--text);
  }
  .modal-close{
    background:none;
    border:0;
    font-size:20px;
    line-height:1;
    cursor:pointer;
    color:var(--muted);
  }
  .modal-close:hover{ color:var(--text) }
  .modal form{
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  .modal label{
    font-weight:600;
    font-size:14px;
    color:var(--muted);
    display:block;
    margin-bottom:4px;
  }
  .modal input[type="text"],
  .modal input[type="email"],
  .modal textarea{
    width:100%;
    padding:10px 12px;
    border-radius:10px;
    border:1px solid var(--border);
    font:inherit;
    color:var(--text);
  }
  .modal textarea{
    min-height:110px;
    resize:vertical;
  }
  .modal input:focus,
  .modal textarea:focus{
    outline:none;
    border-color:var(--brand);
    box-shadow:0 0 0 3px var(--ring);
  }
  .modal .checkbox-row{
    display:flex;
    align-items:flex-start;
    gap:10px;
  }
  .modal .checkbox-row label{
    margin:0;
    font-weight:500;
    color:var(--muted);
  }
  .modal .checkbox-row input{
    margin-top:3px;
    transform:scale(1.05);
    accent-color:var(--brand);
  }
  .modal .actions-row{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:12px;
  }
  .modal .form-status{
    font-size:14px;
    min-height:18px;
  }
  .modal .form-status.error{ color:#b91c1c }
  .modal .form-status.success{ color:#047857 }

  .site-footer{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:transparent;
    color:#fff;
    padding:0;
    z-index: 10;
  }
  .footer-boundary{
    margin:-70px 0 0;
    padding:0;
    position:relative;
    overflow:visible;
  }
  .footer-stage-wrap{
    position:relative;
    overflow:visible;
  }
  .footer-stage{
    position:absolute;
    bottom:-10px;
    left:0;
    right:0;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    padding:0 24px;
    pointer-events:none;
    gap:24px;
    z-index:1;
  }

  .footer-stage img{
    display:block;
    pointer-events:none;
    position:relative;
    z-index:1;
  }
  .footer-panel{
    background:#003869;
    display: flex;
    justify-content: center;
    padding:32px 0 0;
    color:#fff;
    position:relative;
    z-index:5;
  }
  .footer-content{
    display:flex;
    width: 100%;
    max-width: 880px;
    justify-content:space-between;
    align-items:flex-start;
    gap:0;
    min-height:200px;
    margin: 0 25px;
  }
  .site-footer h2{
    margin:0;
    font-family:"Outfit", sans-serif;
    font-weight:700;
    font-size: clamp(22px, 2.4vw, 28px);
    text-align:left;
    max-width:420px;
    color: #FFF;
  }
  .footer-col{
    display:flex;
    flex-direction:column;
  }
  .footer-col-text{
    flex:1 1 360px;
  }
  .footer-col-logo{ 
    flex:1 1 200px;
  }

  .footer-col-text{
    align-items:flex-start;
    justify-content:flex-start;
  }
  .footer-col-gears{
    flex:0 0.1 220px;
    align-items:center;
    justify-content:flex-end;
    padding-bottom:0;
    align-self:flex-end;
    position:relative;
  }
  .footer-col-logo{
    justify-content:flex-end;
    align-items:flex-end;
  }
  .footer-logo{
    width: clamp(140px, 18vw, 200px);
  }
  .decor-gears{
    position:static;
    transform:none;
    width: clamp(290px, 20vw, 400px);
    pointer-events:none;
    margin: auto -80px -50%;
  }
  .decor-plant{
    width: clamp(140px, 18vw, 200px);
    margin-bottom:-6px;
  }
  .decor-experiment{
    width: clamp(180px, 26vw, 260px);
    margin-bottom:-10px;
  }

  @media (max-width: 1369px), (max-height: 860px){
    :root{
      --page-safe-bottom: 48px;
    }
    .site-footer{
      position:static;
      padding:0;
    }
    .footer-stage{
      position:static;
      padding:0 24px;
      margin:20px auto 0;
      gap:18px;
      justify-content:space-between;
      z-index:1;
    }
    .decor-plant,
    .decor-experiment{
      margin-bottom:-20px;
    }
    .footer-panel{
      padding:28px 0 36px;
    }
    .footer-content{
      margin:0 24px;
    }
  }

  @media (max-width: 640px){
    .decor-target{
      right:0;
    }
    .site-footer{
      position:static;
      padding:0;
    }
    .footer-stage{
      position:static;
      padding:0;
      margin:0 auto 0;
      gap:18px;
      justify-content:space-between;
      z-index:1;
    }
    .decor-plant{
      width: clamp(140px, 35vw, 200px);
      margin-bottom:-15px;
    }
    .decor-experiment{
      width: clamp(160px, 40vw, 220px);
      margin-bottom:-15px;
    }
    .footer-panel{
      padding:24px 0 28px;
    }
    .footer-content{
      flex-direction:column;
      align-items:stretch;
      gap:18px;
      min-height:auto;
      margin:0 25px;
      width:100%;
    }
    .footer-col{
      flex:none;
      width:100%;
    }
    .footer-col-logo{
      order:0;
      align-items: flex-start;;
      justify-content:left;
      width:100%;
    }
    .footer-logo {
      width: clamp(140px, 50vw, 200px);
    }
    .footer-col-text{
      order:1;
      align-items:flex-start;
      justify-content:flex-start;
      width:100%;
    }
    .site-footer h2{
      font-size: clamp(22px, 6vw, 280px);
      text-align:left;
      max-width:420px;
      color: #FFF;
    }
    .footer-col-gears{
      display: none;
    }
    .decor-gears{
      margin:20px auto -40px;
    }
  }
  
  /* Layout */
  .shell{
    max-width: 880px;
    margin: 32px auto 0;
    padding: 16px;
  }
  .card{
    background:var(--card);
    border-radius:0;
    box-shadow:none;
    border:0;
    padding:0;
  }
  
  /* Headings / Intro */
  h2{
    margin:0 0 10px 0;
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 700;
    letter-spacing: .1px;
    color: var(--text);
  }
  .sub{
    color: var(--muted);
    margin: 0 0 16px 0;
  }
  
  /* Progress */
  .progress-wrap{
    background:#eef2f7;
    height:8px;
    border-radius:999px;
    overflow:hidden;
    margin:16px 0 24px;
    border: 1px solid #e9eef4;
  }
  .progress{
    height:8px;
    width:0%;
    background: linear-gradient(90deg, var(--brand) 0%, #ff8ac0 100%);
    transition: width .35s ease;
  }
  
  /* Fragen & Optionen */
  .question{
    margin: 8px 0 12px;
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 20px);
    color: var(--text);
  }
  .req{ margin-left:6px; color: var(--brand); font-weight: 800 }
  
  .options{
    display:grid;
    gap: 10px;
    margin: 12px 0 20px;
  }
  
  .opt{
    border:1px solid var(--border);
    border-radius:14px;
    padding:0;
    display:flex;
    align-items:center;
    background:#fff;
    transition: border-color .2s, box-shadow .2s, transform .05s;
  }
  .opt:hover{
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(225,0,122,.08);
  }
  .opt:has(input:focus-visible){
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
    border-color: var(--brand);
  }
  
  .opt input[type="radio"],
  .opt input[type="checkbox"]{
    margin:0 12px 0 14px;
    transform: scale(1.15);
    accent-color: var(--brand);
    align-self:center;
  }
  .opt label{
    cursor:pointer;
    flex:1;
    display:block;
    padding:12px 14px 12px 0;
  }
  
  textarea{
    width:100%;
    min-height:120px;
    resize: vertical;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid var(--border);
    font: inherit;
  }
  textarea:focus{
    outline:none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--ring);
  }
  
  /* Actions */
  .actions{
    display:flex;
    gap:10px;
    justify-content:space-between;
    align-items:center;
    margin-top: 6px;
  }
  button{
    appearance:none;
    border:0;
    border-radius:12px;
    padding:10px 14px;
    cursor:pointer;
    font-weight:700;
    background: var(--brand);
    color:#fff;
    box-shadow: 0 8px 20px rgba(225,0,122,.20);
    transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  }
  button:hover{ background: var(--brand-600) }
  button:active{ transform: translateY(1px) }
  button:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
  }
  
  .btn-secondary{
    background:#eef2f7;
    color: var(--text);
    box-shadow:none;
  }
  .btn-secondary:hover{ background:#e3e9f1 }
  
  .btn-ghost{
    background: transparent;
    color: var(--brand);
    box-shadow:none;
  }
  .btn-ghost:hover{
    background: var(--brand-050);
  }
  
  /* Ergebnisanzeige */
  .result{
    border-left:6px solid var(--brand);
    padding-left:16px;
    margin: 30px 0 75px;
  }
  
  .pill{
    display:inline-block;
    font-size:12px;
    font-weight:700;
    padding:4px 10px;
    border-radius:999px;
    background:#f1f5f9;
    color: var(--text);
    margin-right:6px;
    border:1px solid #e5e7eb;
  }
  .pill.small{ background:#eef2f7 }
  .pill.big{ background: var(--brand-050); border-color: var(--brand-100); color: #6e0840 }
  .pill.advice{ background:#fafafa }
  
  /* Events */
  .event{
    border:1px solid var(--border);
    border-radius:12px;
    padding: 10px 12px;
    margin-top: 10px;
    background:#fff;
  }
  
  /* Misc */
  .hidden{ display:none }
  
  /* Links im Ergebnis-Block */
  .result a{
    color: var(--brand);
    text-decoration: none;
  }
  .result a:hover{ text-decoration: underline }
  
  /* Kleines Responsive-Finetuning */
  @media (max-width: 520px){
    .actions{
      flex-direction: column-reverse;
      align-items: stretch;
      gap: 8px;
    }
    .btn-ghost{ align-self:flex-start }
  }
