/* ============================================
   TIERPHYSIOTHERAPIE NICOLE PAULAT
   style.css
   ============================================ */

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

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

body {
  font-family: 'Lato', Arial, sans-serif;
  color: #1a1a1a;
  background: #faf5ec;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ---------- CSS VARIABLES ---------- */
:root {
  --blue-main:   #7ab8d4;
  --blue-dark:   #5a9ab8;
  --blue-light:  #a8d4e8;
  --blue-muted:  #c8e4f0;
  --blue-section:#d8eef8;
  --cream:       #faf5ec;
  --cream-dark:  #f0e8d8;
  --cream-mid:   #e8dcc8;
  --text-dark:   #1a1a1a;
  --text-mid:    #444444;
  --text-light:  #f5f0e8;
  --white:       #ffffff;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.3s ease;
  --max-width:   1160px;
  --section-pad: 96px;
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section-dark  { background: var(--blue-section); color: var(--text-dark); }
.section-light { background: var(--cream-dark); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-intro {
  font-size: 1.1rem;
  color: inherit;
  opacity: 0.85;
  margin-top: 12px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

.section-label {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.section-dark .section-label { color: var(--blue-dark); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90,154,184,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn-outline:hover {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ---------- HEADER / NAV ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: rgba(250, 245, 236, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--white);
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--blue-main);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

#header.scrolled .nav-links a { color: var(--text-dark); }
#header.scrolled .nav-links a:hover { color: var(--blue-dark); }
#header.scrolled .logo { color: var(--text-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(20,40,60,0.50) 0%, rgba(20,40,60,0.65) 100%),
    url('images/hero.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 80, 120, 0.35) 0%,
    rgba(10, 30, 50, 0.35) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 24px;
}

.hero-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-text {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-hint span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollHint 1.8s infinite ease-in-out;
}

@keyframes scrollHint {
  0%, 100% { top: 6px; opacity: 1; }
  80% { top: 20px; opacity: 0; }
}

/* ---------- INTRO ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-text h2 { margin-bottom: 20px; }
.intro-text p   { margin-bottom: 16px; color: var(--text-dark); }
.intro-text .btn { margin-top: 12px; }

.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--cream-mid);
}

.image-frame--portrait { aspect-ratio: 3/4; }

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-placeholder::after {
  content: '📸 Bild folgt';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  font-size: 0.9rem;
  background: var(--cream-dark);
}

/* ---------- LEISTUNGEN ---------- */
.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.leistung-card--main {
  grid-row: span 2;
}

.leistung-card {
  background: var(--white);
  border: 1px solid var(--blue-muted);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.leistung-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(122,184,212,0.25);
}

.leistung-img-wrap {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: -32px -28px 24px;
  background: var(--blue-muted);
}

.leistung-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.leistung-card:hover .leistung-img-wrap img {
  transform: scale(1.04);
}

.leistung-img-wrap.leistung-no-img::after {
  content: '📸';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.5rem;
  opacity: 0.35;
}

.leistung-card h3 {
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.leistung-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ---------- ÜBER MICH ---------- */
.ueber-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 64px;
  align-items: center;
}

.ueber-text h2 { margin-bottom: 6px; }

.ueber-subtitle {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ueber-text p { color: var(--text-dark); margin-bottom: 14px; }

.ueber-facts {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ueber-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 400;
}

/* ---------- ZERTIFIKATE SLIDER ---------- */
.zert-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.zert-track-outer {
  flex: 1;
  overflow: hidden;
}

.zert-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.zert-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.zert-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.zert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.zert-img-wrap {
  aspect-ratio: 4/3;
  background: var(--blue-muted);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.zert-card:hover .zert-img-wrap img {
  transform: scale(1.04);
}

.zert-img-wrap.zert-no-img::after {
  content: '📜';
  font-size: 3rem;
  opacity: 0.4;
}

.zert-info {
  padding: 20px 22px 24px;
}

.zert-info h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.zert-institution {
  font-size: 0.87rem;
  color: var(--blue-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.zert-year {
  font-size: 0.82rem;
  color: var(--text-mid);
}

/* Prev / Next Buttons */
.zert-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue-main);
  background: var(--white);
  color: var(--blue-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.zert-btn:hover {
  background: var(--blue-main);
  color: var(--white);
  transform: scale(1.1);
}

.zert-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* Dots */
.zert-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.zert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-muted);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.zert-dot.active {
  background: var(--blue-main);
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .zert-slide { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 580px) {
  .zert-slide { flex: 0 0 100%; }
  .zert-btn { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ---------- GALERIE ---------- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.galerie-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-mid);
  position: relative;
}

.galerie-placeholder {
  width: 100%; height: 100%;
  background: var(--cream-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.galerie-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.galerie-item:hover .galerie-placeholder img {
  transform: scale(1.05);
}

.galerie-placeholder::after {
  content: '📷';
  font-size: 2rem;
  opacity: 0.3;
}

.galerie-placeholder img + .galerie-placeholder::after {
  display: none;
}

/* ---------- KONTAKT ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.kontakt-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.kontakt-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.kontakt-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.kontakt-item strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kontakt-item p, .kontakt-item a {
  color: var(--text-mid);
  font-size: 0.97rem;
}
.kontakt-item a:hover { color: var(--blue-dark); }

.kontakt-hinweis {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-mid);
  font-style: italic;
}

/* FORM */
.kontakt-form {
  background: var(--white);
  border: 1px solid var(--blue-muted);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group--full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--cream);
  border: 1px solid var(--cream-mid);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  font-size: 0.97rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group select option { background: var(--white); color: var(--text-dark); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-main);
  background: var(--white);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e05c5c;
}

.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue-main);
}

.checkbox-label a { color: var(--blue-dark); text-decoration: underline; }

.form-success {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 20px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--blue-dark);
  color: var(--text-light);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-logo-sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.55;
  font-style: italic;
}

.footer-links h4,
.footer-legal h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}

.footer-links ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  font-size: 0.93rem;
  color: rgba(232,224,212,0.65);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delay for grid children */
.leistungen-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.leistungen-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.leistungen-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.leistungen-grid .fade-in:nth-child(5) { transition-delay: 0.32s; }
.leistungen-grid .fade-in:nth-child(6) { transition-delay: 0.40s; }
.leistungen-grid .fade-in:nth-child(7) { transition-delay: 0.48s; }
.leistungen-grid .fade-in:nth-child(8) { transition-delay: 0.56s; }

.galerie-grid .fade-in:nth-child(2) { transition-delay: 0.07s; }
.galerie-grid .fade-in:nth-child(3) { transition-delay: 0.14s; }
.galerie-grid .fade-in:nth-child(4) { transition-delay: 0.21s; }
.galerie-grid .fade-in:nth-child(5) { transition-delay: 0.28s; }
.galerie-grid .fade-in:nth-child(6) { transition-delay: 0.35s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }

  .intro-grid,
  .ueber-grid  { gap: 40px; }

  .kontakt-grid { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  /* Nav mobile */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(250, 245, 236, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 24px 0;
    transform: translateY(-110%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--blue-muted);
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 32px;
    font-size: 1.05rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--cream-mid);
  }

  /* Hamburger animation */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Hero */
  .hero { background-attachment: scroll; }
  .hero-buttons { flex-direction: column; align-items: center; }

  /* Grids → single column */
  .intro-grid,
  .ueber-grid,
  .leistungen-grid { grid-template-columns: 1fr; }

  .leistung-card--main { grid-row: auto; }

  .ueber-image { order: -1; }
  .image-frame--portrait { aspect-ratio: 4/3; }

  .galerie-grid { grid-template-columns: repeat(2, 1fr); }

  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt-form { grid-template-columns: 1fr; padding: 28px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }

  .galerie-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
}

.section-placeholder{text-align:center;color:#888;font-size:1rem;padding:2rem 1rem;font-style:italic;opacity:.75;}
