*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
}

.page {
    position: relative;
    width: calc(100% - 56px);
    max-width: 1240px;
    margin: 12px auto;
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}


/* Header */

.header {
    position: relative;
    display: flex;
    align-items: center;
    height: 150px;
    background: #fff;
}

.header__logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 300px;
    height: 150px;
    flex: 0 0 400px;

    overflow: hidden;
    background: #fff;
}

.header__logo img {
    display: block;
    width: 330px;
    height: auto;
    max-height: 140px;
}

.header__name {
    padding-left: 160px;
    color: #858585;
    font-size: 20px;
    font-weight: 300;
    white-space: nowrap;
}

.header__name strong {
    font-weight: 700;
}

.header__login {
    display: inline-flex;
    align-items: center;

    margin-left: auto;
    margin-right: 34px;

    padding: 7px 10px;

    border-radius: 5px;

    background: #fff;
    color: #fff;

    font-size: 16px;
    text-decoration: none;
}

.header__login:hover,
.header__login:focus {
    background: #7f1167;
}

.header__login-icon {
    margin-right: 5px;
}


/* Hero */

.hero {
    position: relative;
    height: 750px;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}



/* Baustellenmeldung */

.hero__message {
    position: absolute;
    z-index: 2;

    top: 100px;
    left: 45%;

    width: min(520px, calc(100% - 100px));

    transform: translateX(-20%);
    text-align: center;
}

.hero__message-inner {
    display: inline-block;

    padding: 14px 30px;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.hero__message h1 {
    margin: 0 0 5px;

    color: #c00611;

    font-size: 36px;
    font-weight: 400;
}

.hero__message p {
    margin: 0;

    color: #000;
   font-size: 20px;
  line-height: 28px;
}


/* Motto */
.motto {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 50px;
	background-color: #ececec;
}
.motto_img {
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Footer Navigation */

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 50px;

    background: #e3000f;
   color: #fff;
}

.footer-nav a {
    display: flex;
    align-items: center;

    min-height: 30px;

    padding: 0 20px;


    color: #fff;

    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.footer-nav a:last-child {
    border-right: 0;
}

.footer-nav a:hover,
.footer-nav a:focus {
    text-decoration: underline;
}


/* Social Navigation */
.social-nav {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.social-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;
    border-radius: 60%;

    background: #fff;
    color: #000;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

/* SVG-Icons kleiner */
	.social-nav a svg {
    width: 22px;
    height: 22px;
    margin: 0 !important;
    fill: currentColor;

    transition: transform 0.2s ease;
}

/* Hover: roter Kreis, weißes Icon */
.social-nav a:hover,
.social-nav a:focus-visible {
    background: #e3000f;
    color: #fff;
}

/* Optional: Icon beim Hover leicht vergrößern */
.social-nav a:hover svg {
    transform: scale(1.1);
}

/* Tablet */

@media (max-width: 850px) {

    .page {
        width: 100%;
        margin: 0;
    }

    .header__name {
        padding-left: 18px;
        font-size: 17px;
    }

    .header__login {
        margin-right: 15px;
    }

.hero__message {
 
  top: 170px;
  left: 30%;

  transform: translateX(-20%);
}

    .hero__claim {
        right: 0;
        left: 0;
        font-size: 25px;
    }

    .footer-nav {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .footer-nav a {
        padding: 6px 12px;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .header {
        height: 120px;
    }

    .header__logo {
        width: 200px;
        height: 110px;
        flex-basis: 220px;
    }

    .header__logo img {
        width: 180px;
    }

    .header__name {
        padding-left: 30px;
        font-size: 11px;
        white-space: normal;
    }

    .header__name span {
        display: block;
    }


    .hero {
        height: 560px;
    }

    .hero__message {
        top: 20px;
         left: 21%;
        width: calc(100% - 15px);
    }

    .hero__message-inner {
       padding: 10px;
    }

    .hero__message h1 {
        font-size: 22px;
    }
	.social-nav a {
			  width: 44px;
			  height: 44px;
			  border-radius: 44%;
}
      /* Optional: Icon beim Hover leicht vergrößern */
		.social-nav a:hover svg {
			transform: scale(1);
		}
	.motto {
	  padding: 16px 10px;

	}
}


@media (max-width: 410px) {

    .header__name {
        padding-left: 10px;
        font-size: 11px;
        white-space: normal;
    }

}


/* Impressumsseite */
.hero.hero--impressum {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.hero.hero--impressum .hero__message.hero__message--impressum {
    position: relative;
    z-index: auto;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    width: 100%;
    max-width: none;

    transform: none;

    padding: 50px 60px;

    text-align: left;
}

.hero.hero--impressum .hero__message-inner {
    display: block;

    width: 100%;
    max-width: 850px;

    margin: 0 auto;
    padding: 0;

    background: transparent;
    box-shadow: none;
}

/* Überschriften nicht vom normalen Hero-Styling übernehmen */
.hero.hero--impressum .hero__message h1 {
    margin: 0 0 30px;

    color: #000;

    font-size: 30px;
    font-weight: 400;
}

.hero.hero--impressum .hero__message h2 {
    margin: 32px 0 12px;

    color: #333;

   font-size: 20px;
	font-weight: 600;
}

.hero.hero--impressum .hero__message h3 {
    margin: 25px 0 10px;

    color: #D00205;

    font-size: 22px;
    font-weight: 700;
}

.hero.hero--impressum .hero__message p {
    max-width: none;
    margin: 0 0 16px;

    color: #000;
font-size: 18px;
  line-height: 28px;
  padding-bottom: 24px;
}

.hero.hero--impressum .hero__message a {
    color: #000;
}
