/* ============================================
   Zahnarztpraxis Rietzler & Lintl — Stylesheet
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #333333;
  --primary-dark: #000000;
  --accent: #404759;
  --accent-light: #f5f5f5;
  --text: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --border: #dddddd;
  --footer-bg: #ffffff;
  --footer-text: #333333;
  --shadow: none;
  --shadow-lg: none;
  --radius: 0px;
  --radius-lg: 0px;
  --max-width: 1100px;
  --header-height: 70px;
  --font: Arial, Helvetica, sans-serif;
  --font-heading: 'Trebuchet MS', Arial, Helvetica, sans-serif;
  --transition: 200ms ease;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* ---- HEADER ---- */
.header {
  position: relative;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #ddd;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  padding-bottom: 12px;
}

.header-brand img {
  height: 120px;
  width: auto;
}

.header-brand-text {
  display: none;
}

.header-brand-text small {
  display: none;
}

/* ---- NAVIGATION ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding-bottom: 12px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item + .nav-item::before {
  content: '|';
  color: var(--text-muted);
  font-size: 13px;
  padding: 0 4px;
}

.nav-link {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  border-radius: 0;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: none;
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border-radius: 0;
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
  border: 1px solid #ddd;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text);
  transition: background var(--transition);
}

.nav-dropdown a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.nav-dropdown .dropdown-sub {
  padding-left: 16px;
  border-left: 2px solid var(--border);
  margin-left: 20px;
}

.nav-dropdown .dropdown-sub a {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-nav {
  display: none;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  padding: 16px 24px 32px;
  border-bottom: 1px solid #ddd;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav .mobile-sub {
  padding-left: 20px;
}

.mobile-nav .mobile-sub a {
  font-size: 14px;
  color: var(--text-secondary);
}

.mobile-nav-heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 16px 0 4px;
  border: none;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .header-inner {
    padding: 12px 16px 0;
    align-items: center;
  }

  .header-brand {
    padding-bottom: 8px;
  }

  .header-brand img {
    height: 70px;
  }

  .hamburger {
    padding-bottom: 8px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.hero::before {
  display: none;
}

.hero-content {
  display: none;
}

.hero-banner {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #2c4a7c;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.hero-banner:hover {
  background: #003366;
  color: #fff;
  transform: scale(1.05);
}

.hero--small {
  height: 374px;
  margin-bottom: 0;
}

.hero--team {
  height: 0;
  padding-bottom: 40%;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #e8edf2;
}

.hero--portrait {
  height: 0;
  padding-bottom: 39%;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #ffffff;
  margin-bottom: 0;
}

.hero--portrait + .content {
  margin-top: -39%;
  position: relative;
  z-index: 1;
  min-height: 0;
  padding-bottom: 39%;
  display: flex;
  align-items: flex-start;
}

.hero--portrait + .content > .container {
  margin-left: 50%;
  padding-top: 30px;
  padding-bottom: 30px;
  max-width: 50%;
}

.hero--portrait + .content-left > .container {
  margin-left: 0;
  margin-right: 50%;
}

.hero--product {
  height: var(--product-h, 400px);
  background-size: auto;
  background-position: 10% center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  margin-bottom: 0;
}

.hero--product + .content {
  margin-top: calc(-1 * var(--product-h, 400px));
  position: relative;
  z-index: 1;
  min-height: var(--product-h, 400px);
  display: flex;
  align-items: flex-start;
}

.hero--product + .content > .container {
  margin-left: 50%;
  padding-top: 30px;
  padding-bottom: 30px;
  max-width: 50%;
}

.hero--sprechzeiten {
  height: 0;
  padding-bottom: 35%;
  background-size: 50% auto;
  background-position: left top;
  background-repeat: no-repeat;
  background-color: #ffffff;
  margin-bottom: 0;
}

.hero--sprechzeiten::before {
  display: block;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255,255,255,0) 40%, rgba(255,255,255,1) 70%);
  z-index: 1;
}

.hero--sprechzeiten + .section {
  margin-top: -35%;
  position: relative;
  z-index: 2;
  min-height: 0;
  padding-bottom: 35%;
  display: flex;
  align-items: flex-start;
}

.hero--sprechzeiten + .section > .container {
  margin-left: 50%;
  margin-right: 0;
  padding-top: 10px;
  padding-bottom: 30px;
  max-width: 50%;
}

.hero--anfahrt {
  height: 0;
  padding-bottom: 35%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  background-color: #ffffff;
  margin-bottom: 0;
}

.hero--anfahrt + .content {
  margin-top: -35%;
  position: relative;
  z-index: 1;
  min-height: 0;
  padding-bottom: 35%;
  display: flex;
  align-items: flex-start;
}

.hero--anfahrt + .content > .container {
  margin-left: 55%;
  padding-top: 30px;
  padding-bottom: 30px;
  max-width: 45%;
}

.hero--small + .content,
.hero--small + .section {
  margin-top: -374px;
  position: relative;
  z-index: 1;
  min-height: 374px;
  display: flex;
  align-items: flex-start;
}

.hero--small + .content > .container,
.hero--small + .section > .container {
  margin-left: 50%;
  padding-top: 30px;
  padding-bottom: 30px;
  max-width: 50%;
}

.hero--small + .content .content-narrow {
  max-width: 100%;
}

.hero--small + .content-left > .container {
  margin-left: 0;
  margin-right: 50%;
}

/* ---- WELCOME (homepage below hero) ---- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 20px 0;
}

.welcome-text h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.welcome-text p {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.welcome-phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.welcome-phone:hover {
  color: var(--primary);
}

.welcome-hours h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .hero { height: 220px; }
  .hero--small { height: 200px; }

  .hero-banner {
    bottom: 12px;
    right: 12px;
    padding: 10px 20px;
    font-size: 15px;
  }

  .hero--portrait { padding-bottom: 39%; }
  .hero--portrait + .content {
    margin-top: 0;
    padding-bottom: 0;
    min-height: auto;
    display: block;
  }
  .hero--portrait + .content > .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero--product { height: 250px; background-size: auto 100%; background-position: center center; }
  .hero--product + .content {
    margin-top: 0;
    min-height: auto;
    display: block;
  }
  .hero--product + .content > .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero--sprechzeiten { padding-bottom: 35%; background-size: 100% auto; }
  .hero--sprechzeiten::before { display: none; }
  .hero--sprechzeiten + .section {
    margin-top: 0;
    padding-bottom: 0;
    min-height: auto;
    display: block;
  }
  .hero--sprechzeiten + .section > .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero--anfahrt { padding-bottom: 35%; }
  .hero--anfahrt + .content {
    margin-top: 0;
    padding-bottom: 0;
    min-height: auto;
    display: block;
  }
  .hero--anfahrt + .content > .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero--small + .content,
  .hero--small + .section {
    margin-top: 0;
    min-height: auto;
    display: block;
  }

  .hero--small + .content > .container,
  .hero--small + .section > .container {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0;
  }

  .welcome-text h1 { font-size: 22px; }
  .welcome-text p { font-size: 14px; }
  .welcome-phone { font-size: 16px; }
  .welcome-hours h2 { font-size: 20px; margin-bottom: 10px; }

  .stoerer {
    font-size: 14px;
    padding: 10px 20px;
    margin-top: 16px;
  }
}

/* ---- STÖRER (job posting badge) ---- */
.stoerer {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  transition: background var(--transition);
}

