/* Výchozí (světlý) motiv */
:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --brand1: #3b82f6;
    --brand2: #0ea5e9;
    --brand3: #06b6d4;
    --success: #059669;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --header-bg: rgba(255, 255, 255, 0.85);
    --header-border: rgba(0, 0, 0, 0.06);
    --card-border: rgba(0, 0, 0, 0.08);
    --shadow-light: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Tmavý motiv */
[data-theme="dark"] {
    --bg: #090a1a;
    --panel: #101528;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --brand1: #6366f1;
    --brand2: #22d3ee;
    --brand3: #0ea5e9;
    --success: #10b981;
    --shadow: 0 10px 30px rgba(2, 8, 23, .35);
    --header-bg: rgba(9, 10, 26, .85);
    --header-border: rgba(148, 163, 184, .15);
    --card-border: rgba(148, 163, 184, .15);
    --shadow-light: 0 10px 30px rgba(2, 8, 23, .35);
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: var(--brand2); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--brand1); opacity: 0.9; }
img { max-width: 100%; display: block; border-radius: var(--radius); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { 
    position: sticky; 
    top: 0; 
    z-index: 50; 
    background: var(--header-bg); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--header-border); 
    box-shadow: var(--shadow-light);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo a { font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { color: var(--brand2); }
.nav-right { display: none; align-items: center; gap: 20px; }
.links { display: flex; flex-direction: column; gap: 16px; }
.links a { font-weight: 500; position: relative; color: var(--text); }
.links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand2);
  transition: width .3s;
}
.links a:hover::after { width: 100%; }
.btn-top { padding: 10px 18px; border-radius: 12px; background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3)); color: #03121b; font-weight: 700; box-shadow: var(--shadow); border: none; text-align: center; transition: transform .2s, box-shadow .2s; }
.btn-top:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(99,102,241,.4); }
.nav-toggle { display: block; cursor: pointer; background: none; border: none; color: var(--text); z-index: 100; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-right.open { display: flex; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: var(--header-bg); padding: 20px; border-bottom: 1px solid var(--header-border); }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -300px; left: -300px; width: 1000px; height: 1000px; background: radial-gradient(circle at center, rgba(99, 102, 241, .15), transparent 70%); animation: float 16s infinite linear; z-index: -1; }
@keyframes float { 0% { transform: translate(0, 0) } 50% { transform: translate(40px, 60px) } 100% { transform: translate(0, 0) } }
.hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h1 em { background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; }
.hero p { color: var(--muted); font-size: 18px; max-width: 700px; margin: 0 auto 30px; }
.cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn { padding: 14px 20px; border-radius: 14px; font-weight: 600; border: 1px solid var(--card-border); color: var(--text); transition: all .25s; text-align: center; }
.btn.primary { background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3)); color: #03121b; border: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 15px rgba(99,102,241,.25); }

/* Sections */
section { padding: 70px 0; }
h2 { font-size: 30px; margin-bottom: 16px; text-align: center; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 24px; border: 1px solid var(--card-border); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; text-align: center; }
.card:hover { transform: translateY(-6px); border-color: var(--brand1); box-shadow: 0 8px 24px rgba(99,102,241,.2); }
.card h3 { font-size: 20px; margin-bottom: 10px; color: var(--brand2); font-weight: 700; }
.muted { color: var(--muted); text-align: center; }

footer {
    padding:60px 0 30px;
    border-top:1px solid var(--header-border);
    color: var(--muted);
}

footer input, footer textarea {
    width:100%;
    margin-bottom:10px;
    padding:12px;
    border-radius:8px;
    border:1px solid var(--card-border);
    background:var(--panel);
    color:var(--text);
}

footer textarea {
    resize: vertical;
}

/* Theme Toggle */
#theme-toggle {
    font-size: 20px;
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px 10px;
    margin-left: 12px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-light);
    cursor: pointer;
}
#theme-toggle:hover {
    transform: translateY(-2px);
    background: rgba(128, 128, 128, 0.2);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

/* Styly pro textový obsah (GDPR, Podmínky atd.) */
.text-content h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.text-content h3 {
    text-align: left;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.text-content p, .text-content ul, .text-content ol {
    margin-bottom: 1rem;
}
.text-content ul, .text-content ol {
    padding-left: 25px; /* Přidá odsazení pro odrážky/číslování */
}
.text-content li {
    margin-bottom: 0.5rem; /* Mezera mezi položkami seznamu */
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-right { display: flex; align-items: center; gap: 20px; }
  .links { flex-direction: row; gap: 22px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
