* {
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

body {
    background: #ffffff;
    color: #2e3b63;
    min-height: 100%;
    display: flex;
    padding: 0;
    margin: 0;
}

.page {
    display: flex;
    flex: auto;
    flex-direction: column;
    min-height: 100%;
    text-align: left;
}

.header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: nowrap;
    background-color: #abbfe4;
    padding: .5em 1em;
}

.header .left {
    /*outline: 1px solid red;*/
    flex: 0 0 auto;
    min-width: 0;
    text-align: left;
    margin: 0;
    padding: 0.0rem;
    min-width: 0;
}

.header .right {
    /*outline: 1px solid green;*/
    flex: 0 0 auto;
    text-align: right;
    margin: 0;
    min-width: 0;
    padding: 0.0rem;
}

.header h1 {
    /*outline: 1px solid orange;*/
    margin: 0;
    font-size: clamp(1.3rem, 2.5vw, 4.0rem);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;

}

.header h2 {
    margin: 0.15em 0 0 0;
    font-size: clamp(1.3rem, 1.75vw, 2.5rem);
    line-height: 0.75;
    white-space: normal;
}

.header .right img {
    /*outline: 1px solid brown;*/
    display: block;
    width: auto;
    height: clamp(10px, 6vw, 130px);
    max-width: 22vw;
}

.navbar {
    order: 3;
    flex: none;
    text-align: left;
    background-color: #2e3b63;
    color: #abbfe4;
    padding: 0.5em 1.0em 0.5em 1.0em;
}

.navbar form {
    display: inline;
}

table.index {
    height: 100%;
    width: 100%;

    font: inherit;
    font-size: clamp(0.2rem, 1.5em, 1.5em);
}

/* Style the navigation bar links */
.navbar a.asLink, button.asLink, input[type=button].asLink, input[type=submit].asLink {
    border: none;
    outline: none;
    color: #abbfe4;
    background-color: #2e3b63!important;
    background: none!important;
    appearance: none;
    cursor: pointer;
    display: inline;
    font: inherit;
    margin: 0!important;
    padding: .5em .5em;
    outline-offset: 0;
    text-decoration: underline;
    text-align: center;
    border-radius: inherit;
}

/* Change color on hover */
.navbar a.asLink:hover, button.asLink:hover, input[type=button].asLink:hover, input[type=submit].asLink:hover {
    border: none;
    outline: none;
    color: #2e3b63;
    background-color: #abbfe4!important;
    appearance: none;
    cursor: pointer;
    display: inline;
    font: inherit;
    margin: 0!important;
    padding: .5em .5em;
    outline-offset: 0;
    text-decoration: underline;
    text-align: center;
    border-radius: inherit;
}

.main {
    order: 4;
    flex: auto;
    overflow-y: auto;
    padding: 0.5em 1.0em 0.5em 1.0em;
}

.main img {
    max-width: 100%;
    width: 300px;
}

.main a#email::after {
    content: var(--email-domain, "@hartfuss.de");
}

.footer {
    order: 5;
    display: flex;
    flex-direction: row;
    flex: none;
    background-color: #abbfe4;
    text-align: right;
    padding: 0.4em 1.0em 0.4em 1.0em;
    margin: 0px;
    font-size: clamp(0.2rem, 0.8em, 0.8em);
}

.footer .left {
    order: 6;
    text-align: left;
    margin-top: auto;
}

.footer .left img {
    border: 0;
    height: 17px;
}

.footer .right {
    order: 7;
    flex-grow: 1;
    text-align: right;
    vertical-align: bottom;
    padding: 0;
}

.intro{
  display: block;
}

.intro::after {
  content: "";
  display: block;
  clear: both;
}

/* Bild-Spalte */
.intro-photo{
    float: right;
    width: clamp(120px, 18vw, 320px);
    margin: 0 0 0.8em 1.2em;
}

/* Bild hübsch + responsiv */
.intro-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* Caption dezenter */
.intro-photo figcaption{
    margin-top: 0.25rem;
    font-size: 0.72rem;
    text-align: right;
    opacity: 0.75;
    color: #555;
}

.intro p {
    margin-top: 0;
    line-height: 1.45;
    text-align: justify;
    hyphens: auto;
    font-size: clamp(0.7rem, 1.3vw, 1.7rem);
}

.external-note {
    width: 60%;
    vertical-align: middle;
    margin-top: 1.5em;
    padding: .8em 1em;
    background: #eef3ff;
    border-left: 4px solid #2e3b63;
    font-size: clamp(0.3em, 1.2vw, 1.0em);
}

.external-note a {
    font-weight: bold;
}

.domain-info {
    /*outline: 1px solid pink;*/
    font-size: clamp(0.2em, 1.2vw, 0.8em);
}

.lang-switch a.active{
    font-weight: bold;
    text-decoration: none;
}
