/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}



/* BPS CSS - CF7- Bewerber Formular
 * 
 * 6 Spalten
 *
*/
.grid-form{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px 12px;
}
.grid-form .form-field{ grid-column:span 6; }

/* Spalten: Straße/Hausnr/PLZ/Ort */
.grid-form .form-field:has(input[name="strasse"]){ grid-column:span 5; }
.grid-form .form-field:has(input[name="hausnummer"]){ grid-column:span 1; }
.grid-form .form-field:has(input[name="plz"]){ grid-column:span 2; }
.grid-form .form-field:has(input[name="ort"]){ grid-column:span 4; }

/* =========================
   Labels links (Standard)
   ========================= */
.grid-form .form-field > p{
  margin:0;
  display:grid;
  grid-template-columns:160px 1fr; /* einheitliche Label-Spalte */
  align-items:center;
  column-gap:8px;
}
.grid-form .form-field > p > br{ display:none !important; }

.grid-form .form-field > p > label{
  margin:0;
  text-align:left;
  font-weight:500;
  font-size:.95rem;
  color:#222;
  white-space:nowrap;
  padding-right:8px;
}

/* Eingaben */
.grid-form .wpcf7-form-control-wrap{ width:100%; display:block; }
.grid-form input,
.grid-form select,
.grid-form textarea{
  width:100%;
  padding:6px 8px;
  box-sizing:border-box;
  border:1px solid #ccc;
  border-radius:4px;
  font-size:.95rem;
  line-height:1.3;
}
.grid-form input:focus,
.grid-form select:focus,
.grid-form textarea:focus{
  outline:none;
  border-color:#2ecc71;
  box-shadow:0 0 2px rgba(46,204,113,.4);
}

/* Hausnummer & Ort: Label direkt an Nachbarfeld anschließen */
.grid-form .form-field:has(input[name="hausnummer"]) > p,
.grid-form .form-field:has(input[name="ort"]) > p{
  grid-template-columns:auto 1fr;
  column-gap:6px;
}
.grid-form .form-field:has(input[name="hausnummer"]) > p > label,
.grid-form .form-field:has(input[name="ort"]) > p > label{
  text-align:right;
  white-space:nowrap;
  padding-right:0;
}

/* =========================
   VERTRAGSART (fieldset/legend)
   ========================= */
.grid-form fieldset.form-field{
  grid-column:span 6;
  margin:0; padding:0; border:0;
  display:grid !important;
  grid-template-columns:160px 1fr; /* Legend wie Label-Spalte */
  column-gap:12px;
  align-items:start;
}

/* Legend wie Label, rechtsbündig */
.grid-form fieldset.form-field > legend{
  grid-column:1 / 2;
  margin:0;
  padding:0 8px 0 0;
  text-align:right;          /* rechtsbündig */
  font-weight:500;
  font-size:.95rem;
  color:#222;
  white-space:nowrap;
  line-height:1.3;
}

/* Checkbox-Container rechts daneben, in EINER Zeile */
.grid-form fieldset.form-field > p{
  grid-column:2 / 3;
  margin:0;
}
.grid-form fieldset.form-field .wpcf7-form-control.wpcf7-checkbox{
  display:flex !important;
  flex-wrap:nowrap;           /* eine Zeile halten */
  gap:100px;                   /* mehr Abstand zwischen Checkboxen */
  align-items:center;
}
.grid-form fieldset.form-field .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0;
}

/* =========================
   Submit-Button (volle Breite)
   ========================= */
.grid-form .submit-button{
  grid-column:span 6;
}
.grid-form .submit-button input[type="submit"]{
  background:#222;
  color:#fff;
  border:none;
  padding:12px 15px;
  width:100%;
  border-radius:4px;
  cursor:pointer;
  transition:background .25s ease;
  font-size:1rem;
  font-weight:500;
}
.grid-form .submit-button input[type="submit"]:hover{
  background:#2ecc71;
}

/* =========================
   Mobile
   ========================= */
@media (max-width:768px){
  .grid-form{
    grid-template-columns:1fr;
    gap:10px;
  }

  /* Labels wieder über Feldern */
  .grid-form .form-field > p{
    grid-template-columns:1fr;
  }
  .grid-form .form-field > p > label{
    text-align:left;
    margin-bottom:3px;
    padding-right:0;
  }

  /* Vertragsart mobil umbrechen */
  .grid-form fieldset.form-field{
    grid-template-columns:1fr;
  }
  .grid-form fieldset.form-field > legend{
    text-align:left;
    margin-bottom:6px;
    padding-right:0;
  }
  .grid-form fieldset.form-field .wpcf7-form-control.wpcf7-checkbox{
    flex-wrap:wrap;
    row-gap:8px;
    gap:20px; /* etwas enger mobil */
  }
}

