/*
 Theme Name:   BTH
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     generatepress
 Version:      0.1
*/

/* THEME TWEAKS  */

/* Header padding with responsive clamp */
.site-header {
    padding-inline: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

/* Typography wrapping */
/* Balance headings and elements with `.balance` class */
:is(h1, h2, h3, h4, h5, h6),
.balance {
    text-wrap: balance;
}

/* Use pretty wrapping for body text elements */
p,
blockquote,
li {
    text-wrap: pretty;
}

/* Remove bottom margin from final paragraph */
p:last-child:last-of-type {
    margin-bottom: 0px;
}

/* UTILITIES */

/* Line Clamping */
.line-limit-3,
.line-limit-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-limit-3 {
    -webkit-line-clamp: 3;
}

.line-limit-2 {
    -webkit-line-clamp: 2;
}

/* Visually Hidden (accessible to screen readers) */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Smooth Transition Utility */
.transition {
    transition: all 0.25s ease-in-out;
}


/*  GP MENU ACCESSIBILITY TWEAKS */

#site-navigation ul.sub-menu {
    display: block;
}

#site-navigation li:hover .gp-icon svg {
    transform: rotate(180deg);
}

#site-navigation li:hover .sub-menu {
    visibility: visible;
}
/* 
   nur fuer Screenreader zu sehen
*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* 
   STRETCH LINK (from Bootstrap)
   Source: https://youtu.be/HBriBrnRlQE?si=DLiSXEiBHt6lw91l
   Note: Only use ONE link per card or this breaks!
*/

.stretch-link {
    position: relative;
}

.stretch-link a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.stretch-link a:is(:focus-visible)::after {
    outline: 2px solid;
}

.stretch-link a:is(:hover, :focus) {
    outline: none;
}

/*  CONTAINER WRAPPER */

.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
    background: var(--neutral-50);
}

/*  TYPOGRAPHY  */

/* Font Family Utilities */
.ff-body {
    font-family: var(--gp-font--body);
}

.ff-heading {
    font-family: var(--gp-font--headings);
}

/* Heading and utility class font assignment */
h1, h2, h3, h4, h5, h6,
[class^="fs-"] {
    font-family: var(--gp-font--headings);
}

.fs-p {
    font-family: var(--gp-font--body);
}
:root {
  --fluid-body-font-min: 1.125rem; /* 18 */
  --fluid-body-font-max: 1.375rem; /* 22 */
  --fluid-body-font: clamp(var(--fluid-body-font-min), 0.97rem + 0.129vw, var(--fluid-body-font-max));

  --h1-min-font: 1.875rem; /* 30 */
  --h1-max-font: 5rem; /* 80 */
  --fluid-h1-font: clamp(var(--h1-min-font), 0.352rem + 3.873vw, var(--h1-max-font));

  --h2-min-font: 1.375rem;
  --h2-max-font: 3.125rem; /* 50 */
  --fluid-h2-font: clamp(var(--h2-min-font), 0.874rem + 2.136vw, var(--h2-max-font));

  --h3-min-font: 1.25rem;
  --h3-max-font: 2.5rem; /* 40 */
  --fluid-h3-font: clamp(var(--h3-min-font), 1.022rem + 0.971vw, var(--h3-max-font));
}

body {
  font-size: var(--fluid-body-font);
}

h1, .fs-h1 {
    font-size: var(--fluid-h1-font);
}

h2, .fs-h2 {
    font-size: var(--fluid-h2-font);
}

h3, .fs-h3 {
    font-size: var(--fluid-h3-font);
}

p, .fs-p {
    font-size: var(--fluid-body-font);
}

/* Navigation */

.pill {
  align-items: center;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-left-style: solid;
  border-left-width: 1px;
  border-right-style: solid;
  border-right-width: 1px;
  border-top-style: solid;
  border-top-width: 1px;
  color: var(--neutral-700);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease-in-out 0s;
  border-radius: 100vw;
  padding: .5em 1.5em;
}

.gb-site-header.header-sticky {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #7f7979;
}

