/* =========================================================
   medatixx Techniker-Buchungsportal – Shared Styles
   Design: angelehnt an nectar.portal-lms.com
   ========================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --teal:        #00b4c8;
  --teal-dark:   #009bb5;
  --teal-darker: #00879e;
  --teal-bg:     #00b4c8;
  --teal-light:  #e0f7fa;
  --white:       #ffffff;
  --gray-light:  #f5f7f8;
  --gray-mid:    #d0dde3;
  --gray-text:   #7a8c96;
  --dark-text:   #1a2d35;
  --red:         #e74c3c;
  --shadow:      0 2px 12px rgba(0,0,0,0.10);
  --radius:      8px;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--teal-bg);
  min-height: 100vh;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navbar ---- */
.navbar {
  background: var(--white);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-dark);
  text-decoration: none;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
}

.navbar-tagline {
  font-size: 0.78rem;
  color: var(--gray-text);
  font-family: var(--font-body);
  border-left: 1px solid var(--gray-mid);
  padding-left: 1rem;
  margin-left: 0.5rem;
}

.navbar-right {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--gray-text);
}

/* ---- Page Wrapper ---- */
.page-wrapper {
  background: var(--teal-bg);
  min-height: calc(100vh - 68px);
  padding: 2rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* subtle medical background pattern */
.page-wrapper::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' opacity='0.06'%3E%3Ccircle cx='60' cy='60' r='40' fill='none' stroke='white' stroke-width='2'/%3E%3Ccircle cx='60' cy='60' r='25' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
}

.page-wrapper > * { position: relative; z-index: 1; }

/* ---- Container ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Progress Stepper ---- */
.stepper {
  background: white;
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stepper-inner {
  display: flex;
  align-items: stretch;
}

.stepper-step {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem 0.85rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-text);
  border-bottom: 3px solid transparent;
  transition: color 0.2s;
  cursor: default;
  position: relative;
}

.stepper-step .step-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-text);
  margin-top: 2px;
  font-family: var(--font-body);
}

.stepper-step.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.stepper-step.done {
  color: var(--teal-dark);
}

.stepper-step.done::after {
  content: ' ✓';
  font-size: 0.75rem;
}

/* ---- Section Heading ---- */
.section-heading {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.section-meta {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 700px) {
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
}

/* ---- Card ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 68px;
  height: 68px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
}

.card-img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  flex: 1;
}

.card-link {
  font-size: 0.82rem;
  color: var(--teal-dark);
  font-weight: 600;
  cursor: pointer;
}

.card-duration {
  font-size: 0.82rem;
  color: var(--dark-text);
  margin: 0.5rem 0 1rem;
  font-weight: 600;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
  width: 100%;
  text-align: center;
}

.btn-outline-teal:hover {
  background: var(--teal);
  color: white;
  text-decoration: none;
}

.btn-teal {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
  text-decoration: none;
}

.btn-teal-lg {
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
}

.btn-back {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.btn-back:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
}

/* ---- Calendar ---- */
.calendar-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.cal-header h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
}

.cal-nav {
  background: none;
  border: none;
  color: var(--teal-dark);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.4rem;
  font-weight: 700;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-name {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-text);
  padding: 0.3rem 0;
  font-family: var(--font-head);
}

.cal-day-name.weekend { color: #e07070; }

.cal-day {
  text-align: center;
  padding: 0.45rem 0.2rem;
  font-size: 0.82rem;
  border-radius: 6px;
  cursor: default;
  color: var(--gray-text);
  line-height: 1.6;
  border: 2px solid transparent;
}

.cal-day.available {
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 600;
}

.cal-day.available:hover {
  background: var(--teal-light);
}

.cal-day.selected {
  background: var(--teal);
  border-color: var(--teal-dark);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.cal-day.today-dot::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  background: var(--teal);
  border-radius: 50%;
  margin: 0 auto;
}

.cal-day.empty { cursor: default; }

/* ---- Time Slots ---- */
.timeslot-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.timeslot-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.timeslot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.timeslot {
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  background: var(--teal-light);
  color: var(--teal-darker);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  font-family: var(--font-head);
}

.timeslot:hover {
  background: var(--teal);
  color: white;
}

.timeslot.selected {
  background: var(--teal);
  color: white;
  border-color: var(--teal-dark);
}

.timeslot-legend {
  font-size: 0.75rem;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  display: inline-block;
}

/* ---- Zeit Layout ---- */
.zeit-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 700px) {
  .zeit-layout { grid-template-columns: 1fr; }
}

.service-summary-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.service-summary-card .card-img-sm {
  width: 100%;
  max-height: 90px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.service-summary-card .service-name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-summary-card .service-desc {
  font-size: 0.77rem;
  color: var(--gray-text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* ---- Form ---- */
.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 750px) {
  .form-layout { grid-template-columns: 1fr; }
}

.form-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--dark-text);
}

.form-label .required { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--dark-text);
  transition: border-color 0.15s;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
}

.form-control::placeholder { color: var(--gray-text); }

.phone-row {
  display: flex;
  gap: 0.5rem;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  background: var(--gray-light);
  cursor: default;
}

.phone-prefix .flag { font-size: 1.1rem; }

/* ---- Booking Summary ---- */
.booking-summary {
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-mid);
  padding: 1.25rem;
}

.booking-summary h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
}

.summary-label {
  color: var(--gray-text);
  min-width: 90px;
  flex-shrink: 0;
}

.summary-value {
  color: var(--dark-text);
  font-weight: 600;
}

.summary-btn-wrap {
  margin-top: 1.5rem;
  text-align: right;
}

/* ---- Thank You / Success ---- */
.success-wrapper {
  max-width: 580px;
  margin: 3rem auto;
  text-align: center;
}

.success-icon {
  width: 80px; height: 80px;
  background: #e8f8eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.2rem;
}

.success-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.success-headline {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  text-align: center;
}

.success-sub {
  color: var(--gray-text);
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* ---- Hero (Landing) ---- */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.35);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin: 0 auto 2.2rem;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  background: white;
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  text-decoration: none;
  color: var(--teal-darker);
}

/* ---- Info Blocks ---- */
.info-section {
  padding: 2rem 0 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 650px) {
  .info-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

.info-card {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

/* ---- Footer ---- */
.portal-footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.portal-footer a {
  color: rgba(255,255,255,0.75);
}
