:root {
  --primary-color: #2c5282;
  --primary-hover: #1a365d;
  --text-color: #2d3748;
  --bg-light: rgba(255, 255, 255, 0.75);
  --max-width: 1000px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  
  /* Hintergrundbild von praxis-endriss.de */
  background-image: url('baum.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-wrapper {
  max-width: var(--max-width);
  width: 100%;
  margin: 2rem auto;
  background-color: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Header & Logo */
header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-area h1 {
  font-size: 1.5rem;
}

.logo-area h1 a {
  color: var(--primary-color);
  text-decoration: none;
}

.logo-area .subtitle {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
}

/* CSS-Only Burger Menü */
#menu-toggle {
  display: none;
}

.burger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  padding: 2px;
}

.burger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: 0.3s;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-top: 1rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary-hover);
  border-bottom: 2px solid var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }

  .burger-icon {
    display: flex;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
  }

  .nav-list li {
    border-bottom: 1px solid #edf2f7;
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.875rem 0;
  }

  #menu-toggle:checked ~ nav .nav-list {
    display: flex;
  }
}

/* Hauptinhalt & Inhaltskarten */
main {
  padding: 2rem;
}

h2, h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h3 {
  margin-top: 1.5rem;
}

p, ul, ol {
  margin-bottom: 1.25rem;
  max-width: 75ch;
}

ul, ol {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
}

/* Responsive Grid für Methoden & Infos */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Kontaktformular & Buttons */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
}

.btn:hover {
  background-color: var(--primary-hover);
}

/* Footer */
footer {
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  background-color: #f8fafc;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
}
