/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://example.com/
Description: Child Theme für Twenty Twenty-Five
Author: CSU OV Himmelstadt
Template: twentytwentyfive
Version: 1.0
*/

/* Eigene Styles hier */

@font-face {
    font-family: "Polo";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: 
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22L.woff") format("woff"),
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22L.ttf") format("truetype");
}

@font-face {
    font-family: "Polo";
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: 
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22Li.woff") format("woff"),
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22Li.ttf") format("truetype");
}

@font-face {
    font-family: "Polo";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: 
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22R.woff") format("woff"),
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22R.ttf") format("truetype");
}

@font-face {
    font-family: "Polo";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: 
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22Ri.woff") format("woff"),
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22Ri.ttf") format("truetype");
}

@font-face {
    font-family: "Polo";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: 
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22M.woff") format("woff"),
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22M.ttf") format("truetype");
}

@font-face {
    font-family: "Polo";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: 
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22B.woff") format("woff"),
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22B.ttf") format("truetype");
}

@font-face {
    font-family: "Polo";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: 
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22BL.woff") format("woff"),
        url("/wp-content/themes/twentytwentyfive-child/fonts/P22BL.ttf") format("truetype");
}

body {
    font-family: "Polo", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 900;
}

.wp-block-navigation {
    position:relative;
    padding: .2em 1em .2em .7em;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

nav.top-nav {
    top: 1.5em;
    background: linear-gradient(to right, #00649b, #0080c8);
}

nav.prime-nav {
    background: linear-gradient(to right, #3fa435, #95bb30);
}

.wp-block-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    right: calc(100% - .2em);
    width: 1.3em;
    height: 100%;
    background-color: #3fa435;
    clip-path: polygon(80% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
}
.wp-block-navigation.top-nav::before {
    background-color: #00649b;
}

.wp-block-navigation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 2em;
    height: 100%;
    background-color: #95bb30;
    z-index: -1;
}
.wp-block-navigation.top-nav::after {
    background-color: #0080c8;
}

nav.items-justified-right {
    position: absolute;
    right: 0;
    top: 4.1em;
}

nav.top-nav {
    position: absolute;
    right: 0;
    top: 1.5em;
}

.wp-block-navigation.prime-nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
    font-weight: 500;
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:focus {
    outline: none;
}

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
    text-decoration: none;
    font-weight: lighter;
}

.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container, 
.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container, 
.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container, 
.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container {
    left: 0;
    top: 1.5em;
    margin: 0 -.5em;
    border: none;
    background: #79b43299;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content {
    padding: .5em;
}

.wp-block-navigation ul ul li a span {
    color: #fff;
    font-weight: 300;
}

.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container, 
.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container, 
.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
    min-width: 10em;
}

body {
    background: url('/wp-content/uploads/2026/01/rauten-fahne-scaled.jpg');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-attachment: fixed;
}

main {
    margin-top: 0 !important;
}

.wp-site-blocks {
    width: 1200px;
    margin: auto;
    max-width: 100%;
    padding: 0 2em;
    background: #ffffff99;
    position:relative;
    z-index: 1;
}

figure.wp-block-post-featured-image {
    width: calc(var(--wp--style--global--content-size) * 1.5);
    max-width: 100%;
}

:root :where(.is-layout-flow) > h1:first-child {
    margin-block-start: 1em;
}

.wp-block-post .wp-block-group {
    padding: 2em 0 !important;
    border-bottom: 1px solid #999;
}

figure.profile {
    width: 8em;
    max-width: 100%;
}

@media screen and (max-width: 782px) {
    nav.top-nav {
        display: none;
    }
    nav.prime-nav {
        top: 5em;
    }
    .wp-block-navigation::before,
    .wp-block-navigation::after {
        display: none;
    }
    .wp-site-blocks {
        padding: 0;
    }
	.blog main {
		margin: 0 1em;
	}
	
	.wp-block-navigation .wp-block-navigation__container .wp-block-navigation-item__content.wp-block-navigation-item__content,
	.wp-block-navigation ul ul li a span {
		color: #fff !important;
	}

	.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
		font-size: 1.5em;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
		padding: 1em 0 0;

	}

	.wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
		background: linear-gradient(to right, #3fa435, #95bb30);    
	}
}

/* Grundlayout */
.wpcf7-form {
  max-width: 900px;
  margin: 0 auto;
  font-family: inherit;
}

/* Überschriften */
.wpcf7-form h2 {
  margin-bottom: 1rem;
}

.wpcf7-form h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Labels */
.wpcf7-form label {
  display: block;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

/* Textfelder – Material Design Stil */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fafafa;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Fokus-Effekt */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #1976d2;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

/* Platzhalter */
.wpcf7-form ::placeholder {
  color: #999;
}

/* Checkbox (Acceptance) */
.wpcf7-form input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}

/* Submit-Button */
.wpcf7-form input[type="submit"] {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover {
  background: #125aa0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Hinweisboxen */
.important-note {
  border-left: 5px solid #d32f2f;
  background: #fff5f5;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 16px;
  border-radius: 6px;
}

/* Listen im Vertragsteil */
.wpcf7-form ul {
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

.wpcf7-form ul li {
  margin-bottom: 8px;
}

/* Trennlinien */
.wpcf7-form hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Fehlermeldungen */
.wpcf7-not-valid {
  border-color: #d32f2f !important;
}

.wpcf7-not-valid-tip {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 4px;
}

/* Erfolgs- & Fehlermeldung */
.wpcf7-response-output {
  border-radius: 6px;
  padding: 16px;
  font-size: 16px;
}

h3.request-button {
    background: #0080c8;
    color: #fff;
    padding: 0 .5em;
    border-radius: 5px;
}

h3.request-button:hover {
    opacity: .8;
}