/* ==========================================================================
   TRIPLE-M-VALLEY — Design System
   Palette derived from logo: stone-grey blocks, gold "VALLEY" letters,
   pine-green valley, sky/water blues.
   ========================================================================== */

:root{
  /* Core palette */
  --bg-deep:        #101d16;   /* near-black pine, page background */
  --bg-panel:       #17281f;   /* slightly lighter panel */
  --bg-panel-2:     #1e3327;   /* card background */
  --bg-panel-raise: #24402f;   /* raised / hover panel */

  --stone:          #9aa2a3;   /* MMM letters */
  --stone-light:    #cfd5d3;
  --stone-dark:     #4d5354;

  --gold:           #f0a830;   /* VALLEY letters */
  --gold-bright:    #ffc866;
  --gold-dark:      #a5701a;

  --sky:            #6fb7e0;
  --water:          #3ea8c4;

  --parchment:      #ece1c8;

  --text:           #eef2ec;
  --text-muted:     #a9b9ae;
  --text-faint:     #7c8b81;

  --line:           rgba(154, 162, 163, 0.22);
  --line-gold:      rgba(240, 168, 48, 0.35);

  /* Type */
  --font-display: "Cinzel", "Georgia", serif;
  --font-pixel:   "Press Start 2P", monospace;
  --font-body:    "Mulish", "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 10px;
  --shadow-deep: 0 20px 50px rgba(0,0,0,0.45);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(111,183,224,0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(240,168,48,0.06), transparent 55%),
    var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; }

::selection{ background: var(--gold-dark); color: #fff; }

:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Eyebrow / pixel labels (used sparingly, Minecraft nod) ---------- */
.eyebrow{
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 3px;
  background: var(--gold);
  display:inline-block;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--stone-light);
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}
h1{ font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; color: var(--text); }
h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3{ font-size: 1.25rem; }

h1 .accent, h2 .accent{ color: var(--gold); }

p{ color: var(--text-muted); }

.lede{ font-size: 1.15rem; max-width: 640px; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 29, 22, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  position: relative;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.brand img{ width: 44px; height: 44px; object-fit: contain; }
.brand small{
  display:block;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 30px;
  flex-wrap: wrap;
}
.nav-links a{
  font-size: 0.94rem;
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--gold-bright); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height: 2px; background: var(--gold);
}

.nav-actions{ display:flex; align-items:center; gap: 14px; }

/* ---------- Hamburger-Menü (nur < 900px sichtbar, siehe Responsive-Block) ---------- */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover{ border-color: var(--gold); }
.nav-toggle .bar{
  width: 20px;
  height: 2px;
  background: var(--stone-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2){ opacity: 0; }
.nav-toggle.open .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.ip-chip{
  display:flex; align-items:center; gap: 8px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line-gold);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--stone-light);
  cursor: pointer;
}
.ip-chip:hover{ border-color: var(--gold); }
.ip-chip .dot{ width:7px; height:7px; border-radius:50%; background:#57d68d; box-shadow: 0 0 6px #57d68d; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-gold{
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark));
  color: #241503;
  box-shadow: 0 6px 18px rgba(240,168,48,0.25);
}
.btn-gold:hover{ box-shadow: 0 8px 22px rgba(240,168,48,0.4); }

.btn-outline{
  background: transparent;
  color: var(--stone-light);
  border-color: var(--line);
}
.btn-outline:hover{ border-color: var(--gold); color: var(--gold-bright); }

.btn-ghost{
  background: var(--bg-panel-2);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--sky); }

.btn-danger{
  background: rgba(214, 87, 87, 0.14);
  color: #f2a3a3;
  border-color: rgba(214,87,87,0.4);
}
.btn-danger:hover{ background: rgba(214,87,87,0.24); }