.stoerer:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- SECTIONS ---- */
.section {
  padding: 64px 0;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* ---- SERVICES GRID (homepage) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- HOURS TABLE ---- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 6px 16px;
  border-bottom: 1px solid var(--border);
}

.hours-table th {
  font-weight: 600;
  color: var(--primary);
  width: 120px;
}

.hours-table td {
  color: var(--text-secondary);
}

/* ---- CONTENT (treatment/info pages) ---- */
.content {
  padding: 0;
}

.content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.content h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

.content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.content img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

.content-narrow {
  max-width: 780px;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.cta-banner h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cta-banner a {
  display: inline-block;
  padding: 8px 20px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
}

.cta-banner a:hover {
  background: var(--accent);
  color: white;
}

/* ---- TEAM CARDS ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  padding: 32px 24px;
}

.team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- JOB BANNER ---- */
.job-grid {
  display: grid;
  grid-template-columns: 1fr 3px 1fr 3px 1fr;
  align-items: start;
  gap: 0;
  margin-top: 24px;
}

.job-grid .job-divider {
  background: #ddd;
  align-self: stretch;
}

.job-banner {
  background: #ffffff;
  color: #333;
  border: none;
  border-radius: 0;
  padding: 32px;
  text-align: left;
}

.job-banner h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 8px;
  color: #2c4a7c;
}

.job-banner p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-secondary);
}

.job-banner a {
  color: var(--accent);
  font-weight: 600;
}

.job-banner a:hover {
  color: var(--primary);
}

/* ---- CONTACT CARD ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.contact-card strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 14px; margin-bottom: 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 20px 16px; }

  .hours-table { font-size: 14px; }
  .hours-table th { width: 50px; }
  .hours-table th, .hours-table td { padding: 6px 8px; }

  .content { padding: 32px 0 48px; }
  .content h2 { font-size: 20px; }
  .content h3 { font-size: 16px; margin-top: 24px; }
  .content p { font-size: 14px; line-height: 1.7; }

  .cta-banner { padding: 24px 16px; margin-top: 32px; }
  .cta-banner h3 { font-size: 18px; }

  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 24px 16px; }

  .job-grid { grid-template-columns: 1fr; }
  .job-grid .job-divider { height: 3px; width: 100%; }
  .job-banner { padding: 24px 16px; }
  .job-banner h3 { font-size: 18px; }
  .job-banner p { font-size: 14px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 16px; }

  .legal h2 { font-size: 18px; }
  .legal p { font-size: 13px; }
}

/* ---- LEGAL (impressum, datenschutz) ---- */
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 16px;
  margin-top: 24px;
}

.legal p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid #ddd;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer p, .footer a {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: none;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
}

.footer-bottom a {
  color: #666;
}

@media (max-width: 768px) {
  .footer { padding: 32px 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
