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

/* THEME TWEAKS  */
ol, ul:not(#menu-hauptmenue):not(#menu-footer_menue) {
  margin: 0 0 1.5em 1em !important;
}
/* 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;
}
.wp-block-table td, .wp-block-table th {
  text-align: left;
  vertical-align: top !important;
  border: 1px solid rgb(201, 201, 201);
}
/* 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%;
   
    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: clamp(1.125rem, 1.0673rem + 0.2564vw, 1.375rem);
  --fluid-h1-font: clamp(1.875rem, 1.2981rem + 2.5641vw, 4.375rem);

  --h2-min-font: 1.375rem;
  --h2-max-font: 3.438rem;
  --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.188rem;
  --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 { 
  background-color: #000;
}
.gb-site-header.header-sticky .menu-item { 
  color: white ;
}
.gb-site-header.header-sticky .menu-item:is(:hover, :focus-within) { 
  color: var(--brand-primary) ;
}
.gb-site-header, .header-sticky {
    z-index: 100000;
}

#menu-hauptmenue .menu-item {
    position: relative;
}
#menu-hauptmenue .gb-menu-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    line-height: 130px;
}
.header-sticky #menu-hauptmenue .gb-menu-link {
    line-height: 60px;
}
/* Linie */
#menu-hauptmenue .gb-menu-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--brand-primary);
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

/* Hover */
#menu-hauptmenue .menu-item:hover .gb-menu-link::after {
    width: 100%;
}

/* Aktiver Menüpunkt */
#menu-hauptmenue .current-menu-item .gb-menu-link::after {
    width: 100%;
}


@media (max-width: 950px) {
  .logo-rma {
    max-width: 100% !important;
    height: 60px !important;
  }
  .gbp-section {
    margin-top: 0px !important;
  }
  .header_nav {
    order: 1 !important;
  }
  .header_logo {
    order: 2 !important;
  }
  .header_empty {
    order: 3 !important;
  }
}


.header_nav







.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);
}







@media (max-width: 765px) {
    .offer_grid .offer_col {
        margin-top: 30px;
    }
    .offer_grid .offer_col:first-child {
        margin-top: -100px !important;
    }
}
@media (max-width: 1024px) {
    .offer_grid .offer_col:nth-child(3) {
       /* margin-top: auto; */
       margin-top: 30px;
    }
}
.offer_col {
  transform-style: preserve-3d;
  transition: box-shadow 0.2s ease;
}
.offer_col:hover {
  box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

#menu-footer_menue li:last-child a {
    border-right: 0px solid;
    padding-right: 0px ;
}

.site-footer {
  background: var(--neutral-300);
}




