/* ==========================================================================
   HNO Frankfurt - Dr. med. Christian Hellweg
   Static Site Stylesheet
   ========================================================================== */

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

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #333;
  line-height: 1.7;
  background: #f5f5f5;
}

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

a:hover {
  color: #8b0000;
  text-decoration: underline;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  z-index: 9999;
  padding: 15px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.btn-accept {
  background: #b22222;
  color: #fff;
  border: none;
  padding: 8px 24px;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-accept:hover {
  background: #8b0000;
}

.cookie-buttons a {
  color: #ccc;
  font-size: 0.85rem;
}

.cookie-buttons a:hover {
  color: #fff;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 0;
  font-size: 0.85rem;
  color: #666;
}

.top-bar .container {
  text-align: center;
}

.top-bar a {
  color: #666;
}

.top-bar a:hover {
  color: #b22222;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  font-size: 1.5rem;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 3px;
}

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

.main-nav > ul {
  display: flex;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 10px 15px;
  color: #333;
  font-size: 0.9rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li:hover > a {
  color: #b22222;
  text-decoration: none;
}

/* Dropdown */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-top: 2px solid #b22222;
  z-index: 100;
  list-style: none;
}

.has-sub:hover > .sub-menu {
  display: block;
}

.sub-menu li a {
  display: block;
  padding: 8px 18px;
  color: #444;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, color 0.2s;
}

.sub-menu li a:hover {
  background: #fafafa;
  color: #b22222;
  text-decoration: none;
}

.sub-menu li:last-child a {
  border-bottom: none;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.site-main {
  background: #fff;
  min-height: 60vh;
  padding: 40px 0 60px;
}

/* Homepage Layout */
.home-layout {
  display: grid;
  grid-template-columns: 250px 1fr 280px;
  gap: 40px;
  align-items: start;
}

.home-sidebar {
  text-align: center;
}

.doctor-photo {
  width: 100%;
  max-width: 240px;
  border-radius: 4px;
  margin-bottom: 25px;
}

.info-box {
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-box h3 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.home-content h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: normal;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.home-content p {
  margin-bottom: 15px;
}

.home-content blockquote {
  border-left: 4px solid #b22222;
  padding: 15px 20px;
  margin: 25px 0;
  background: #fafafa;
  font-style: italic;
  color: #555;
}

.doctor-sig {
  margin-top: 30px;
  font-size: 0.95rem;
}

/* Videos sidebar */
.home-videos h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: normal;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.video-item {
  margin-bottom: 20px;
}

.video-label {
  font-size: 0.85rem;
  margin-bottom: 5px;
  color: #555;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Page Content */
.page-content {
  max-width: 800px;
}

.page-content h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 25px;
  font-weight: normal;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-content h2 {
  font-size: 1.4rem;
  color: #333;
  margin: 30px 0 15px;
  font-weight: normal;
}

.page-content h3 {
  font-size: 1.15rem;
  color: #444;
  margin: 25px 0 10px;
}

.page-content p {
  margin-bottom: 15px;
}

.page-content ul, .page-content ol {
  margin: 15px 0 20px 25px;
}

.page-content li {
  margin-bottom: 8px;
}

.content-image {
  float: right;
  max-width: 250px;
  margin: 0 0 20px 25px;
  border-radius: 4px;
}

/* Contact Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-top: 4px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b22222;
}

.contact-form p {
  margin-bottom: 15px;
}

.btn-submit {
  background: #b22222;
  color: #fff;
  border: none;
  padding: 10px 30px;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #8b0000;
}

.contact-info h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.map-embed {
  margin-top: 20px;
  border-radius: 4px;
  overflow: hidden;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #333;
  color: #aaa;
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: #fff;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #b22222;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1.2rem;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 0.8;
}

.back-to-top:hover {
  opacity: 1;
  text-decoration: none;
  color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 20px;
    text-align: left;
    align-items: start;
  }

  .doctor-photo {
    max-width: 180px;
  }

  .home-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .home-videos h2 {
    grid-column: 1 / -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-top: 2px solid #b22222;
  }

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

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav > ul > li > a {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background: #f9f9f9;
  }

  .has-sub:hover > .sub-menu {
    display: block;
  }

  .sub-menu li a {
    padding-left: 35px;
  }

  .home-sidebar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-videos {
    grid-template-columns: 1fr;
  }

  .content-image {
    float: none;
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .top-bar {
    font-size: 0.75rem;
  }

  .page-content h1 {
    font-size: 1.5rem;
  }

  .home-content h1 {
    font-size: 1.5rem;
  }
}