.mylink::after {
  content: '';
  display: inline-block;
  width: 1.1em;              /* skaliert mit der Schrift */
  height: 1.1em;
  margin-left: 0.35em;
  vertical-align: middle;
  /* Icon-Farbe = Textfarbe */
  background-color: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-420.5 297.5 25 25'><g transform='translate(-412 -902)'><g transform='translate(7.755 1.433)'><line fill='none' stroke='white' stroke-width='2' stroke-linecap='round' x1='-10.397' y1='1210.567' x2='1.388' y2='1210.567'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M-3.423,1205.758l4.81,4.81l-4.81,4.81'/></g><g transform='translate(412 902)'><circle fill='none' cx='-408' cy='310' r='12.5'/><circle fill='none' stroke='white' stroke-width='2' cx='-408' cy='310' r='11.5'/></g></g></svg>");
          mask: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-420.5 297.5 25 25'><g transform='translate(-412 -902)'><g transform='translate(7.755 1.433)'><line fill='none' stroke='white' stroke-width='2' stroke-linecap='round' x1='-10.397' y1='1210.567' x2='1.388' y2='1210.567'/><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M-3.423,1205.758l4.81,4.81l-4.81,4.81'/></g><g transform='translate(412 902)'><circle fill='none' cx='-408' cy='310' r='12.5'/><circle fill='none' stroke='white' stroke-width='2' cx='-408' cy='310' r='11.5'/></g></g></svg>");
}


/* Kontaktformular */
.contact-form, .cf7-autogrow {
    border-bottom: 2px solid var(--brand-primary) !important;
    border-left: 0px solid !important;
    border-right: 0px solid !important;
    border-top: 0px solid !important;
}
.contact-form {
    padding: clamp(0.625rem, 0.2067rem + 1.859vw, 2.4375rem) 0 clamp(0.625rem, 0.3693rem + 1.1364vw, 1.25rem) 0 !important;
}
.cf7-autogrow {
    padding: clamp(0.625rem, 0.2067rem + 1.859vw, 2.4375rem) 0 20px 0 !important;
}
.kontaktformtext {
    padding: 0 clamp(0rem, -0.4327rem + 1.9231vw, 1.875rem);
    margin-bottom: clamp(1.25rem, 0.483rem + 3.4091vw, 3.125rem);
}
.kontaktformtext_1 {
    display: flex;
    column-gap: clamp(1rem, 0.625rem + 1.6667vw, 2.625rem);
}
.wpcf7-spinner {
    display: none;
}
/* Grundlegendes Styling für das Formular */
.wpcf7-form {
 
  margin: 0 auto;
  box-sizing: border-box;
}

/* Container für die beiden Input-Felder */
.kontaktformtext_1 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

/* Styling für alle Input-Felder und Textarea */
.wpcf7-form-control.contact-form,
.wpcf7-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 0px;
  font-family: inherit;
  font-size: clamp(1.0625rem, 0.9904rem + 0.3205vw, 1.375rem);
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

/* Hover und Focus Effekte */
.wpcf7-form-control.contact-form:focus,
.wpcf7-textarea:focus {
  outline: none;
  border-color: #e7713e;
}

/* Spezifisches Styling für die beiden Input-Felder im Desktop-Layout */
.kontaktformtext_1 .wpcf7-form-control-wrap {
  flex: 1;
  min-width: 0; /* Wichtig für korrektes Flexbox-Verhalten */
}

/* Textarea Styling */
.wpcf7-form-control-wrap[data-name="textarea-695"] {
  display: block;
  width: 100%;
  margin-bottom: clamp(1.25rem, 0.774rem + 2.1154vw, 3.3125rem);
}

/* Senden Button Styling */
.wpcf7-submit.btn-black {
  width: 100%;
  padding: 15px 30px;
  background-color: #000;
  color: white;
  border: none;
  font-size: clamp(1.125rem, 1.0962rem + 0.1282vw, 1.25rem);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.wpcf7-submit.btn-black:hover {
  background-color: #333;
}

/* Responsive Design für Mobile */
@media screen and (max-width: 768px) {
  /* Formular nimmt gesamte Breite ein auf Mobilgeräten */
  .wpcf7-form {
    width: 100%;
  }
  
  /* Input-Felder untereinander anordnen */
  .kontaktformtext_1 {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Sicherstellen, dass jedes Input-Feld volle Breite hat */
  .kontaktformtext_1 .wpcf7-form-control-wrap {
    width: 100%;
  }
}

/* Optional: Für sehr kleine Bildschirme */
@media screen and (max-width: 480px) {

  
  .wpcf7-form-control.contact-form,
  .wpcf7-textarea {
    padding: 10px 12px;
    font-size: 18px;
  }
  
  .wpcf7-submit.btn-black {
    padding: 12px 20px;
  }
}

/* Verbesserungen für bessere Bedienbarkeit */
.wpcf7-form-control.contact-form::placeholder,
.wpcf7-textarea::placeholder {
  color: #999;
}

/* Accessibility: Bessere Kontraste im Fokus */
.wpcf7-form-control.contact-form:focus-visible,
.wpcf7-textarea:focus-visible {
  box-shadow: 0 0 0 0px rgba(242, 128, 124, 0.3);
}
