/**
 * echoway GmbH — eigene Stile (Ergänzung zum Bootstrap-Template)
 */

/* ---- Farben ---- */
:root {
  --ew-red:        #ca010b;
  --ew-red-dark:   #a2010b;
  --ew-gray-text:  #666666;
  --ew-light-bg:   #f8f8f8;
}

/* ---- Sticky Footer: Footer bleibt immer am unteren Rand ---- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: scroll; /* verhindert Layout-Shift durch erscheinenden/verschwindenden Scrollbalken */
}
#main {
  flex: 1;
}

/* ---- BTN ----- */

.btn-primary {
  background-color: var(--ew-red);
  border-color: var(--ew-red);
  padding: 0.5rem 2rem;
}
.btn-primary:hover {
  background-color: var(--ew-red-dark);
  border-color: var(--ew-red-dark);
}

/* ---- Hauptinhalt ohne Hero: Abstand für fixed Header ---- */
#main.no-hero {
  padding-top: 70px;
}

/* ---- Unterseiten-Hero ---- */
.ew-inner-hero {
  height: 280px;
  background: linear-gradient(135deg, #151515 60%, var(--ew-red-dark) 100%);
  position: relative;
  padding-top: 80px; /* Platz für fixed Header */
}
.ew-inner-hero h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ew-inner-hero h2 {
  color: rgba(255,255,255,0.80);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.5rem;
}

/* ---- Unterseiten-Hero (klein) ---- */
.ew-inner-hero--small {
  height: 300px;
  background-position: bottom 50px right 0px !important;
  min-height: unset !important;
}
.ew-inner-hero--small > .container {
  padding-top: 44px !important;
  padding-bottom: unset !important; 
}

/* ---- Tabellen ---- */
.ew-table-head th {
  background-color: #353535;
  color: #fff;
  border-color: #2a2a2a;
}
.ew-table-head a {
  color: #fff;
}

/* ---- Unternavigation (Subnav) ---- */
.ew-subnav {
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.ew-subnav a {
  display: inline-block;
  margin-right: 1.5rem;
  color: var(--ew-gray-text);
  text-decoration: none !important;
  font-size: 0.95rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.ew-subnav a:hover,
.ew-subnav a.active {
  color: var(--ew-red);
  border-bottom-color: var(--ew-red);
}

/* ---- Inner-Page Inhaltsbereich ---- */
.inner-page {
  padding: 40px 0;
}
.inner-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.8rem;
}
.inner-page h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ew-red);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.inner-page h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}
.inner-page p,
.inner-page li {
  color: #444;
  line-height: 1.7;
}
.inner-page a {
  color: var(--ew-red);
  text-decoration: none;
}
.inner-page a:hover {
  text-decoration: underline;
}
.inner-page ul {
  padding-left: 1.4rem;
}
.inner-page ul li {
  margin-bottom: 0.3rem;
}

/* ---- News-Liste ---- */
.ew-news-item {
  border-bottom: 1px solid #e8e8e8;
  padding: 1.2rem 0;
}
.ew-news-item:last-child {
  border-bottom: none;
}
.ew-news-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.8rem;
}
.ew-news-headline a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ew-red);
  text-decoration: none;
}
.ew-news-headline a:hover {
  text-decoration: underline;
}
.ew-news-teaser {
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.3rem;
  line-height: 1.5;
}
.ew-news-teaser a {
  color: var(--ew-red);
}

/* ---- Kontaktformular ---- */
.ew-contact-form .form-control {
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}
.ew-contact-form .btn-primary {
  background-color: var(--ew-red);
  border-color: var(--ew-red);
  padding: 0.5rem 2rem;
}
.ew-contact-form .btn-primary:hover {
  background-color: var(--ew-red-dark);
  border-color: var(--ew-red-dark);
}
.ew-contact-box {
  background: #f4f4f4;
  border-radius: 6px;
  padding: 1.5rem;
}

/* ---- Footer ---- */
#footer {
  /*background: rgba(0, 0, 0, 0.8);*/
  background: #303030;
  color: #bbb;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.88rem;
}
#footer h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
#footer p {
  color: #bbb;
}
#footer .footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.82rem;
}
#footer .footer-links a:hover {
  color: var(--ew-red);
}
#footer .text-muted {
  color: #666 !important;
}

/* ---- Cookie-Banner ---- */
#ew-cookie-banner {
  background: #222;
  color: #eee;
  font-size: 0.95rem;
  z-index: 9999;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.4);
}
#ew-cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
#ew-cookie-inner p {
  flex: 1 1 300px;
  margin: 0;
  line-height: 1.5;
}
.ew-cookie-link {
  color: #ccc;
  text-decoration: underline;
}
.ew-cookie-link:hover {
  color: #fff;
}
.ew-cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ew-cookie-btn-primary {
  background-color: var(--ew-red);
  border-color: var(--ew-red);
  color: #fff;
  white-space: nowrap;
}
.ew-cookie-btn-primary:hover {
  background-color: var(--ew-red-dark);
  border-color: var(--ew-red-dark);
  color: #fff;
}
.ew-cookie-btn-secondary {
  background-color: transparent;
  border: 1px solid #888;
  color: #ccc;
  white-space: nowrap;
}
.ew-cookie-btn-secondary:hover {
  border-color: #ccc;
  color: #fff;
}

/* ---- Startseite: Home-News-Box ---- */
.ew-home-news {
  text-align: left;
}

.ew-home-news a {
  color: #fff;
  font-size: 0.88rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}
.ew-home-news a::before {
  content: '›';
  margin-right: 0.4rem;
  color: rgba(255,255,255,0.6);
}
.ew-home-news a:hover {
  text-decoration: underline;
}

/* ---- Events-Liste ---- */
.ew-events-list {
  list-style: none;
  padding: 0;
}
.ew-events-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.ew-events-list li:last-child {
  border-bottom: none;
}
.ew-events-list a {
  color: var(--ew-red);
  text-decoration: none;
}
.ew-events-list a:hover {
  text-decoration: underline;
}
.ew-events-section-title {
  font-weight: 700;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #333;
}
