:root {
  --accent: #2ecc71;
  --accent-dark: #239b56;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --dark: #2c3e50;
  --charcoal: #343434;
  --text: #333333;
  --muted: #666666;
  --border: #e2e6e4;
  --max-w: 72rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* lange URLs und Woerter (z. B. in der Datenschutzerklaerung) auf dem Handy umbrechen */
main :is(p, li, td, th, dd, h1, h2, h3, a) {
  overflow-wrap: anywhere;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--dark);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.top-bar {
  background: var(--charcoal);
  color: #f0f0f0;
  font-size: 0.875rem;
  padding: 0.45rem 0;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.top-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  height: 44px;
  width: auto;
}

.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.nav-mobile {
  display: none;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--bg-alt);
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0.5rem 0;
  position: absolute;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.nav-mobile li a {
  display: block;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 500;
}

.nav-mobile li a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--bg-alt);
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
}

/* Main content */
main {
  padding: 2rem 0 3.5rem;
}

h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.25;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

figure {
  margin: 1.5rem 0;
}

figure img {
  border-radius: 6px;
}

.content-img {
  margin: 1.25rem 0;
  border-radius: 6px;
}

blockquote,
.testimonial {
  margin: 1.5rem 0;
  padding: 1.15rem 1.35rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

blockquote p:last-child,
.testimonial p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
}

.btn:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.info-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.15rem 1.25rem;
  margin: 1rem 0;
}

.info-box h3 {
  margin-top: 0;
  color: var(--accent-dark);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.pricing-card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1.35rem;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  margin-top: 0;
  text-align: center;
}

.pricing-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-align: center;
  margin-bottom: 1rem;
}

.pricing-card ul {
  flex: 1;
  padding-left: 1.25rem;
}

.pricing-card .btn-wrap {
  margin-top: auto;
  margin-bottom: 0;
  text-align: center;
}

.typed-static {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.35rem;
  margin: 1.25rem 0;
}

.typed-static ul {
  columns: 2;
  column-gap: 1.5rem;
  margin-bottom: 0;
}

.contact-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  background: var(--bg-alt);
  margin: 1.5rem 0;
}

.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.video-link {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

th {
  background: var(--bg-alt);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #dddddd;
  padding: 1.75rem 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
