/*
Theme Name: Praxis Dr. Hutter
Theme URI: https://praxis-hutter.ch/
Author: Martin Fischer
Description: Lightweight and clean one-page WordPress theme.
Version: 1.0.0
Text Domain: praxis-dr-hutter
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --text: #5d5d5d;
  --light-text: #a3a3a3;
  --dark: #5d5d5d;
  --border: #e8e8e8;
  --content-width: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.55; color: var(--text); background: #fff; }
a { color: var(--text); text-decoration: underline; }
a:hover, a:focus { color: var(--text); }
img { max-width: 100%; height: auto; border: 0; }
.site-header { max-width: var(--content-width); margin: 0 auto; padding: 20px 20px 0; }
.site-logo { display: block; margin: 0 auto; width: 163px; height: 104px; object-fit: contain; }
.main-nav { text-align: center; padding: 30px 0 10px; }
.main-nav ul { list-style: none; padding: 0; margin: 0; }
.main-nav li { display: inline; }
.main-nav a { display: inline-block; padding: 10px; font-size: 1.2em; color: var(--text); text-decoration: none; font-weight: 500;}
.main-nav a:hover, .main-nav a:focus { color: #999; font-weight: 500; }


.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease,
              border-color 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background-color: #f7f7f7;
  border-color: #d0d0d0;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.menu-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 50px;
    right: 20px;
  }
}



.section, .container { max-width: var(--content-width); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.section { margin-bottom: 60px; }
.section-title { font-family: "Manrope", serif-serif; margin: 0 0 22px; font-size: 3em; line-height: 1.05; font-weight: 700; letter-spacing: 4px; color: var(--text); }
.section-subtitle { display: block; margin-bottom: 5px; font-size: 2em; line-height: 1.2; letter-spacing: 4px; }
.subsubtitle { font-size: 1.5em; }
.spacer-top { margin-top: 20px; }
.spacer-bottom { margin-bottom: 30px; }
.bold { font-weight: 700; }

.hero { min-height: 685px; padding-top: 30px; background-position: center center; background-size: cover; background-repeat: no-repeat; display: flex; align-items: flex-start; justify-content: center; }
.hero-inner { width: 100%; text-align: center; }
.hero-title { margin: 0; margin-top: 35px; padding-top: 0; font-size: 4.6em; line-height: 1.1; font-weight: 700; letter-spacing: 4px; color: #fff; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
               0 4px 8px rgba(0, 0, 0, 0.2);}
.hero-address { color: #fff; font-size: 1em; letter-spacing: .045em; }
.hero-address a { color: #fff; }
.emergency { position: relative; max-width: var(--content-width); margin: 0 auto 30px; padding: 40px 20px; text-align: center; }
.emergency-line { height: 2px; background: #5d5d5d; position: absolute; top: 60px; left: 20px; right: 20px; z-index: 0; }
.emergency-box { position: relative; z-index: 1; display: inline-block; padding: 0px 20px; background: var(--dark); color: #fff; font-size: 1.2em; line-height: 2em; height:  40px; border-radius: 30px; }
.emergency-box a,
.emergency-box a:visited,
.emergency-box a:hover,
.emergency-box a:active {
  color: #fff;
  text-decoration: none;
}
.emergency-phone {
  background: #fff;
  color: var(--dark);
  border-radius: 30px;
  margin: 0 20px;
  height: 35px;
  line-height: 2.2em;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 30px;
}

.grid-team, .grid-gallery-angebot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.grid > *, .grid-team > *,  .grid-gallery-angebot > * {
  min-width: 0;
}
.grid-one-column { grid-template-columns: 1fr; gap: 5px; }
.card-image { display: block; width: 100%; }
.card-image-angebot { display: block; width: 100%; max-width: 250px;}
.richtext p:first-child { margin-top: 0; }
.richtext p:last-child { margin-bottom: 0; }
.gallery { margin-top: 30px; margin-bottom: 70px; }
.gallery img { width: 100%; display: block; }
.wide-image img { display: block; width: 100%; }

.team-card { position: relative; }
.team-card img { display: block; width: 100%; }
.team-caption { position: absolute; inset: 0; display: flex; align-items: flex-start; padding: 15px; background: rgba(43,39,43,.72); color: #fff; opacity: 0; transition: opacity .2s ease; }
.team-card:hover .team-caption, .team-card:focus-within .team-caption { opacity: 1; }
.team-caption p { margin: 0; }
.team-mobile-info { display: none; }

.news-card .date { margin-bottom: 20px; }
.news-card h3 { margin: 20px 0 4px; font-size: 1.5em; font-weight: 400; }
.news-card img { width: 100%; display: block; }
.pdf-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; }
.pdf-link img { width: 18px; height: 25px; }

.contact { min-height: 310px; padding: 30px 20px 40px; background: var(--dark); color: #fff; }
.contact-inner { max-width: var(--content-width); margin: 0 auto; }
.contact-top, .contact-bottom { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.contact-top { padding-bottom: 20px; border-bottom: 1px solid #fff; }
.contact-top > :nth-child(2) { text-align: center; }
.contact-top > :last-child { text-align: right; }
.contact-bottom { padding-top: 20px; }
.contact-bottom > :nth-child(2) { text-align: center; padding-top: 57px; }
.contact-bottom > :last-child { text-align: right; }
.contact a { color: #fff; }
.contact-logo { width: 163px; }
.impressum { display: none; padding-top: 15px; color: #b2b2b2; font-size: .8em; }
.impressum > a { color: #b2b2b2; font-size: .8em;}
.footer-mobile { display: none; }

@media (max-width: 767px) {
  .site-header { padding-top: 10px; }
  .site-logo { max-height: 70px;}
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { min-height: 280px; margin-top: 30px; background-image: var(--hero-mobile); }
  .hero-title { font-size: 1.6em; margin-top: 0;}
  .hero-address { font-size: 0.8em; }


  .section-title { font-size: 1.6em; letter-spacing: 2px; }
  .section-subtitle { font-size: 1.7em; letter-spacing: 2px; }
  .subsubtitle { font-size: 1.3em; }
  .grid, .grid-gallery-angebot { grid-template-columns: 1fr; gap: 10px; }
  .grid-team { grid-template-columns: 1fr; gap: 30px; }
  .grid-one-column { grid-template-columns: 1fr; gap: 5px; }
  .emergency { padding-top: 40px; }
  .emergency-line { left: 20px; right: 20px; }
  .emergency-box { font-size: 1.0em; line-height: 2.4em; }
  .team-caption { display: none; }
  .team-mobile-info { display: block; margin-top: 8px; }
  .team-mobile-info > p { margin-top: 2px; margin-bottom: 2px; }
  .impressum > p { margin-top: 10px; margin-bottom: 2px; }
  .contact { padding-left: 20px; padding-right: 20px; }
  .contact-top, .contact-bottom { display: block; text-align: center; }
  .contact-top { border-bottom: 0; }
  .contact-top > * { margin-bottom: 20px; text-align: center !important; }
  .contact-bottom > * { margin-bottom: 20px; text-align: center !important; padding-top: 0 !important; }
  .footer-mobile { display: block; }
  .footer-desktop { display: none; }
  .card-image-angebot { display: block; width: 100%; max-width: 100%;}

  .emergency-phone {
    text-align: center !important;
    max-width: 200px;
    margin: 0;
  }

  .emergency-phone a,
  .emergency-phone a:visited,
  .emergency-phone a:hover,
  .emergency-phone a:active {
    color: var(--dark);
    text-decoration: none;
  }

  .site-footer .wp-block-columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .site-footer .wp-block-column {
    width: 100%;
    flex-basis: 100%;
  }

  .contact .has-text-align-center,
  .contact .has-text-align-right {
    text-align: left;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-title { font-size: 3.8em; }
  .section-title { font-size: 2.0em; }
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.mobile-nav {
margin-top: 16px;
text-align: center;
background: #fff;
border: 1px solid var(--border);
}

.mobile-nav ul {
list-style: none;
padding: 0;
margin: 0;
}

.mobile-nav li {
margin: 0;
padding: 0;
}

.mobile-nav a {
display: block;
padding: 10px;
font-family: 'Manrope', sans-serif;
font-size: 1.2em;
font-weight: 500;
line-height: 1.55;
color: var(--text);
text-decoration: none;
background-color: #f7f7f7;
}

.mobile-nav a:hover {
color: #999;
}

/* Menü geschlossen halten */
.mobile-nav[hidden] {
display: none !important;
}

.contact-legal {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.contact-legal .impressum {
  flex-basis: 100%;
}

.contact-legal .smallfont {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .contact-legal {
    display: block;
  }

  .contact-legal .impressum {
    flex-basis: 100%;
    order: 3;
  }

  .contact-legal .smallfont {
    text-align: center;
  }
}

.smallfont {
    font-size: 0.9em;
}

h2 {
    font-size: 2.5em;
    letter-spacing: 2px;
}

h3, .subsubtitle, .news-card h3 {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.2em;
}

.news-card {
  margin-bottom: 30px;
}

ul {
  margin-block-start: 0px;
  padding-inline-start: 16px;
}