/* =============================================================================
   Trang Garstka – Praxis für Podologie
   Handgeschriebenes Stylesheet im Tailwind-Stil (kein Bootstrap, kein Build).
   Utility-Klassen tragen !important (Tailwind "important"-Modus), damit sie
   Komponenten zuverlässig überschreiben. Wiederkehrende Muster (Navbar, Button,
   Karte, …) sind als kleine Komponenten gekapselt – wie in Tailwind üblich.
   ============================================================================= */

/* ---- Schrift ---------------------------------------------------------------- */
@font-face {
  font-family: 'Calisto';
  src: local('Calisto'), url('fonts/calisto.ttf') format('truetype');
  font-display: swap;
}

/* ---- Design-Tokens ---------------------------------------------------------- */
:root {
  --primary: #8073B4;
  --secondary: #62B55F;
  --ink: #212529;
  --muted: #6c757d;
  --light: #f8f9fa;
  --dark: #212529;
  --font: Calisto, "Times New Roman", Georgia, Garamond, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: underline; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 2rem; }
address { margin: 0 0 1rem; font-style: normal; line-height: inherit; }
b, strong { font-weight: 700; }
small { font-size: 1rem; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; font-weight: 500; line-height: 1.2; }
h2 { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.3rem); }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.7rem; }

/* =============================================================================
   Utilities (Tailwind-Namen)
   ============================================================================= */

/* Display / Position */
.grid          { display: grid !important; }
.flex          { display: flex !important; }
.flex-col      { flex-direction: column !important; }
.flex-wrap     { flex-wrap: wrap !important; }
.items-center  { align-items: center !important; }
.justify-center{ justify-content: center !important; }
.self-end      { align-self: flex-end !important; }
.self-baseline { align-self: baseline !important; }
.fixed         { position: fixed !important; }
.top-0         { top: 0 !important; }
.inset-x-0     { left: 0 !important; right: 0 !important; }
.z-50          { z-index: 50 !important; }

/* Größe / Zentrierung */
.h-full   { height: 100% !important; }
.w-full   { width: 100% !important; }
.mx-auto  { margin-left: auto !important; margin-right: auto !important; }
.ml-auto  { margin-left: auto !important; }

/* 12-Spalten-Grid */
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
.col-span-12  { grid-column: span 12 / span 12 !important; }

