/* === Pubware.ch — Global Styles === */

:root {
  --blue-light: #42A5F5;
  --blue-dark: #0D47A1;
  --blue-gradient: linear-gradient(135deg, #42A5F5, #0D47A1);
  --text: #1a1a2e;
  --text-light: #555;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e0e4ea;
  --max-width: 1100px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* === Header / Navigation === */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--blue-light);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.8rem;
  }

  .site-nav.open {
    display: flex;
  }
}

/* === Container === */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Hero === */

.hero {
  background: var(--blue-gradient);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}

.btn-white {
  background: #fff;
  color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  border-color: #fff;
}

.btn-blue {
  background: var(--blue-gradient);
  color: #fff;
}

/* === Sections === */

.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* === App Cards === */

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.app-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-card img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 1.5rem;
}

.app-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--blue-dark);
}

.app-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.app-card ul {
  text-align: left;
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.app-card ul li {
  margin-bottom: 0.3rem;
}

/* === Features Grid === */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* === Legal Page Content === */

.legal-hero {
  background: var(--blue-gradient);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}

.legal-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.legal-hero p {
  opacity: 0.85;
  margin-top: 0.5rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-content h2 {
  font-size: 1.6rem;
  color: var(--blue-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--border);
}

.legal-content h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.legal-content h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.legal-content p {
  margin-bottom: 0.8rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

.legal-content th, .legal-content td {
  text-align: left;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
}

.legal-content th {
  background: var(--bg-alt);
  font-weight: 600;
}

.legal-content strong {
  color: var(--text);
}

.legal-nav {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.legal-nav h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.legal-nav ul {
  list-style: none;
  padding: 0;
}

.legal-nav li {
  margin-bottom: 0.3rem;
}

.legal-nav a {
  font-size: 0.95rem;
}

/* === Contact Page === */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.contact-card h3 {
  color: var(--blue-dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-card a {
  font-weight: 600;
}

/* === Footer === */

.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255,255,255,0.9);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #fff;
}

/* === 404 Page === */

.error-page {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--blue-light);
  font-weight: 700;
  line-height: 1;
}

.error-page h2 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.error-page p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* === Responsive === */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .legal-hero h1 {
    font-size: 1.6rem;
  }

  .legal-content h2 {
    font-size: 1.3rem;
  }
}
