/*!
 * © 2026 RUH Connects – https://ruh-connects.de
 * CONNDI Attack · Alle Rechte vorbehalten. Weitergabe oder Veränderung des Codes nur mit Erlaubnis.
 */
/* CONNDI Attack – Welcome-Modal + Startseiten-Karte */
html.caw-open { overflow: hidden; }

.caw { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; }
.caw[hidden] { display: none; }
.caw-backdrop { position: absolute; inset: 0; background: rgba(4, 12, 20, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.caw-box { position: relative; width: min(1100px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #0f2433; color: #f4f9ff; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); animation: caw-in .45s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes caw-in { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.caw-head { padding: 18px 64px 14px 20px; }
.caw-kicker { display: inline-block; font-weight: 900; font-size: 12px; letter-spacing: .16em; color: #14300a; background: #a1ff39; padding: 4px 11px; border-radius: 999px; }
.caw-head h2 { margin: 9px 0 4px; font-size: clamp(20px, 3vw, 30px); line-height: 1.15; color: #fff; }
.caw-sub { margin: 0; font-size: 14px; color: #c9dbe8; }
.caw-sub strong { color: #a1ff39; font-variant-numeric: tabular-nums; }
.caw-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.caw-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.caw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px 18px; }
.caw-x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.caw-x:hover { background: rgba(255, 255, 255, .18); }

.caw-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 12px; border: 0; font: inherit; font-weight: 800; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s, filter .2s; }
.caw-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.caw-btn.primary { background: #a1ff39; color: #14300a; }
.caw-btn.discord { background: #5865f2; color: #fff; }
.caw-btn.ghost { background: rgba(255, 255, 255, .1); color: #e6f0f8; margin-left: auto; }
.caw-btn.outline { background: transparent; color: #14300a; box-shadow: inset 0 0 0 2px #5fb636; }
.caw-btn.dark { background: rgba(255, 255, 255, .1); color: #e6f0f8; }

/* Minecraft-Seite: Trailer-Paket für Streamer */
.caw-kit { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .92); color: #10212e; border: 2px solid #a1ff39; }
.caw-kit h3 { margin: 0 0 6px; font-size: 20px; color: #10212e; }
.caw-kit p { margin: 0 0 12px; color: #2c4253; line-height: 1.5; }
.caw-kit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.caw-kit .caw-btn { font-size: 14px; padding: 10px 14px; }
.caw-kit .caw-btn.dark { background: #10212e; color: #fff; }
.caw-kit-note { margin: 12px 0 0 !important; font-size: 12px; color: #5a6e7d !important; }
.caw-kit-note a { color: #2f7d12; }

.caw :focus-visible, .caw-feature :focus-visible { outline: 3px solid #a1ff39; outline-offset: 3px; }

/* Startseite: hervorgehobene Minecraft-Karte */
.caw-feature { display: grid; grid-template-columns: 1.15fr 1fr; margin: 0 0 22px; overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .92); color: #10212e; border: 2px solid #a1ff39; box-shadow: 0 18px 50px rgba(10, 40, 70, .25); }
.caw-feature-img { display: block; }
.caw-feature-img img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.caw-feature-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px 24px; }
.caw-feature-body .caw-kicker { align-self: flex-start; }
.caw-feature-body h3 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; color: #10212e; }
.caw-feature-body p { margin: 0; color: #2c4253; line-height: 1.5; }
.caw-feature-cd { font-weight: 700; }
.caw-feature-cd strong { color: #2f7d12; font-variant-numeric: tabular-nums; }
.caw-feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

@media (max-width: 760px) {
  .caw-feature { grid-template-columns: 1fr; }
  .caw-head { padding: 14px 58px 10px 14px; }
  .caw-actions { padding: 12px 14px 14px; }
  .caw-btn.ghost { margin-left: 0; }
  .caw-actions .caw-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .caw-box { animation: none; } .caw-btn { transition: none; } }
