/*
Theme Name: Zur Trotzburg – Neuaufbau
Theme URI: https://www.trotzburg.de/
Description: Individuelles Block-Theme mit lokaler Einrichtung aus dem historischen Webseitenarchiv.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: trotzburg-neu
*/
body{overflow-wrap:break-word} .trotz-header{border-bottom:3px solid #a88b55} .trotz-header a,.trotz-footer a{color:#f5f1e8;text-decoration:none} .trotz-header a:hover,.trotz-footer a:hover{text-decoration:underline} .trotz-header .wp-block-navigation__responsive-container.is-menu-open{background:#203b4b;color:#f5f1e8} .wp-block-post-content img{max-width:100%;height:auto} .wp-block-post-content figure.wp-block-image{text-align:center} .wp-block-post-content table{border-collapse:collapse;max-width:100%;width:100%;font-size:.95em} .wp-block-post-content td,.wp-block-post-content th{padding:.5em;border:1px solid #d5cdbd;vertical-align:top;overflow-wrap:anywhere} .wp-block-post-content table img{height:auto;max-width:100%} .wp-block-post-content .wp-block-separator{border:0;background:#a88b55;height:3px;width:120px;margin:1.5rem auto} .wp-block-post-content p{max-width:74ch;margin-inline:auto} .trotz-main{min-height:45vh} .trotz-home .wp-block-image img{width:min(100%,650px)} .trotz-home .wp-block-post-content p{max-width:66ch} .trotz-footer{border-top:3px solid #a88b55} a:focus-visible,button:focus-visible{outline:3px solid #a88b55;outline-offset:4px} @media(max-width:600px){.wp-block-post-content table{display:block;overflow-x:auto}.wp-block-post-content td{min-width:5rem}.trotz-header .wp-block-navigation{justify-content:center}}


/* Kompakte Kopfzeile fuer Smartphones */

@media (max-width: 599px) {

  .trotz-header {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 6px !important;
    padding: 12px !important;
  }

  .trotz-header .wp-block-site-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 !important;
    text-align: center;
    font-size: clamp(20px, 6vw, 30px) !important;
  }

  .trotz-header .wp-block-navigation {
    grid-column: 3;
    grid-row: 1;
    margin: 0 !important;
    justify-content: center;
  }

  .trotz-header .trotzburg-zb-wrap,
  .trotz-header .wp-block-shortcode {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
  }

  .trotz-header a.trotzburg-zb-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 0 !important;
  }

  .trotz-header a.trotzburg-zb-link::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

/* Tabellenoptimierung fuer Smartphones */

@media (max-width: 599px) {

  .wp-block-post-content table {
    max-width: 100%;
    table-layout: auto !important;
    overflow-x: auto;
    font-size: 15px;
    line-height: 1.4;
  }

  .wp-block-post-content td,
  .wp-block-post-content th {
    min-width: 0 !important;
    height: auto !important;
    padding: 4px 6px !important;
    line-height: 1.4 !important;
  }
}

/* Beaufort-Skala PC und Smartphone */

.page-id-112 .wp-block-post-content tr:first-child > :first-child {
  min-width: 70px !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {

  .page-id-112 .wp-block-post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    table-layout: auto !important;
    font-size: 15px;
  }

  .page-id-112 .wp-block-post-content td,
  .page-id-112 .wp-block-post-content th {
    min-width: 45px !important;
    height: auto !important;
    padding: 5px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.4 !important;
  }

  .page-id-112 .wp-block-post-content td p,
  .page-id-112 .wp-block-post-content th p {
    margin: 0 !important;
    line-height: 1.4 !important;
  }

  .page-id-112 .wp-block-post-content tr:first-child > :first-child {
    min-width: 70px !important;
  }

  .page-id-112 .wp-block-post-content tr:first-child > :nth-child(2) {
    min-width: 100px !important;
  }

  .page-id-112 .wp-block-post-content tr:first-child > :last-child {
    min-width: 180px !important;
  }
}
/* Anordnung der beiden Beaufort-Links */

.trotz-beaufort-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}

@media (max-width: 599px) {
  .trotz-beaufort-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}


/* Historisches Startseitenbild stabilisieren */
.trotz-home figure.wp-block-image:has(> img[src$="logo_trotz.gif"]) {
    width: min(100%, 650px);
    margin-inline: auto;
}
.trotz-home img[src$="logo_trotz.gif"] {
    aspect-ratio: 550 / 243;
    height: auto;
}