/* ===== CSS Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-synthesis: none;
  font-optical-sizing: auto;
}

body {
  font-family: 'Noto Sans Display', sans-serif;
  font-weight: 500;
  line-height: 1.6;
  color: #333;
  background-color: #fafaf8;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #003E60;
}

h1 {
  font-size: 2.25em;
  margin-top: 0;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

p {
  font-size: 1em;
  margin-bottom: 1.5em;
}

a {
  color: #003E60;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #EFE2D9;
  text-decoration: underline;
}

/* ===== Layout Helpers ===== */
.container {
  max-width: 45em;
  margin: 0 auto;
  padding: 0 1.5em;
}

.container-wide {
  max-width: 60em;
  margin: 0 auto;
  padding: 0 1.5em;
}

section {
  padding: 3em 0;
}

section:nth-child(odd) {
  background-color: #fafaf8;
}

section:nth-child(even) {
  background-color: #fff;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #003E60 0%, #004d73 100%);
  color: #fff;
  padding: 4em 1.5em;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

.hero .tagline {
  font-size: 1.2em;
  color: #EFE2D9;
  margin-bottom: 2em;
}

.quote-box {
  background-color: rgba(255, 255, 255, 0.5);
  border-left: 4px solid #EFE2D9;
  padding: 2em;
  margin: 2em 0;
  border-radius: 0.5em;
  font-family: 'Playwrite DE Grund', cursive;
  font-size: 1.25em;
  line-height: 1.8;
  color: #EFE2D9;
}

/* ===== Content Boxes ===== */
.box {
  background-color: #fafaf8;
  border-radius: 1.5em;
  padding: 2em;
  margin: 2em 0;
  box-shadow: 0 2px 8px rgba(0, 62, 96, 0.05);
}

.box--blue {
  background-color: #003E60;
  color: #fff;
}

.box--blue h3,
.box--blue h4 {
  color: #EFE2D9;
}

.box--blue a {
  color: #EFE2D9;
}

.box--sand {
  background-color: #EFE2D9;
  color: #333;
}

.box--sand h3,
.box--sand h4 {
  color: #003E60;
}

/* ===== Emphasis Text ===== */
.emphasis {
  font-family: 'Playwrite DE Grund', cursive;
  color: #003E60;
  font-size: 1.1em;
  text-align: center;
}

.box--blue .emphasis {
  color: #EFE2D9;
}

/* ===== Image  ===== */
.image-portrait {
  flex: 0 0 40%;
}

.image-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5em;
}

.image-beratung {
  width: 100%;
  height: 20em;
  background-image: url("../images/systemische_beratung.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 2em 0;
  font-size: 1.1em;
  text-align: center;
  padding: 1em;
}

.ueber-mich-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

/* ===== Form Styles ===== */
.form-group {
  margin-bottom: 1.5em;
}

label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 500;
  color: #003E60;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75em;
  border: 2px solid #EFE2D9;
  border-radius: 0.75em;
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: #003E60;
  background-color: #fafaf8;
}

textarea {
  resize: vertical;
  min-height: 8em;
}

button {
  background-color: #003E60;
  color: #fff;
  padding: 1em 2em;
  border: none;
  border-radius: 0.75em;
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #004d73;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Form Messages */
#form-message {
  border-radius: 0.75em;
  animation: slideDown 0.3s ease-out;
}


/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  background-color: #fff;
  border-bottom: 1px solid #EFE2D9;
  z-index: 100;
  padding: 1em 1.5em;
}

.nav-content {
  max-width: 60em;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25em;
  color: #003E60;
}

.nav-links {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 0.9em;
  color: #003E60;
  padding: 0.5em 0.75em;
  border-radius: 0.5em;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: #EFE2D9;
  color: #003E60;
  text-decoration: none;
}

/* Aktives Menü-Item: Dunkelblau Hintergrund + Weiß Text */
.nav-links a.active {
  background-color: #003E60;
  color: #fff;
}

.nav-links a.active:hover {
  background-color: #004d73;
  color: #fff;
  text-decoration: none;
}

/* ===== Footer ===== */
footer {
  background-color: #003E60;
  color: #EFE2D9;
  padding: 3em 1.5em 2em;
}

footer a {
  color: #EFE2D9;
}

footer a:hover {
  text-decoration: underline;
}

.footer-content {
  max-width: 60em;
  margin: 0 auto;
}

.footer-section {
  margin-bottom: 2em;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 0.5em;
}

.footer-section p {
  font-size: 0.95em;
  margin-bottom: 0.5em;
}

.footer-bottom {
  border-top: 1px solid rgba(239, 226, 217, 0.3);
  padding-top: 1.5em;
  text-align: center;
  font-size: 0.9em;
}

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

/* ===== Collapse/Accordion (HTML5 <details>) ===== */
details {
  margin-bottom: 1em;
}

summary {
  background-color: #EFE2D9;
  padding: 1.25em;
  cursor: pointer;
  border-radius: 0.75em;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '▼';
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 1em;
}

details[open] summary::after {
  transform: rotate(180deg);
}

summary:hover {
  background-color: #ddd3c5;
}

details > *:not(summary) {
  padding: 1.5em;
  background-color: #fff;
  border: 1px solid #EFE2D9;
  border-top: none;
  border-radius: 0 0 0.75em 0.75em;
}

details > *:not(summary):first-of-type {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Design ===== */
@media (min-width: 48em) {
  html {
    font-size: 18px;
  }
  
  h1 {
    font-size: 3em;
  }
  
  h2 {
    font-size: 2.5em;
  }
  
  section {
    padding: 4em 0;
  }
  
  .hero {
    padding: 5em 1.5em;
  }
  
  .nav-links {
    gap: 2.5em;
  }
  
  .box {
    padding: 2.5em;
  }

  .ueber-mich-wrapper {
    flex-direction: row-reverse;
    align-items: stretch; 
  }

  .image-portrait {
    flex: 0 0 40%;
    display: flex; 
  }

  .image-portrait img {
    width: 100%;
    object-fit: cover;
    border-radius: 1.5em;
    flex: 1;
  }

  .ueber-mich-wrapper .box {
    flex: 1;
    margin: 0;
  }
}


@media (min-width: 64em) {
  html {
    font-size: 20px;
  }
  
  h1 {
    font-size: 3.5em;
  }
  
  h2 {
    font-size: 3em;
  }
  
  .image-placeholder {
    height: 25em;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  nav {
    display: none;
  }
  
  .form-group,
  button,
  .legal-links {
    display: none;
  }
}