/* Abstände (Tailwind-Skala) */
.mt-0  { margin-top: 0 !important; }
.mt-2  { margin-top: .5rem !important; }
.mt-6  { margin-top: 1.5rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mb-0  { margin-bottom: 0 !important; }
.mb-4  { margin-bottom: 1rem !important; }
.mb-6  { margin-bottom: 1.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-64 { margin-bottom: 16rem !important; }
.my-2  { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-6  { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.p-4   { padding: 1rem !important; }
.px-3  { padding-left: .75rem !important; padding-right: .75rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-32 { padding-top: 8rem !important; padding-bottom: 8rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* Typografie */
.text-center { text-align: center !important; }
.uppercase   { text-transform: uppercase !important; }
.text-sm     { font-size: 1rem !important; }
.text-xl     { font-size: 1.4rem !important; }
.text-2xl    { font-size: 1.7rem !important; }
.font-light  { font-weight: 300 !important; }

/* Farben */
.text-primary    { color: var(--primary) !important; }
.text-secondary  { color: var(--secondary) !important; }
.text-white      { color: #fff !important; }
.text-muted      { color: var(--muted) !important; }
.text-black\/75  { color: rgba(0, 0, 0, .75) !important; }
.text-white\/75  { color: rgba(255, 255, 255, .75) !important; }
.bg-primary      { background-color: var(--primary) !important; }
.bg-secondary    { background-color: var(--secondary) !important; }
.bg-light        { background-color: var(--light) !important; }
.bg-dark         { background-color: var(--dark) !important; }

/* Effekte / Zustand */
.shadow { box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important; }
.hide   { opacity: 0 !important; }

/* Responsive Varianten (md = 768px, lg = 992px) */
@media (min-width: 768px) {
  .md\:flex-row   { flex-direction: row !important; }
  .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
  .md\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .md\:w-1\/4     { width: 25% !important; }
}
@media (min-width: 992px) {
  .lg\:col-span-4   { grid-column: span 4 / span 4 !important; }
  .lg\:col-span-5   { grid-column: span 5 / span 5 !important; }
  .lg\:col-span-6   { grid-column: span 6 / span 6 !important; }
  .lg\:col-span-7   { grid-column: span 7 / span 7 !important; }
  .lg\:w-2\/3       { width: 66.666667% !important; }
  .lg\:w-3\/4       { width: 75% !important; }
  .lg\:w-5\/6       { width: 83.333333% !important; }
  .lg\:gap-12       { gap: 3rem !important; }
  .lg\:mt-12        { margin-top: 3rem !important; }
  .lg\:mb-0         { margin-bottom: 0 !important; }
  .lg\:my-0         { margin-top: 0 !important; margin-bottom: 0 !important; }
}

/* =============================================================================
   Komponenten
   ============================================================================= */

/* ---- Container -------------------------------------------------------------- */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: .75rem;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
@media (max-width: 575.98px) { .container { padding-inline: 1.5rem; } }

/* ---- Trennlinie ------------------------------------------------------------- */
.divider {
  height: 0;
  border: 0;
  border-top: .2rem solid var(--primary);
  max-width: 3.25rem;
  margin: 0 auto;
  opacity: 1;
}
.divider.light { border-top-color: #fff; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out,
              border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn-primary { color: #fff; background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: #9388bf; border-color: #8d81bc; }
.btn-xl {
  padding: 1.25rem 2.25rem;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 10rem;
}

/* ---- Leistungs-Karten ------------------------------------------------------- */
.card {
  border: 2px solid rgba(128, 115, 180, .45);;
  border-radius: .85rem;
  background-color: #fff;
  box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-.25rem);
  box-shadow: 0 1rem 2.25rem rgba(128, 115, 180, .2);
}

/* ---- Inhaltsbilder ---------------------------------------------------------- */
picture { display: block; }
.feature-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

/* ---- Aufzählung mit Markern in Sekundärfarbe -------------------------------- */
.check-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  margin-bottom: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .6rem;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background-color: var(--secondary);
}

/* =============================================================================
   Navigationsleiste (Komponente)
   ============================================================================= */
.navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.navbar > .container {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}

.main-nav {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  background-color: #fff;
  transition: background-color .2s ease;
}

.navbar-brand {
  display: inline-block;
  font-size: 1.25rem;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s ease;
}

.nav-link { display: block; text-decoration: none; }
.navbar-nav { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }

.main-nav .nav-link {
  color: var(--muted);
  font-size: 1rem;
  padding: .75rem 0;
  text-transform: uppercase;
  transition: color .15s ease-in-out;
}
.main-nav .nav-link:hover { color: var(--primary); }

.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }
.collapse:not(.show) { display: none; }

.navbar-toggler {
  padding: .25rem .75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: .25rem;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-toggler { display: none; }

  .main-nav { box-shadow: none; background-color: transparent; }
  .main-nav .nav-link { color: var(--ink); padding: 0 1rem; }
  .main-nav .nav-item:last-child .nav-link { padding-right: 0; }

  .main-nav.navbar-scrolled { box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15); background-color: #fff; }
  .main-nav.navbar-scrolled .nav-link { color: var(--ink); }
  .main-nav.navbar-scrolled .nav-link:hover { color: var(--primary); }
}

/* =============================================================================
   Hero / Kopfbereich
   ============================================================================= */
.masthead {
  padding-top: 10rem;
  padding-bottom: 5.5rem; /* 10rem - 4.5rem */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient(to bottom, rgba(255,255,255,.8) 0%, rgba(255,255,255,.5) 100%),
                    url("images/hero.jpg");
  background-image: linear-gradient(to bottom, rgba(255,255,255,.8) 0%, rgba(255,255,255,.5) 100%),
                    -webkit-image-set(url("images/hero.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
  background-image: linear-gradient(to bottom, rgba(255,255,255,.8) 0%, rgba(255,255,255,.5) 100%),
                    image-set(url("images/hero.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
}
.masthead h1 { font-size: 2.5rem; }

@media (min-width: 992px) {
  .masthead { height: 100vh; min-height: 40rem; padding-top: 4.5rem; padding-bottom: 0; }
  .masthead p { font-size: 1.4rem; }
  .masthead h1 { font-size: 3rem; }
}
@media (min-width: 1200px) {
  .masthead h1 { font-size: 3.5rem; }
}
