/*
Theme Name: Notar Bad Honnef
Author: WordPress Migration Specialist
Version: 1.0
Description: Custom theme for Notarin Dr. Christiane Kluge
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;500;700&family=Work+Sans:wght@400;500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

:root {
  --primary-color: #133566;
  --primary-dark: #0e2548;
  --primary-light: #e8edf4;
  --text-color: #585454;
  --text-light: #777;
  --bg-color: #ffffff;
  --sidebar-bg: #f5f7fa;
  --border-color: #d4dae3;
  --radius: 6px;
  --font-body: 'Work Sans', sans-serif;
  --font-heading: 'Roboto', sans-serif;
  --font-sub: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
}

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

/* ===== LAYOUT ===== */
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-flex {
  display: flex !important;
  gap: 30px !important;
  margin: 40px 0;
  align-items: flex-start !important;
}

.content-main {
  flex: 1 1 0% !important;
  min-width: 0;
}

.content-sidebar {
  flex: 0 0 280px !important;
  width: 280px !important;
  background: var(--sidebar-bg);
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
.site-logo img {
  max-height: 80px;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.main-navigation li {
  position: relative;
}
.main-navigation a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  font-weight: 500;
}
.main-navigation a:hover {
  color: var(--primary-color);
}
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  min-width: 200px;
  z-index: 100;
}
.main-navigation ul li:hover > ul {
  display: block;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.hero-banner {
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}
.slide.active {
  opacity: 1;
}

/* ===== SIDEBAR ===== */
.sidebar-wappen {
  text-align: center;
  margin-bottom: 20px;
}
.sidebar-wappen img {
  max-width: 100px;
}
.sidebar-section {
  margin-bottom: 25px;
}
.sidebar-section h3 {
  font-size: 1.1em;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-section h3 i {
  color: var(--primary-color);
}
.sidebar-section p {
  margin: 5px 0;
}

/* ===== NEWS ===== */
.home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}
.home-col {
  flex: 1;
  min-width: 250px;
}
.bnotk-news-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.news-item {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}
.news-item a {
  font-size: 0.95em;
  line-height: 1.4;
}
.news-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

/* ===== ENTRY CONTENT ===== */
.entry-content {
  line-height: 1.7;
}
.entry-content p {
  margin-bottom: 1em;
}
.entry-content ul, .entry-content ol {
  padding-left: 20px;
}

/* ===== FORM ===== */
.notar-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input, .form-group textarea {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
}
.form-group button {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: bold;
}
.form-group button:hover {
  background: var(--primary-dark);
}
.honeypot {
  display: none !important;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  display: none;
}
#cookie-banner button {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  padding: 8px 15px;
  margin: 0 5px;
  cursor: pointer;
  border-radius: var(--radius);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 50px;
}
.site-footer a {
  color: var(--primary-light);
}
.footer-links {
  margin-bottom: 20px;
}
.footer-links a {
  margin-right: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-flex {
    flex-direction: column;
  }
  .content-sidebar {
    flex: none;
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    z-index: 999;
  }
  body.nav-open .main-navigation ul {
    display: flex;
  }
  .main-navigation ul ul {
    position: static;
    display: none;
    border: none;
    padding-left: 15px;
  }
  .main-navigation ul li.clicked > ul {
    display: block;
  }
  .hero-slider {
    height: 250px;
  }
  .home-grid {
    flex-direction: column;
  }
  .home-col {
    min-width: 0;
  }
}

@media print {
  .site-header, .content-sidebar, .site-footer, #cookie-banner, .hero-slider {
    display: none !important;
  }
  .content-main {
    width: 100%;
  }
}
