/* Basis Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px 40px;
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  margin: 25px 25px 0 25px;
  z-index: 1000;
  border-radius: 4px;
}

header .logo img {
  height: 50px;
}

nav {
    padding-top: 15px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  text-transform: uppercase;
}

nav ul li a:hover {
  color: #e30613;
}

main {
  padding: 0;
}

/* Hero / Slider */
.hero {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
}

.hero .hero-btn {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 40px;
  background-color: #d4a574;
  color: #000;
  padding: 12px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
  transition: background 0.3s;
  font-size: 0.9em;
}

.hero .hero-btn:hover {
  background-color: #c49560;
}

/* Artikel Bereich */
.aktuelles {
  max-width: 1400px;
  margin: 40px auto;
}

.article-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.article-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-card.featured {
  grid-column: 1;
  grid-row: 1 / 3;
  background: #f9f9f9;
}

.article-card.featured .content {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.article-card.featured h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #222;
}

.article-card.featured .date {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 15px;
}

.article-card.featured p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.article-card.small {
  grid-column: span 1;
}

.article-card.small img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.article-card.small .content {
  padding: 15px;
}

.article-card.small h3 {
  font-size: 1em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-card.small .date {
  font-size: 0.75em;
  color: #aaa;
  margin-bottom: 10px;
  display: block;
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card .content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card h3 {
  font-size: 1.1em;
  margin: 0 0 8px 0;
  color: #222;
  line-height: 1.4;
}

.article-card .date {
  font-size: 0.8em;
  color: #aaa;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.article-card .read-more {
  margin-top: auto;
  text-decoration: none;
  color: #fff;
  background-color: #333;
  padding: 8px 15px;
  display: inline-block;
  border-radius: 3px;
  transition: background 0.3s;
  font-weight: bold;
  font-size: 0.85em;
  text-transform: uppercase;
  width: fit-content;
}

.article-card .read-more:hover {
  background-color: #434141;
}

/* Accordion */
.accordion, .accordion-section {
  margin-top: 20px;
  display: block;
}
.accordion {
  width: 100%;
}

.accordion-btn {
  background-color: #434141;
  color: white;
  cursor: pointer;
  padding: 15px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 5px;
  border-radius: 4px;
  position: relative;
  transition: background-color 0.2s ease;
}

.accordion-btn::after {
  content: '▾';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.accordion-btn.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.accordion-btn:hover {
  background-color: #333;
}

.accordion-content {
  display: none;
  padding: 14px 16px;
  background: #fafafa;
  border-left: 2px solid #434141;
  border-right: 2px solid #434141;
  border-bottom: 2px solid #434141;
  border-radius: 0 0 4px 4px;
}

.accordion-content h2,
.accordion-content h4 {
  font-size: 1.1rem;
  color: #222;
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
}

.accordion-content h2:first-child,
.accordion-content h4:first-child {
  margin-top: 0;
}

.contact-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #e30613;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.contact-card h3 {
  margin: 0 0 4px;
  color: #222;
}

.contact-card p {
  margin: 0;
  color: #555;
}

.contact-card p + p {
  margin-top: 4px;
}

.contact-card a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  color: #e30613;
}

.location-list {
  margin-top: 20px;
}

.location-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #e30613;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.contact-card img, .location-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
}

.location-card h3 {
  margin: 0 0 4px;
  color: #222;
}

.location-card p {
  margin: 0;
  color: #555;
}

.location-card p + p {
  margin-top: 6px;
}

.location-card a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

.location-card a:hover {
  color: #e30613;
}

.plan-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.plan-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-left: 4px solid #e30613;
  border-radius: 4px;
  padding: 12px 14px;
}

.plan-card img {
  width: 50%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  margin: 0 auto 10px;
}

.plan-card h3 {
  margin: 0 0 4px;
  color: #222;
}

.plan-card p {
  margin: 0;
  color: #555;
}

.plan-card p + p {
  margin-top: 6px;
}

.plan-card a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

.plan-card a:hover {
  color: #e30613;
}

.dienstplaene-page h2 {
  margin-top: 32px;
}

.dienstplaene-page h2 + p {
  margin: 8px 0 14px;
}

.dienstplaene-page .plan-list {
  margin-top: 0;
  margin-bottom: 28px;
}

.impressum-page .tm-content {
  max-width: 980px;
  margin: 0 auto;
}

.impressum-page .uk-article-title {
  color: #222;
  margin-bottom: 14px;
}

.impressum-page p {
  font-size: 1rem;
  margin-bottom: 12px;
}

.impressum-page p span {
  font-size: inherit !important;
}

.impressum-page .impressum-block {
  margin: 12px 0 18px;
  padding: 0;
}

.impressum-page .impressum-address p {
  margin: 0 0 6px;
}

.impressum-page .impressum-provider p {
  margin: 0 0 6px;
}

.impressum-page .impressum-address p:last-child {
  margin-bottom: 0;
}

.impressum-page .impressum-provider p:last-child {
  margin-bottom: 0;
}

.impressum-page .impressum-address .label {
  display: inline-block;
  min-width: 60px;
  font-weight: 700;
  color: #222;
}

.impressum-page a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

.impressum-page a:hover {
  color: #e30613;
}

footer {
  background: #2a2a2a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  margin-top: 60px;
}

footer .left {
  display: flex;
  align-items: center;
  gap: 15px;
}

footer .left img {
  height: 40px;
}

footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
  padding-top: 18px;
  display: inline-block;
}

footer span {
    padding-top: 18px;
}

footer a:hover {
  color: #e30613;
}

/* Responsive */
@media (max-width: 1024px) {
  .aktuelles {
    grid-template-columns: 1fr 1fr;
  }

  .article-card.featured {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }

  header .logo img {
    height: 40px;
  }

  nav ul {
    gap: 15px;
    font-size: 0.85em;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  main {
    padding: 20px;
  }

  .hero {
    height: 300px;
  }

  .slide {
    height: 300px;
  }

  .hero .hero-btn {
    padding: 10px 20px;
    font-size: 0.85em;
  }

  .aktuelles {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .article-card.featured {
    grid-column: 1;
    grid-row: auto;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 20px;
  }
}
