@charset "utf-8";

/* 
  * Michael Weigert – Responsive Template (2026)
  * Stand: Version 2.0
  * Datum: 22.01.2026
  * @Autor: Strange Designs UG 
  * Original Code by: Yvonne Nenoff, 27. Februar 2001 

               )\._.,--....,'``.      
 .b--.        /;   _.. \   _\  (`._ ,.
`=,-,-'~~~   `----(,_..'--(,_..'`-.;.' Die Katze hat vielleicht etwas HTML unters Sofa gespielt. BF-Strange Designs UG

   
*/

/* =================== Root =================== */

:root {
  --font-sans: system-ui, -apple-system, sans-serif;

  --fsize-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --fsize-h1: 1.8rem;
  --fsize-h2: 1.4rem;
  --fsize-h3: 1.2rem;

  --color-dark: #212121;
  --color-muted: #404040;
  --color-white: #ffffff;
  --color-primary: #1f4a7a;
  --color-accent: #957100;
  --color-bg-header: #7d7d7e;
  --color-bg-badge: #3b445b;

  --space-s: 0.5rem;
  --space-m: 1rem;
  --space-l: 2rem;

  --height-1: 40vh;
  --height-2: 20vh;

  --d-flex: flex;
  --d-block: block;
  --d-grid: grid;
  --d-none: none;
}

/* =================== Basis =================== */

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

html {
  font-family: var(--font-sans);
  font-size: var(--fsize-base);
  color: var(--color-dark);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

main {
  display: var(--d-flex);
}

section {
  padding-inline: var(--space-m);
}

address {
  font-style: normal;
}

main ul:not(.nav-sub, .nav-list) {
  margin-left: var(--space-l);
  margin-bottom: var(--space-m);
}

.container {
  max-width: 85%;
  margin-inline: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: var(--d-block);
}

h1,
h2,
h3,
h4 {
  margin-bottom: var(--space-s);
}

h1 {
  font-size: var(--fsize-h1);
  font-weight: 900;
}

h2 {
  font-size: var(--fsize-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--fsize-h3);
  font-weight: 500;
}

h4 {
  font-size: var(--fsize-base);
  font-weight: 500;
}

a {
  font-family: var(--font-sans);
  font-size: var(--fsize-base);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  line-height: 1.6;
}

/* =================== Header =================== */

.site-header {
  background-color: var(--color-bg-header);
}

.header-section {
  min-height: var(--height-2);
  margin-top: 5em;
}

.header-inner {
  display: var(--d-grid);
  grid-template-columns: 1fr;
  min-height: var(--height-2);
  align-items: center;
}

.header-text {
  color: var(--color-white);
  min-height: var(--height-2);
  align-content: center;
}

.header-text h1 {
  font-size: var(--fsize-h1);
  margin-bottom: var(--space-s);
}

.header-subline {
  font-size: 1rem;
}

.header-image {
  display: var(--d-none);
  visibility: hidden;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* =================== Navigation =================== */

.nav-list {
  list-style: none;
}

.nav-list li {
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-muted);
}

.nav-list a:hover,
a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.nav-sub,
.nav-sub a {
  list-style: none;
  padding-left: var(--space-s);
  font-size: 0.95rem;
  font-weight: 400;
}

.has-submenu > .menu-label {
  font-weight: 600;
  display: var(--d-block);
  margin-top: 0.75rem;
}

.nav-sub {
  margin-top: 0.25rem;
}

.nav-list a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* =================== Mobile =================== */

.home-ico {
  width: 3em;
  height: 3em;
  margin: auto 0;
}

.main-nav {
  background-color: var(--color-white);
  width: 100%;
  z-index: 1300;
  padding: 1em 0;
  position: fixed;
  top: 0;
  left: 0;
}

.nav-toggle {
  display: var(--d-flex);
  gap: 1em;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  margin-left: auto;
}

.burger {
  display: var(--d-flex);
  flex-direction: column;
  align-items: center;
  width: auto;
}

button.nav-toggle::after {
  content: "Menü öffnen";
  display: var(--d-block);
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-dark);
  text-align: center;
}

button.nav-toggle.is-open::after {
  content: "Menü schließen";
}

