/*
 Theme Name:     twentyseventeen-dtm
 Template:       twentyseventeen
 Author:         dtm & Heinz
 Description:    Custom Child Theme for Twenty Seventeen
 Version:        1.0
*/

/* Custom styles go here */

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

strong {
  font-weight: 500;
}


.site-branding {
	top: 1em;
}

/* Mehr Abstand zwischen H2 und erstem Folge-Element (Text/Bild) */
.page h2 + p,
.page h2 + figure,
.page h2 + div {
  margin-top: 5rem;
}

/* Reduziert Abstand unter dem Content */
.page .entry-content {
  padding-bottom: 0rem; /* oder 0, wenn du’s ganz eng willst */
  margin-bottom: 0 !important;
}

/* Bildgruppen oder letzte Blöcke entlüften */
.page .entry-content > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Bildergalerie */
.kachel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1600px; /* Mehr Breite bei großen Screens */
  margin: 0 auto;
  padding: 20px;
}

.kachel-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kachel-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.kachel-box img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.kachel-box h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #222;
  text-align: left;
}

.kachel-box p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  text-align: left;
}

.kachel-box p {
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Vorteils-Kacheln */
  .vorteile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .vorteil-box {
    background: #f7f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
  }

  .vorteil-box:hover {
    transform: translateY(-4px);
  }

  .vorteil-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .vorteil-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .vorteil-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
  }

/* FAQs */
.faq-accordion {
  max-width: 700px;
  margin: 2em auto;
  font-family: sans-serif;
	margin-top: 6em;
}
.faq-item {
  margin-bottom: 1.2em;
  border-radius: 8px;
  background: #f3f6f9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}
.faq-item.active {
  background: #e9eff5;
}
.faq-question {
  padding: 1em 1.2em;
  font-weight: 600;
  color: #003366;
  cursor: pointer;
  position: relative;
  font-size: 1.1em;
}
.faq-question::after {
  content: "＋";
  position: absolute;
  right: 1.2em;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.2em;
  font-size: 1em;
  color: #333;
  line-height: 1.5;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 800px;
  padding: 0.5em 1.2em 1em;
}
.faq-question::before {
  content: attr(data-icon);
  margin-right: 0.6em;
  font-size: 1.2em;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(1px);
}


/* Impressum */
.impressum-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  font-family: sans-serif;
  line-height: 1.6;
}

.impressum-wrapper h1 {
  margin-bottom: 2.2rem;
}

.impressum-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.impressum-column {
  flex: 1 1 300px;
  min-width: 280px;
}

.impressum-icon {
  margin-right: 0.4em;
}

.impressum-column strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.4rem;
}

.impressum-section {
  margin-bottom: 1.8rem;
}

.impressum-wrapper a {
  color: #004080;
  text-decoration: underline;
}

.impressum-wrapper a:hover {
  text-decoration: none;
}

.webdesign-logo {
  margin-top: 2rem;
}

.webdesign-logo img {
  max-width: 180px;
  height: auto;
  border: none;
  display: block;
  margin-top: 0.5rem;
}
@media (max-width: 600px) {
  .impressum-grid {
    flex-direction: column;
  }
}


/* Datenschutz */
.datenschutz-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.datenschutz-wrapper h1 {
  margin-bottom: 2.2rem;
}

.datenschutz-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.datenschutz-column {
  flex: 1 1 300px;
  min-width: 280px;
}

.datenschutz-icon {
  margin-right: 0.4em;
}

.datenschutz-section {
  margin-bottom: 1.8rem;
}

.datenschutz-section strong {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.4rem;
}

.datenschutz-wrapper a {
  color: #004080;
  text-decoration: underline;
}

.datenschutz-wrapper a:hover {
  text-decoration: none;
}

@media (max-width: 600px) {
  .datenschutz-grid {
    flex-direction: column;
  }
}
