/* =====================================================
   ZIPANO GLOBAL STYLES — zipano.de
   Shared across all pages. Do not put page-specific
   rules here; use the page's own CSS file instead.
   ===================================================== */

/* --- 1. Design Tokens (CSS Variables) --- */
:root {
  /* Brand colors */
  --c-primary:       #1B4FCC;
  --c-primary-dark:  #1240A6;
  --c-primary-light: #EEF3FD;
  --c-accent:        #F56500;
  --c-accent-hover:  #D95800;
  --c-accent-light:  #FFF4EC;

  /* Neutrals */
  --c-bg:            #FFFFFF;
  --c-bg-alt:        #F5F7FA;
  --c-bg-card:       #FFFFFF;
  --c-text:          #1A1A2E;
  --c-text-muted:    #5E6A82;
  --c-text-light:    #94A3B8;
  --c-border:        #E2E8F0;
  --c-border-dark:   #CBD5E1;

  /* Semantic */
  --c-success:       #16A34A;
  --c-success-bg:    #F0FDF4;
  --c-error:         #DC2626;
  --c-error-bg:      #FEF2F2;
  --c-gold:          #F59E0B;
  --c-highlight:     #FFF8E6;

  /* Type scale */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica Neue, Arial, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* Border radius */
  --radius-xs:   3px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-accent: 0 4px 16px rgba(245,101,0,0.28);

  /* Layout */
  --container: 960px;
}


/* --- 2. Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
}

ul, ol { list-style: none; }


/* --- 3. Layout Utilities --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section-py {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
}

.section-py--sm {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
}


/* --- 4. Headings & Paragraph Base --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  line-height: 1.25;
  font-weight: 700;
  color: var(--c-text);
}

h1 { font-size: clamp(1.75rem, 4vw, var(--text-4xl)); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, var(--text-3xl));  letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: 600; }

.section-title {
  margin-bottom: var(--sp-3);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-10);
  max-width: 680px;
}

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }


/* --- 5. SVG Icon Base --- */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
}


/* --- 6. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--c-accent-hover);
  border-color: var(--c-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,101,0,0.38);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--c-primary-light);
  color: var(--c-primary);
  border-color: var(--c-primary-light);
}

.btn-secondary:hover {
  background: #dde8fa;
  border-color: #dde8fa;
  color: var(--c-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}

.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
}


/* --- 7. Site Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0.9rem var(--sp-6);
  max-width: var(--container);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.04em;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--c-primary-dark);
}

.site-logo__star { color: var(--c-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}

.nav-links li a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: var(--c-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-links li a:hover {
  color: var(--c-primary);
  background: var(--c-primary-light);
  text-decoration: none;
}

.nav-links .nav-cta a {
  background: var(--c-accent);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background 0.2s;
}

.nav-links .nav-cta a:hover {
  background: var(--c-accent-hover);
  color: #fff;
}

/* Mobile nav toggle (CSS-only, no JS) */
.nav-toggle-checkbox { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--c-text);
  border-radius: var(--radius-sm);
}

.nav-toggle-label:hover { background: var(--c-bg-alt); }

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .site-nav {
    flex-wrap: wrap;
    padding: 0.75rem var(--sp-4);
    gap: 0;
  }

  .site-logo { flex: 1; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-3) 0 var(--sp-2);
    border-top: 1px solid var(--c-border);
    margin-top: 0.5rem;
    gap: 0;
    margin-left: 0;
  }

  .nav-toggle-checkbox:checked ~ .nav-links { display: flex; }

  .nav-links li a {
    padding: 0.65rem 0.75rem;
    font-size: var(--text-base);
    border-radius: 0;
  }

  .nav-links .nav-cta {
    padding-top: var(--sp-2);
    border-top: 1px solid var(--c-border);
    margin-top: var(--sp-1);
  }

  .nav-links .nav-cta a {
    display: block;
    text-align: center;
    border-radius: var(--radius-full);
    margin: 0;
  }
}


/* --- 8. Tables (Base) --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

table thead th {
  background: var(--c-bg-alt);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--c-border);
  white-space: nowrap;
  color: var(--c-text);
}

table thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
table thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

table tbody tr:last-child td { border-bottom: none; }

table tbody tr:nth-child(even) td { background: #FAFBFD; }

table tbody tr:hover td { background: var(--c-primary-light); }

table .td-check { text-align: center; }

.text-success { color: var(--c-success); }
.text-error   { color: var(--c-error); }
.text-muted   { color: var(--c-text-muted); }


/* --- 9. FAQ Accordion (Base) --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

details.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

details.faq-item:hover { box-shadow: var(--shadow-sm); }

details.faq-item[open] { box-shadow: var(--shadow-md); }

details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  background: var(--c-bg);
  gap: var(--sp-4);
  color: var(--c-text);
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary .icon-chevron {
  transition: transform 0.25s ease;
  color: var(--c-text-muted);
  flex-shrink: 0;
}

details.faq-item[open] summary .icon-chevron { transform: rotate(180deg); }

details.faq-item[open] summary { background: var(--c-primary-light); color: var(--c-primary); }

.faq-answer {
  padding: var(--sp-5) 1.25rem;
  color: var(--c-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
  border-top: 1px solid var(--c-border);
}

.faq-answer p:last-child { margin-bottom: 0; }


/* --- 10. Site Footer --- */
.site-footer {
  background: #0F172A;
  color: var(--c-text-light);
  padding: var(--sp-12) 0 0;
  margin-top: var(--sp-20);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8) var(--sp-6);
  padding-bottom: var(--sp-10);
}

.footer-brand .site-logo {
  color: #fff;
  margin-bottom: var(--sp-3);
}

.footer-brand p {
  color: var(--c-text-light);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-col ul li a {
  color: var(--c-text-light);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--c-text-light);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: #475569;
  padding-bottom: var(--sp-5);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--sp-4);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-2);
  }
}


/* --- 11. Utility Classes --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-4  { margin-top: var(--sp-4); }
.mb-4  { margin-bottom: var(--sp-4); }
.mt-8  { margin-top: var(--sp-8); }
.mb-8  { margin-bottom: var(--sp-8); }
