/* ===================================================
   Praxis Dr. Schneider – Stylesheet
   Primary: #1a3a5c (deep navy)
   Accent:  #2a9d8f (warm petrol/teal)
   Light:   #f0f5f4 (soft mint-gray background)
   Text:    #2c3e50 (dark blue-gray)
   =================================================== */

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

:root {
  --color-primary: #1a3a5c;
  --color-primary-light: #24537a;
  --color-accent: #4a86b8;
  --color-accent-light: #6ba3d0;
  --color-accent-dark: #3670a0;
  --color-bg: #ffffff;
  --color-bg-alt: #f0f5f4;
  --color-bg-dark: #e8edec;
  --color-text: #2c3e50;
  --color-text-light: #5a6c7d;
  --color-text-white: #ffffff;
  --color-border: #d1dbd9;
  --color-success: #27ae60;
  --color-error: #e74c3c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1140px;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.2s;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.9rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }

p {
  margin-bottom: 1rem;
}

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

/* --- Section --- */
.section {
  padding: 4rem 0;
}

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

.section__title {
  text-align: center;
  margin-bottom: 0.5rem;
}

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

.section__divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 2.5rem;
  border: none;
  border-radius: 2px;
}

/* --- Header --- */
.header {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.header__logo-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.header__logo-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
}

/* --- Navigation --- */
.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 0.3rem;
}

.nav__link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent-dark);
  background: var(--color-bg-alt);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-white);
  padding: 2rem 3rem;
  background: rgba(50, 50, 50, 0.55);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero__cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--color-accent);
  color: var(--color-text-white);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

.hero__cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

/* --- Info Bar (phone + hours quick strip) --- */
.info-bar {
  background: var(--color-primary);
  color: var(--color-text-white);
  font-size: 0.9rem;
}

.info-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-bar a {
  color: var(--color-accent-light);
}

.info-bar a:hover {
  color: var(--color-text-white);
}

/* --- Office Hours Card --- */
.hours-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.hours-card__header {
  background: var(--color-primary);
  color: var(--color-text-white);
  padding: 1rem 1.5rem;
  text-align: center;
}

.hours-card__header h3 {
  color: var(--color-text-white);
  margin: 0;
  font-size: 1.2rem;
}

.hours-card__body {
  padding: 1.5rem;
}

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

.hours-table tr {
  border-bottom: 1px solid var(--color-bg-alt);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.6rem 0.3rem;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  width: 40%;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-light);
}

.hours-card__note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--color-text-light);
  border-left: 3px solid var(--color-accent);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--color-accent);
}

.service-card__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.service-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.team-member__photo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.team-member__photo img {
  width: 100%;
  height: auto;
}

.team-member h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-primary);
}

.team-member__role {
  color: var(--color-accent-dark);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.team-member__details {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* --- Contact / Forms --- */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
  font-size: 0.93rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74,134,184,0.15);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-text-white);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent-dark);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-text-white);
}

/* --- Contact Layout --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
}

.contact-info__text h4 {
  font-family: var(--font-body);
  margin-bottom: 0.15rem;
}

.contact-info__text p {
  color: var(--color-text-light);
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* --- Map --- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 350px;
  margin-top: 2rem;
}

.map-container #map {
  width: 100%;
  height: 100%;
}

/* --- Steps (Rezept page) --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: var(--color-text-white);
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step h4 {
  font-family: var(--font-body);
  color: var(--color-primary);
}

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

/* --- Leistungen Detail List --- */
.leistungen-section {
  margin-bottom: 2.5rem;
}

.leistungen-section h3 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  margin-bottom: 1rem;
}

.leistungen-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.6rem;
}

.leistungen-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  color: var(--color-text);
}

.leistungen-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* --- Notice / Alert Boxes --- */
.notice {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.93rem;
}

.notice--info {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
}

.notice--warning {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--color-accent-light);
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Emergency Info --- */
.emergency-box {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-error);
}

.emergency-box h3 {
  color: var(--color-error);
  font-family: var(--font-body);
  margin-bottom: 0.8rem;
}

.emergency-box ul li {
  padding: 0.3rem 0;
  color: var(--color-text-light);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* --- Legal / Impressum --- */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.93rem;
  color: var(--color-text-light);
}

/* --- Form Messages --- */
.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
}

.form-message--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message--error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 960px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav__list.active {
    display: flex;
  }

  .nav__link {
    padding: 0.75rem 1rem;
  }

  .hero { height: 380px; }
  .hero__title { font-size: 2.2rem; }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 600px) {
  .header__inner { height: 65px; }
  .nav__list { top: 65px; }

  .hero { height: 300px; }
  .hero__title { font-size: 1.7rem; }
  .hero__subtitle { font-size: 1rem; }

  .section { padding: 2.5rem 0; }

  .info-bar__inner {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .hours-card {
    margin: 0 -0.5rem;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
}
