/* ---------------------------------------------------------------
   Einheitlicher Kopfbereich (alle Seiten)
   --------------------------------------------------------------- */
#branding { border-top: 0; padding: 18px 0 12px; }

#branding > a,
#branding a img { display: none; }

#site-title { margin: 0; }
#site-title a { color: var(--gsc-ink); font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
#site-title a:hover { color: var(--gsc-accent); }
#site-description { color: var(--gsc-ink-soft); font-size: 15px; margin-top: 2px; }

#branding #searchform { display: none; }

#main { padding-top: 14px; }

/* ---------------------------------------------------------------
   Inhaltsseiten
   --------------------------------------------------------------- */
#content { padding-top: 0; }

.entry-header { margin-bottom: 18px; }

.entry-title,
#content .page-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--gsc-ink);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.entry-title a { color: var(--gsc-ink); }
.entry-title a:hover { color: var(--gsc-accent); }

.entry-meta {
  font-size: 13px;
  color: #8b9aa5;
  margin: 0 0 22px;
}

.entry-meta a { color: #8b9aa5; text-decoration: none; border: 0; }
.entry-meta a:hover { color: var(--gsc-accent); }

.entry-content {
  font-size: 16px;
  line-height: 1.72;
  color: var(--gsc-ink-soft);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--gsc-ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.entry-content h2 {
  font-size: 23px;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gsc-line);
}

.entry-content h3 { font-size: 19px; margin: 26px 0 10px; }
.entry-content h4 { font-size: 17px; margin: 22px 0 8px; }

.entry-content p { margin: 0 0 16px; }

.entry-content a {
  color: var(--gsc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.entry-content a:hover { color: var(--gsc-accent-dark); }

.entry-content ul,
.entry-content ol { margin: 0 0 18px 22px; }

.entry-content li { margin-bottom: 7px; line-height: 1.65; }

.entry-content strong { color: var(--gsc-ink); }

.entry-content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gsc-accent);
  background: var(--gsc-bg);
  border-radius: 0 8px 8px 0;
  color: var(--gsc-ink);
  font-style: normal;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--gsc-line);
  margin: 30px 0;
}

/* Tabellen */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15px;
}

.entry-content table th,
.entry-content table td {
  border: 1px solid var(--gsc-line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.entry-content table th { background: var(--gsc-bg); color: var(--gsc-ink); }

/* Formulare (Kontaktformular) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #cfd8de;
  border-radius: 6px;
  font-size: 15px;
  color: var(--gsc-ink);
  background: #fff;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus { border-color: var(--gsc-accent); outline: 2px solid rgba(29, 111, 165, 0.18); outline-offset: 1px;
}

.wpcf7 textarea { min-height: 150px; }

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--gsc-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.wpcf7 input[type="submit"]:hover { background: var(--gsc-accent-dark); }

.wpcf7 p { margin-bottom: 14px; }

/* ---------------------------------------------------------------
   Seitenleiste
   --------------------------------------------------------------- */
#secondary .widget {
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--gsc-line);
  border-radius: var(--gsc-radius);
  background: #fff;
}

#secondary .widget h3 {
  margin: 0 0 12px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b9aa5;
  font-weight: 700;
  border: 0;
  padding: 0;
}

#secondary .widget ul { list-style: none; margin: 0; padding: 0; }
#secondary .widget li { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; }
#secondary .widget li:last-child { margin-bottom: 0; }

#secondary .widget a { color: var(--gsc-ink); text-decoration: none; }
#secondary .widget a:hover { color: var(--gsc-accent); text-decoration: none; }

#secondary #searchform {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
}

#secondary #s {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #cfd8de;
  border-radius: 6px;
  background: #fff;
  background-image: none;
  box-shadow: none;
  font-size: 14px;
  color: var(--gsc-ink);
}

#secondary #searchsubmit { display: none; }

/* Beitrags-Navigation */
#nav-above, #nav-below { font-size: 14px; margin: 18px 0; }
#nav-above a, #nav-below a { color: var(--gsc-accent); text-decoration: none; }

/* Kommentare */
#comments { font-size: 15px; }
#comments h2, #comments h3 { color: var(--gsc-ink); }

/* Bilder in Beiträgen */
.entry-content .wp-caption { max-width: 100%; }

/* ---------------------------------------------------------------
   Mobile Feinschliff
   --------------------------------------------------------------- */
@media (max-width: 620px) {
  .gsc-page-banner { min-height: 150px; margin-bottom: 20px; }
  .gsc-page-banner-inner { padding: 18px 20px; }
  .gsc-page-banner-title { font-size: 23px; }
  #site-title a { font-size: 23px; }
  .entry-title, #content .page-title { font-size: 26px; }
  .entry-content h2 { font-size: 20px; }
  #secondary .widget { padding: 16px; }
}

/* ---------------------------------------------------------------
   Beitragsübersicht / Einzelbeiträge
   --------------------------------------------------------------- */
.gsc-page-header {
  margin: 0 0 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gsc-line);
}

.gsc-page-header .page-title { margin: 0; }

.gsc-page-sub {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--gsc-ink-soft);
}

body.single .entry-header,
body.single .entry-content,
body.single .entry-meta,
body.single .entry-utility,
body.single #comments {
  max-width: 720px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Seiten ohne Seitenleiste (z. B. Gastflüge) linksbündig ausrichten */
body.page-id-1840 .entry-header,
body.page-id-1840 .entry-content,
body.page-id-1840 .entry-meta {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 760px;
}

/* ---------------------------------------------------------------
   Bildbanner auf Unterseiten
   --------------------------------------------------------------- */
.gsc-page-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 210px;
  margin: 0 0 28px;
  border-radius: var(--gsc-radius);
  overflow: hidden;
  background: #1b2b38 center 62% / cover no-repeat;
}

.gsc-page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 30, 0.25) 0%, rgba(0,0,0,0) 40%, rgba(10, 20, 30, 0.80) 100%);
}

.gsc-page-banner-inner {
  position: relative;
  z-index: 2;
  padding: 26px 30px;
}

.gsc-page-banner-title {
  margin: 0;
  font-size: 31px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.gsc-page-banner .gsc-kicker { margin: 0 0 10px; }

/* ---------------------------------------------------------------
   Einspaltiges Layout (keine Seitenleiste mehr)
   --------------------------------------------------------------- */
#secondary { display: none !important; }

body:not(.home) #primary { width: 100%; }

body:not(.home) #content,
body:not(.home) #primary #content {
  width: 100%;
  margin: 0;
}

body:not(.home) .entry-content,
body:not(.home) .entry-header,
body:not(.home) .entry-meta,
body:not(.home) #comments,
body:not(.home) .gsc-page-header {
  max-width: 780px;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body:not(.home) .entry-content img {
  max-width: 780px;
}

.gsc-page-banner { max-width: 100%; }

/* Beitragsliste (/aktuelles/) etwas breiter */
body.blog .entry-content,
body.blog .entry-header,
body.blog .entry-meta { max-width: 780px; }
