/*
 Theme Name:   FLM
 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;
}


/* 
   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--finlandica);
}

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

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

.fs-p {
    font-family: var(--gp-font--finlandica);
}
:root {
  
  --fluid-body-font: clamp(1.125rem, 1.0673rem + 0.2564vw, 1.375rem);
/* 30 60 */
  --fluid-h1-font: clamp(1.875rem, 1.4423rem + 1.9231vw, 3.75rem);
/* 30 50 */
  --fluid-h2-font: clamp(1.875rem, 1.5865rem + 1.2821vw, 3.125rem);
/* 22 30 */
  --fluid-h3-font: clamp(1.375rem, 1.2596rem + 0.5128vw, 1.875rem);


  --dis: clamp(16px, -64.2353px + 6.4706vw, 60px);
}

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);
    font-family: var(--gp-font--finlandica);
}

/* 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: #ffffff;
}

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

/* Linie */
#menu-hauptmenue .gb-menu-link {
position: relative;
}
#menu-hauptmenue .gb-menu-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 3px;
    background: var(--brand-secondary);
    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 {
    
}




/* Very important for having a smooth transitions. */
.swiper-free-mode > .swiper-wrapper {
    transition-timing-function: linear !important;
}


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: system-ui, sans-serif;
  padding: 0;
}

img,
picture {
  max-width: 100%;
  display: block;
}



.wp-block-separator {
  border-top: 1px solid;
}

  /* Header Image Overlay Verlauf transparent → dunkel */
.header-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.3) 100%
  );
}

hr {
  background-color: rgba(0,0,0,.1);
  border: 0;
  height: 1px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.box::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;

}
.box_contact::after {
   background: linear-gradient(
    135deg,
    #c8e259 50%,
    white 50%
  ); 
}
.box_sprechzeiten::after {
   background: linear-gradient(
    135deg,
    #b697ce 50%,
    white 50%
  ); 
}
.box_news::after {
   background: linear-gradient(
    135deg,
    #8eb5bc 50%,
    white 50%
  ); 
}

.post-password-form {
text-align: center;
  margin: 50px;
  }

  .devider {
    background-color: rgba(255,255,255,0.4) !important;
    color: rgba(255,255,255,0.4) !important;
  }