.btn-sm{ padding: 8px 14px; font-size: 0.82rem; }
.btn-block{ width:100%; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 76px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before{
  content:"";
  position:absolute; inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(62,168,196,0.14), transparent 70%);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items:center;
}
.hero-logo{
  justify-self:center;
  width: min(100%, 420px);
  filter: drop-shadow(0 25px 45px rgba(0,0,0,0.5));
  animation: float 7s ease-in-out infinite;
}
@keyframes float{
  0%, 100%{ transform: translateY(0px); }
  50%{ transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce){ .hero-logo{ animation:none; } }

.hero-actions{ display:flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.server-ip-box{
  margin-top: 34px;
  display:inline-flex;
  align-items:center;
  gap: 16px;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-deep);
}
.server-ip-box .label{
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.server-ip-box .ip{
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
}
.copy-btn{
  background: var(--bg-panel-raise);
  border: 1px solid var(--line);
  color: var(--stone-light);
  border-radius: 6px;
  padding: 9px 13px;
  cursor:pointer;
  font-size: 0.8rem;
}
.copy-btn:hover{ border-color: var(--gold); color: var(--gold-bright); }
.copy-btn.copied{ border-color:#57d68d; color:#57d68d; }

/* ---------- Sections ---------- */
section{ padding: 76px 0; }
.section-head{ margin-bottom: 44px; max-width: 640px; }

.divider-rule{
  border:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  margin: 0;
}

/* ---------- Feature grid ---------- */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.feature-card{
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover{ border-color: var(--line-gold); transform: translateY(-3px); }
.feature-card .icon{ width:38px; height:38px; margin-bottom: 16px; color: var(--gold); }
.feature-card h3{ margin-bottom: 8px; }
.feature-card p{ font-size: 0.94rem; margin:0; }

/* ==========================================================================
   Signature element — the "Wappenbanner" (crest-banner) card.
   Echoes the logo's rounded badge/banner silhouette; used for team members,
   nobility entries, and rule categories throughout the site.
   ========================================================================== */
.banner-card{
  position: relative;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  padding: 28px 22px 38px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 92% 100%, 50% 86%, 8% 100%, 0 82%);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.banner-card:hover{ transform: translateY(-4px); }
.banner-card::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
}
.banner-card .head-frame{
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 8px;
  overflow:hidden;
  border: 2px solid var(--line-gold);
  background: var(--bg-panel-raise);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.banner-card .head-frame img{ width:100%; height:100%; object-fit:cover; image-rendering: pixelated; }
.banner-card .name{ font-family: var(--font-display); font-size: 1.05rem; color: var(--text); margin-bottom: 4px; }
.banner-card .role{
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.banner-card .desc{ font-size: 0.86rem; margin-top: 12px; color: var(--text-muted); }

.rank-badge{
  display:inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--line-gold);
  color: var(--gold-bright);
  background: rgba(240,168,48,0.08);
}

.card-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px 24px;
  padding-top: 6px;
}

/* ---------- Rules page ---------- */
.rules-category{ margin-bottom: 46px; }
.rules-category h3{
  display:flex; align-items:center; gap: 14px;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.rules-category h3 .cat-icon{ font-size: 1.2rem; }
.rule-list{ display:flex; flex-direction: column; gap: 12px; }
.rule-item{
  display:flex; gap: 16px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 16px 18px;
}
.rule-item .num{
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
  min-width: 28px;
}
.rule-item p{ margin:0; color: var(--text); font-size: 0.96rem; }
.rule-item .rule-note{ color: var(--text-faint); font-size: 0.84rem; margin-top: 4px; }

.empty-state{
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align:center;
  color: var(--text-faint);
}

/* ---------- Economy banner ("Moneten im Umlauf") ---------- */
.economy-section{ text-align: center; }
.economy-card{
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow-deep);
}
.economy-card .amount{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.economy-card .amount .unit{
  font-size: 0.42em;
  color: var(--stone-light);
  margin-left: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  vertical-align: middle;
}
.economy-card .sub{ margin-top: 10px; color: var(--text-muted); font-size: 0.94rem; }
.economy-card .meta{ margin-top: 20px; color: var(--text-faint); font-size: 0.78rem; }
.economy-card .stale-note{
  margin-top: 14px;
  display:inline-block;
  font-size: 0.76rem;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Statistiken (Dashboard) ---------- */
.stat-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat-box{
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.stat-box .big{ font-family: var(--font-display); font-size: 2rem; color: var(--gold-bright); line-height:1; }
.stat-box .label{ font-size: 0.78rem; color: var(--text-faint); margin-top: 8px; }

.usage-block{ margin-bottom: 22px; }
.usage-row{ display:flex; justify-content: space-between; align-items:baseline; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 7px; }
.usage-row .val{ color: var(--text); font-weight: 700; }
.usage-bar{ height: 10px; border-radius: 999px; background: var(--bg-panel-raise); overflow:hidden; border: 1px solid var(--line); }
.usage-bar-fill{ height:100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright)); transition: width .4s ease; }
.usage-bar-fill.warn{ background: linear-gradient(90deg, #a5701a, #e0a83e); }
.usage-bar-fill.danger{ background: linear-gradient(90deg, #8a3232, #d66); }
.usage-unavailable{ font-size: 0.82rem; color: var(--text-faint); font-style: italic; }

/* ---------- Downloads ---------- */
.download-list{ display:flex; flex-direction:column; gap: 14px; }
.download-card{
  display:flex; align-items:center; gap: 18px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color .2s ease, transform .2s ease;
}
.download-card:hover{ border-color: var(--line-gold); transform: translateY(-2px); }
.download-card .file-icon{ width:44px; height:44px; flex-shrink:0; color: var(--gold); }
.download-card .file-info{ flex:1; min-width:0; }
.download-card .file-info .title{ font-family: var(--font-display); color: var(--text); font-size: 1.05rem; }
.download-card .file-info .meta{ font-size: 0.8rem; color: var(--text-faint); margin-top: 2px; }
.download-card .file-info .desc{ font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }
.download-card .dl-actions{ flex-shrink:0; }

.row-icon{
  width: 44px; height:44px; border-radius:6px;
  background: var(--bg-panel-raise);
  border: 1px solid var(--line-gold);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; color: var(--gold);
}
.row-icon svg{ width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-panel);
}
.footer-grid{
  display:flex; justify-content: space-between; align-items:center;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand{ display:flex; align-items:center; gap: 12px; }
.footer-brand img{ width: 32px; height:32px; object-fit:contain; }
.footer-links{ display:flex; gap: 22px; flex-wrap: wrap; }
.footer-links a{ color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover{ color: var(--gold-bright); }
.footer-note{ color: var(--text-faint); font-size: 0.8rem; }

/* ---------- Modal (Login) ---------- */
.modal-overlay{
  position: fixed; inset: 0;
  background: rgba(8, 14, 10, 0.72);
  backdrop-filter: blur(3px);
  display:none;
  align-items:center; justify-content:center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.open{ display:flex; }
.modal{
  width: 100%; max-width: 380px;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-deep);
  position: relative;
}
.modal .close-x{
  position:absolute; top: 14px; right: 16px;
  background:none; border:none; color: var(--text-faint);
  font-size: 1.3rem; cursor:pointer; line-height:1;
}
.modal .close-x:hover{ color: var(--gold-bright); }
.modal h3{ margin-bottom: 6px; }
.modal p.sub{ font-size: 0.86rem; margin-bottom: 20px; }

.field{ margin-bottom: 16px; }
.field label{ display:block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field textarea, .field select{
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.94rem;
}

.field input[type="file"]::file-selector-button,
.field input[type="file"]::-webkit-file-upload-button{
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark));
  color: #241503;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  margin-right: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--gold); }
.field-error{ color: #f2a3a3; font-size: 0.8rem; margin-top: 8px; display:none; }
.field-error.show{ display:block; }

/* ---------- Dashboard ---------- */
body.dash{ background: var(--bg-deep); }
.dash-shell{ display:flex; min-height: 100vh; }
.dash-sidebar{
  width: 250px;
  flex-shrink:0;
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  display:flex; flex-direction:column;
  gap: 30px;
}
.dash-brand{ display:flex; align-items:center; gap:10px; padding: 0 6px; }
.dash-brand img{ width:36px; height:36px; }
.dash-brand span{ font-family: var(--font-display); font-size:0.95rem; }

.dash-nav{ display:flex; flex-direction:column; gap: 4px; }
.dash-nav button{
  display:flex; align-items:center; gap: 10px;
  text-align:left;
  background:none; border:none;
  color: var(--text-muted);
  padding: 11px 14px;
  border-radius: 8px;
  cursor:pointer;
  font-size: 0.9rem;
}
.dash-nav button:hover{ background: var(--bg-panel-2); color: var(--text); }
.dash-nav button.active{ background: var(--bg-panel-raise); color: var(--gold-bright); border-left: 3px solid var(--gold); }

.dash-sidebar-actions{ display:flex; flex-direction:column; gap:10px; }

.dash-main{ flex:1; padding: 34px 40px; max-width: 980px; }
.dash-topbar{ display:flex; justify-content: space-between; align-items:center; margin-bottom: 30px; }
.dash-topbar .who{ font-size: 0.85rem; color: var(--text-faint); }

.dash-panel{ display:none; }
.dash-panel.active{ display:block; }

.dash-toolbar{ display:flex; justify-content: space-between; align-items:center; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }

.table-list{ display:flex; flex-direction:column; gap: 10px; }
.row-card{
  display:flex; align-items:center; gap: 16px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.row-card .head-frame-sm{
  width: 44px; height:44px; border-radius:6px; overflow:hidden;
  border: 1px solid var(--line-gold); flex-shrink:0;
  background: var(--bg-panel-raise);
}
.row-card .head-frame-sm img{ width:100%; height:100%; object-fit:cover; image-rendering: pixelated; }
.row-card .info{ flex:1; min-width:0; }
.row-card .info .n{ font-weight: 700; color: var(--text); }
.row-card .info .r{ font-size: 0.8rem; color: var(--text-faint); }
.row-card .row-actions{ display:flex; gap: 8px; flex-shrink:0; }

.rule-row{
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.rule-row .rr-top{ display:flex; justify-content: space-between; gap: 12px; align-items:flex-start; }
.rule-row .rr-cat{ font-size: 0.72rem; color: var(--gold); font-family: var(--font-pixel); }
.rule-row .rr-text{ margin: 8px 0 0; color: var(--text); font-size: 0.92rem; }

.form-card{
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full{ grid-column: 1 / -1; }
.form-actions{ display:flex; gap: 10px; margin-top: 6px; }

.toast{
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-panel-raise);
  border: 1px solid var(--line-gold);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-deep);
  font-size: 0.88rem;
  z-index: 200;
  transform: translateY(20px);
  opacity: 0;
  pointer-events:none;
  transition: all 0.25s ease;
}
.toast.show{ transform: translateY(0); opacity:1; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---- Tablet & darunter (≤900px): Hamburger-Menü aktiv ---- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-logo{ order:-1; width: min(70%, 300px); }

  .nav-toggle{ display: flex; }

  .nav-links{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;

    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 60;

    background: var(--bg-panel);
    border-bottom: 1px solid var(--line-gold);
    box-shadow: var(--shadow-deep);
    padding: 10px 20px 16px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a{
    padding: 13px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child{ border-bottom: none; }
  .nav-links a.active::after{ display:none; }
  .nav-links a.active{ color: var(--gold-bright); }

  .ip-chip .copy-label{ display:none; }

  .dash-shell{ flex-direction: column; }
  .dash-sidebar{
    width:100%;
    flex-direction:row;
    align-items:center;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 16px;
  }
  .dash-nav{ flex-direction:row; flex-shrink:0; }
  .dash-nav button{ white-space: nowrap; }
  .dash-sidebar-actions{ flex-direction:row; gap:8px; margin-top:0 !important; flex-shrink:0; }
  .dash-sidebar-actions a, .dash-sidebar-actions button{ width:auto; }
  .dash-main{ padding: 24px 20px; }
  .form-grid{ grid-template-columns: 1fr; }

  /* Min. 16px, sonst zoomt iOS beim Antippen eines Feldes automatisch rein */
  .field input, .field textarea, .field select{ font-size: 16px; }

  .footer-grid{ flex-direction: column; align-items: flex-start; text-align:left; }
}

/* ---- Handys (≤560px) ---- */
@media (max-width: 560px){
  .nav{ padding: 12px 18px; }
  .wrap{ padding: 0 18px; }
  section{ padding: 44px 0; }

  .brand span{ font-size: 0.92rem; }
  .brand small{ font-size: 7px; }

  .hero{ padding: 48px 0 60px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ width: 100%; }
  .server-ip-box{ flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .server-ip-box .ip{ font-size: 1.1rem; word-break: break-word; }
  .copy-btn{ width: 100%; }

  .feature-grid, .card-grid, .stat-grid{ grid-template-columns: 1fr; }

  .modal{ padding: 26px 20px 22px; }

  /* Dashboard-Listenzeilen (Team/Adel/Downloads) stapeln statt quetschen */
  .row-card{ flex-wrap: wrap; }
  .row-card .info{ flex-basis: 100%; order: 2; margin-top: 8px; }
  .row-card .row-actions{ order: 3; flex-basis: 100%; }
  .row-card .row-actions .btn{ flex:1; }

  .rule-row .rr-top{ flex-direction: column; align-items: stretch; gap: 10px; }
  .rule-row .row-actions .btn{ flex:1; }

  .download-card{ flex-wrap: wrap; }
  .download-card .file-info{ flex-basis: 100%; order: 2; margin-top: 8px; }
  .download-card .dl-actions{ order: 3; width: 100%; }
  .download-card .dl-actions .btn{ display:block; width:100%; text-align:center; }

  .usage-row{ flex-wrap: wrap; gap: 4px; }

  .dash-topbar{ flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---- Sehr kleine Handys (≤380px) ---- */
@media (max-width: 380px){
  .brand small{ display:none; }
  .btn{ padding: 11px 16px; font-size: 0.86rem; }
  .banner-card .head-frame{ width: 68px; height: 68px; }
  .stat-box .big{ font-size: 1.6rem; }
}