.burger span {
  left: 0;
  width: 3em;
  height: 3px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  margin-top: 0.6em;
  transform: translateY(-50%);
}

.burger span:nth-child(3) {
  margin-top: 0.5em;
}

.nav-toggle.is-open .burger span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.is-open .burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .burger span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  margin-top: 0.3em;
}

.sidebar {
  position: fixed;
  inset: 0;
  background-color: #fff;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  z-index: 1100;

  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.sidebar.is-open {
  transform: translateY(0);
}

.nav-branding {
  margin-top: var(--space-l);
}

/* =================== Main Layout =================== */

.site-main {
  padding-block: var(--space-l);
}

.layout-grid {
  display: var(--d-grid);
  gap: var(--space-l);
}

/* =================== Content =================== */

.main-content {
  order: 1;
}

.content-header h2 {
  font-size: var(--fsize-h2);
  margin-bottom: var(--space-m);
}

.main-content p {
  margin-bottom: var(--space-m);
  color: var(--color-dark);
}

/* =================== Footer =================== */

.site-footer {
  padding-block: var(--space-l);
  background-color: #f6f6f6;
}

.footer-grid {
  display: var(--d-grid);
  align-items: stretch;
  gap: var(--space-l);
}

.site-footer::after {
  content: "Copyright © 2026 Michael Weigert. Alle Rechte vorbehalten";
  display: var(--d-block);
  margin-top: var(--space-l);
  font-size: 0.9rem;
  color: grey;
  text-align: center;
}

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

.certification-badge {
  background-color: var(--color-bg-badge);
  color: #fff9e6;
  padding: var(--space-m);
  border-radius: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  max-width: 100%;
}

.alert-box {
  background-color: #f4f4f4;
  padding: var(--space-m);
  border-left: 4px solid var(--color-accent);
}

.info-card {
  display: var(--d-flex);
  flex-direction: column;
  height: 100%;
}

.info-card h2,
.deco {
  font-size: var(--fsize-h3);
  margin-bottom: var(--space-s);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.more-link {
  margin-top: auto;
  display: inline-block;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.more-link:hover {
  text-decoration: underline;
}

.hours-list {
  display: var(--d-grid);
  grid-template-columns: max-content 1fr;
  gap: var(--space-s) var(--space-m);
  margin: var(--space-m) 0;
}

.hours-list dt {
  font-weight: 600;
  color: var(--color-dark);
}

.hours-list dd {
  margin-inline-start: 0;
  color: var(--color-muted);
}

/* =================== Hilfsklassen =================== */

.nav-con {
  display: var(--d-flex);
}

.break {
  margin-top: var(--space-m);
}

/* =================== UX =================== */

a[href^="mailto:"]::after,
a[href^="tel:"]::after,
a[href^="http"]::after {
  margin-left: 5px;
  font-size: 0.85em;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s ease;
}

a[href^="mailto:"]::after {
  content: "✉";
}

a[href^="tel:"]::after {
  content: "☎";
}

a[href^="http"]:not([href*="https://neurologie-weigert-leipzig.de"])::after {
  content: "➥";
}

a:hover::after {
  transform: translate(2px, -2px);
}

/* =================== Desktop =================== */

@media (min-width: 900px) {
  section:not(section.header-section) {
    padding-inline: var(--space-m);
  }

  .container {
    max-width: 1400px;
    margin-inline: auto;
  }
  .header-section {
    margin-top: 0;
  }

  .header-inner {
    grid-template-columns: 22% 1fr;
  }

  .main-nav {
    visibility: hidden;
    display: var(--d-none);
  }
  .header-image {
    display: var(--d-block);
    visibility: visible;
    position: relative;
    width: 150%;
    height: var(--height-1);
    overflow: hidden;
  }

  .layout-grid {
    grid-template-columns: 19% 1fr;
    align-items: start;
  }

  .nav-con {
    display: var(--d-none);
  }

  .nav-toggle {
    position: static;
    transform: none;
    display: var(--d-none);
  }

  .sidebar {
    position: static;
    transform: none;
    max-height: none;
    padding: 0;
    background: none;
    order: 1;
  }

  .main-content {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
