/* Age of Castlefight – Webseite. Farbwelt des Logos: Königsblau + Gold. Keine externen Schriften. */
:root {
  --bg: #050b1d; --bg2: #0a1634; --panel: #0e1d44; --panel2: #13265a; --line: rgba(232, 191, 90, .28);
  --gold: #f1c75b; --gold-hi: #ffe7a3; --gold-lo: #b8862a; --text: #ebe5d6; --muted: #aab4cb; --ok: #9fe07a; --bad: #ff9a86;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 16px; --shell: min(1160px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: #f7e6b4; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.shell { width: var(--shell); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font: 700 16px/1.2 var(--sans);
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, filter .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #1d1608; background: linear-gradient(#ffe9a6, #e5b84f 55%, #c4912f); border-color: #fff1c4; box-shadow: 0 6px 22px rgba(241, 199, 91, .28), inset 0 1px 0 #fff8dd; }
.btn-gold:hover { color: #1d1608; box-shadow: 0 10px 30px rgba(241, 199, 91, .42), inset 0 1px 0 #fff8dd; }
.btn-ghost { color: var(--gold-hi); background: rgba(10, 22, 52, .55); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(5, 11, 29, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(232, 191, 90, .18); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #f7e6b4; font: 700 19px/1 var(--serif); letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: var(--gold-hi); background: rgba(255, 255, 255, .05); }
.nav .btn { padding: 9px 18px; font-size: 15px; margin-left: 8px; }
.nav .btn-gold, .nav .btn-gold:hover, .mobile-nav .btn-gold, .mobile-nav .btn-gold:hover { color: #1d1608; }   /* Knopftext dunkel auf Gold (sonst greift die helle Link-Farbe) */
.menu-toggle { display: none; margin-left: auto; }
.menu-toggle summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--gold-hi); }
.menu-toggle summary::-webkit-details-marker { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; position: relative; }
  .menu-toggle .mobile-nav { position: absolute; right: 0; top: 48px; width: 230px; display: flex; flex-direction: column; gap: 4px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
  .mobile-nav a { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; }
  .mobile-nav .btn { margin-top: 6px; }
}

/* Startbereich */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 60px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: saturate(1.05); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(5, 11, 29, .45), rgba(5, 11, 29, .82) 62%, var(--bg) 100%), linear-gradient(transparent 70%, var(--bg)); }
.hero-logo { width: min(560px, 86vw); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .65)); }
.hero h1 { font-size: clamp(22px, 3.2vw, 34px); color: var(--gold-hi); margin: 10px 0 12px; letter-spacing: .02em; }
.hero .lead { max-width: 680px; margin: 0 auto 26px; font-size: clamp(16px, 1.6vw, 19px); color: #e3dccb; text-shadow: 0 2px 8px #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--muted); font-size: 14px; }
.trust li::before { content: '◆'; color: var(--gold); margin-right: 8px; font-size: 10px; vertical-align: 2px; }

/* Abschnitte */
section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid rgba(232, 191, 90, .12); border-bottom: 1px solid rgba(232, 191, 90, .12); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font: 700 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.kicker::before, .kicker::after { content: ''; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.kicker::after { transform: scaleX(-1); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Trailer */
.video-frame { position: relative; max-width: 980px; margin: 0 auto; border-radius: var(--r); overflow: hidden; border: 2px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, var(--gold-hi), var(--gold-lo) 40%, var(--gold) 70%, #6a4a1c) border-box; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* So funktioniert's */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  font: 700 18px/1 var(--serif); color: #1d1608; background: linear-gradient(#ffe9a6, #d9a845); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Völker */
.factions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.faction { display: flex; flex-direction: column; padding: 18px 18px 20px; border-radius: var(--r); background: linear-gradient(170deg, var(--panel2), var(--panel) 60%, #0a1530); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.faction:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
.faction-art { position: relative; height: 150px; margin: -4px -6px 12px; border-radius: 12px; background: radial-gradient(ellipse at 50% 85%, rgba(120, 150, 90, .32), transparent 70%), radial-gradient(ellipse at 50% 30%, rgba(80, 110, 190, .25), transparent 70%); }
.faction-art .castle { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); height: 120px; width: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.faction-art .unit { position: absolute; bottom: 4px; height: 64px; width: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); }
.faction-art .unit.a { left: 4px; } .faction-art .unit.b { right: 4px; }
.faction h3 { margin-bottom: 4px; }
.faction p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.faction .passive { margin-top: auto; font-size: 13.5px; color: #d9cfae; border-top: 1px solid rgba(232, 191, 90, .16); padding-top: 10px; margin-bottom: 0; }
.faction .passive b { color: var(--gold); }
@media (max-width: 1020px) { .factions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .factions { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--r); background: rgba(19, 38, 90, .45); border: 1px solid rgba(232, 191, 90, .18); }
.feature .ico { font-size: 28px; line-height: 1; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); }
.lightbox::backdrop { background: rgba(2, 5, 14, .9); }
.lightbox img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.lightbox p { text-align: center; color: var(--text); margin: 10px 0 0; }
.lightbox button { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--gold-hi); font-size: 22px; cursor: pointer; }

/* Registrierung */
.register { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.register-copy ul { list-style: none; padding: 0; margin: 18px 0 0; }
.register-copy li { position: relative; padding-left: 30px; margin-bottom: 10px; color: #ddd5c2; }
.register-copy li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.card { padding: 30px; border-radius: 20px; border: 2px solid transparent;
  background: linear-gradient(160deg, #142b63, #0b1838) padding-box, linear-gradient(135deg, var(--gold-hi), var(--gold-lo) 40%, var(--gold) 70%, #6a4a1c) border-box; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"] { width: 100%; padding: 13px 15px; font: 16px var(--sans); color: var(--text); background: #071230; border: 1px solid #2d457f; border-radius: 12px; }
.field input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(241, 199, 91, .25); }
.field small { color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #d6cfbf; margin: 4px 0 20px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.status.ok { display: block; background: rgba(110, 190, 90, .14); border: 1px solid rgba(159, 224, 122, .5); color: #dff7cf; }
.status.err { display: block; background: rgba(230, 90, 70, .14); border: 1px solid rgba(255, 154, 134, .5); color: #ffe0d8; }
.status b { display: block; margin-bottom: 2px; }
@media (max-width: 860px) { .register { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(232, 191, 90, .2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 700 18px/1.4 var(--serif); color: #f3e2b0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font: 400 26px/1 var(--sans); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Abschluss + Fußzeile */
.final-cta { text-align: center; }
.final-cta img { width: min(380px, 70vw); margin: 0 auto 14px; height: auto; }
.site-footer { border-top: 1px solid rgba(232, 191, 90, .18); padding: 34px 0 40px; color: var(--muted); font-size: 14px; background: #030817; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--gold-hi); }

/* Unterseiten (Impressum, Datenschutz, Anmelden, Willkommen) */
.page { padding: 56px 0 80px; }
.page .shell { max-width: 820px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); }
.page h2 { font-size: 24px; margin-top: 34px; }
.page p, .page li { color: #d8d1c0; }
.page .meta { color: var(--muted); font-size: 14px; }
.legal address { font-style: normal; line-height: 1.7; }
.toc { padding: 18px 22px; background: rgba(19, 38, 90, .45); border: 1px solid rgba(232, 191, 90, .2); border-radius: 14px; }
.toc ol { margin: 0; padding-left: 20px; }
.center-card { max-width: 560px; margin: 0 auto; text-align: center; }
.center-card .card { text-align: left; }
.notice { padding: 12px 16px; border-radius: 12px; background: rgba(241, 199, 91, .12); border: 1px solid var(--line); color: #f3e7c6; margin-bottom: 18px; }
.welcome-logo { width: min(420px, 80vw); height: auto; margin: 0 auto 8px; }
.tips { text-align: left; margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tips li { padding: 12px 16px; background: rgba(19, 38, 90, .45); border: 1px solid rgba(232, 191, 90, .16); border-radius: 12px; color: #d8d1c0; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.link-btn:hover { color: var(--bad); }
.small-actions { display: flex; gap: 18px; justify-content: center; margin-top: 30px; font-size: 14px; }
.small-actions form { margin: 0; }

/* Ergebnisseite ohne JavaScript */
.page-simple { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(ellipse at 50% 30%, #13265a, var(--bg) 70%); }
.simple-card { max-width: 560px; text-align: center; }
.simple-logo img { margin: 0 auto 16px; height: auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.card .btn[type="submit"] { width: 100%; }
.muted { color: var(--muted); }
/* Galerie: gleichmäßiges Raster (überschreibt die große erste Kachel) */
.gallery a:first-child { grid-column: auto; grid-row: auto; }
/* Startbereich: Logo und Text vor dem bunten Schlachtbild besser lesbar */
.hero::before { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(5, 11, 29, .82), rgba(5, 11, 29, .6) 55%, rgba(5, 11, 29, .85) 85%, var(--bg) 100%), linear-gradient(transparent 70%, var(--bg)); }
.hero-logo { width: min(480px, 84vw); }
.welcome-logo { width: min(300px, 70vw); }

/* Community / Discord */
.community { padding: 70px 0; }
.community-card { display: flex; align-items: center; gap: 36px; padding: 34px 38px; border-radius: 20px; border: 2px solid transparent;
  background: radial-gradient(ellipse at 0% 0%, rgba(88, 101, 242, .28), transparent 60%) padding-box, linear-gradient(160deg, #142b63, #0b1838) padding-box,
              linear-gradient(135deg, var(--gold-hi), var(--gold-lo) 40%, var(--gold) 70%, #6a4a1c) border-box; }
.community-card p { color: #d6cfbf; margin: 0; max-width: 640px; }
.community-card h2 { font-size: clamp(26px, 3.4vw, 36px); }
.community-card .btn { flex: none; margin-left: auto; }
.btn-discord { color: #fff; background: linear-gradient(#6f7cf5, #4f5bd5); border-color: #9aa3ff; box-shadow: 0 6px 22px rgba(88, 101, 242, .35); }
.btn-discord:hover { color: #fff; box-shadow: 0 10px 30px rgba(88, 101, 242, .5); }
.i-chat { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 760px) { .community-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; } .community-card .btn { margin-left: 0; } }

/* Anmelden + Konto */
.field input[type="password"] { width: 100%; padding: 13px 15px; font: 16px var(--sans); color: var(--text); background: #071230; border: 1px solid #2d457f; border-radius: 12px; }
.field input[type="text"][data-pw] { letter-spacing: .02em; }
.muted { color: var(--muted); }
.btn-block { width: 100%; }
.card-soft { margin-top: 22px; padding: 18px 24px; text-align: left; background: rgba(12, 26, 62, .7); border: 1px solid rgba(232, 191, 90, .25); box-shadow: none; }
.card-soft summary { cursor: pointer; font-weight: 600; color: #f3e2b0; }
.card-soft[open] summary { margin-bottom: 10px; }
.card-soft .btn { margin-top: 2px; }
.konto-box { margin-top: 22px; }
.konto-box h2 { margin: 0 0 10px; font-size: 22px; }
.konto-box [data-save-info] { font-weight: 600; color: #f1e6c8; }
.lead .muted { font-size: 15px; }
