<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
<head>
    <title>TimHartmann.de</title>

    <!--

      _______ _           _    _            _                                    _
     |__   __(_)         | |  | |          | |                                  | |
        | |   _ _ __ ___ | |__| | __ _ _ __| |_ _ __ ___   __ _ _ __  _ __    __| | ___
        | |  | | '_ ` _ \|  __  |/ _` | '__| __| '_ ` _ \ / _` | '_ \| '_ \  / _` |/ _ \
        | |  | | | | | | | |  | | (_| | |  | |_| | | | | | (_| | | | | | | || (_| |  __/
        |_|  |_|_| |_| |_|_|  |_|\__,_|_|   \__|_| |_| |_|\__,_|_| |_|_| |_(_)__,_|\___|


        Welcome to the source.
        I am always interested in exciting job offers, write me at:
        employ@timhartmann.de

    -->

    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <link rel="icon" type="image/png" href="./favicon.png">

    <style type="text/css">
        body {
            font-family: 'Atkinson Hyperlegible', sans-serif;
            background-color: white;
            overflow-x: hidden;
            min-height: 25em;
            margin: 0;
        }

        a {
            text-decoration: none;
        }

        hr {
            border: solid 1px lightgray;
        }
        .top {
            border-bottom: solid 2px #5FC6E8;
            position: absolute;
            top: 0em;
            background: white;
            width: 100%;
            padding-bottom: 1em;
        }

        .bottom {
            border-top: solid 2px #5FC6E8;
            position: fixed;
            bottom: 0em;
            background: white;
            width: 100%;
            padding-top: 1em;
        }

        .textContainer {
            width: 75%;
            margin-left: 15%;
        }

        #header-h1 {
            cursor: pointer;
        }

        .impressum {
            max-width: 20em;
        }

        .dsgvo {
            max-width: 20em;
            margin-left: 3em;
        }

        .flexContainer {
            width: 75%;
            margin-left: 15%;
            display: flex;
            justify-content: space-between;
        }
        @media only screen and (max-height: 800px),
        only screen and (max-width: 500px) {
            /* Blende den Spielbereich aus, wenn der Viewport zu klein ist */
            #gameContainer {
                display: none !important;
            }
            /* Wenn ein #gameContainer vorhanden ist, soll auch .seaLevel ausgeblendet werden */
            body:has(#gameContainer) .bottom, .top {
                border-bottom: none !important;
                border-top: none !important;
            }
        }


        @media only screen and (max-width: 600px) {
            .textContainer, .flexContainer {
                width: 100%;
                margin-left: 1em;
            }
        }

        @media only screen and (max-width: 350px) {
            .seaLevel {
                display: none;
            }

            body:has(:not(#gameContainer)) .bottom, .top {
                border-bottom: none;
                border-top: none;
            }
        }

        @media only screen and (max-height: 500px) {
            .seaLevel {
                display: none;
            }

            .bottom, .top {
                border-bottom: none;
                border-top: none;
            }
        }

        .seaLevel {
            position: absolute;
            width: 100vw;
            height: 100vh;
            top: 0%;
            background-color: lightblue;
            z-index: -1;
            overflow: hidden;
        }

        :root {
            --coilSize: 14px;
            --delayCount: 40ms;
            --scaleMe: 1;
            --scaleFlip: 1;
            --posFlip: 0;
        }

        .fish {
            position: absolute;
            top: -19%;
            left: 25%;
            width: 50%;
            height: 100%;
            filter: drop-shadow(calc(var(--coilSize) * 4) calc(var(--coilSize) / 3) 5px rgba(0, 0, 0, 0.3));
        }

        .fish .koiCoil {
            position: absolute;
            width: var(--coilSize);
            height: var(--coilSize);
            background-color: orangered;
            border-radius: 50%;
            top: 50%;
            left: 50%;
            margin-left: calc(var(--coilSize) / -2);
            margin-top: calc(var(--coilSize) / -2);
            transform: scale(var(--scaleMe), var(--scaleMe));
            filter: contrast(200%);
            offset-path: path("M11.7692 229.5C14.552 200.052 7.51901 171.858 -42.8757 170.644C-105.869 169.128 -131.294 76.612 -101.695 51.5872C-72.0955 26.5625 -24.6607 -50.7867 70.5883 51.5872C165.837 153.961 27.7073 131.211 33.0199 183.157C38.3326 235.102 90.3211 195.669 139.274 223.727C188.226 251.785 207.959 299.56 139.274 316.243C70.5883 332.926 41.3685 398.9 81.9726 419.754C122.577 440.608 222 478.524 222 419.754C222 372.738 222 242.432 222 183.157C219.091 129.948 175.78 30.8091 25.8099 59.9288C-161.652 96.3284 -30.3529 119.837 25.8099 141.07C81.9726 162.303 171.529 204.769 126.751 260.506C81.9726 316.243 101.326 362.501 139.274 373.496C177.222 384.492 170.012 464.495 70.5883 462.979C-28.835 461.462 -42.8757 393.015 -42.8757 373.496C-42.8757 238.288 11.7692 293 11.7692 240.506C11.7692 208.05 11.7692 237.336 11.7692 229.5Z");
            animation: fishAnim 20000ms linear infinite;
            box-shadow: calc(var(--coilSize) / -2) calc(var(--coilSize) / -10) 0 white inset;
        }

        .fish:nth-of-type(2) {
            transform-origin: top center;
            transform: scale(-1, 1);
            filter: drop-shadow(calc(var(--coilSize) * -4) calc(var(--coilSize) / 3) 5px rgba(0, 0, 0, 0.3));
        }

        .fish:nth-of-type(2) .koiCoil {
            background-color: white;
            box-shadow: calc(var(--coilSize) / -2) calc(var(--coilSize) / -10) 0 orangered inset;
        }

        .fish .koiCoil:nth-of-type(15), .fish .koiCoil:nth-of-type(14) {
            background-color: orangered;
        }

        .fish:nth-of-type(2) .koiCoil:nth-of-type(15), .fish:nth-of-type(2) .koiCoil:nth-of-type(14) {
            background-color: white;
        }

        .fish .koiCoil:nth-of-type(15)::after {
            content: ":";
            position: absolute;
            color: black;
            font-weight: 800;
            text-align: center;
            line-height: 60%;
            font-size: calc(var(--coilSize) * 1.2);
        }

        .fish .koiCoil:nth-of-type(1)::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 50%;
            top: 25%;
            left: -100%;
            border-radius: var(--coilSize);
            background-color: white;
            transform-origin: center right;
            animation: backFlip 200ms ease-in-out alternate infinite;
        }

        .fish .koiCoil:nth-of-type(14) {
            --scaleMe: 1.2;
            animation-delay: calc(var(--delayCount) * 1);
        }

        .fish .koiCoil:nth-of-type(13) {
            --scaleMe: 1.35;
            animation-delay: calc(var(--delayCount) * 2);
        }

        .fish .koiCoil:nth-of-type(12) {
            --scaleMe: 1.55;
            animation-delay: calc(var(--delayCount) * 3);
        }

        .fish .koiCoil:nth-of-type(11) {
            --scaleMe: 1.75;
            animation-delay: calc(var(--delayCount) * 4);
        }

        .fish .koiCoil:nth-of-type(10) {
            --scaleMe: 1.9;
            animation-delay: calc(var(--delayCount) * 5);
        }

        .fish .koiCoil:nth-of-type(9) {
            --scaleMe: 2;
            animation-delay: calc(var(--delayCount) * 6);
        }

        .fish .koiCoil:nth-of-type(8) {
            --scaleMe: 2;
            animation-delay: calc(var(--delayCount) * 7);
        }

        .fish .koiCoil:nth-of-type(7) {
            --scaleMe: 2;
            animation-delay: calc(var(--delayCount) * 8);
        }

        .fish .koiCoil:nth-of-type(6) {
            --scaleMe: 1.9;
            animation-delay: calc(var(--delayCount) * 9);
        }

        .fish .koiCoil:nth-of-type(5) {
            --scaleMe: 1.75;
            animation-delay: calc(var(--delayCount) * 10);
        }

        .fish .koiCoil:nth-of-type(4) {
            --scaleMe: 1.55;
            animation-delay: calc(var(--delayCount) * 11);
        }

        .fish .koiCoil:nth-of-type(3) {
            --scaleMe: 1.35;
            animation-delay: calc(var(--delayCount) * 12);
        }

        .fish .koiCoil:nth-of-type(2) {
            --scaleMe: 1.2;
            animation-delay: calc(var(--delayCount) * 13);
        }

        .fish .koiCoil:nth-of-type(1) {
            animation-delay: calc(var(--delayCount) * 14);
        }

        .fish .koiCoil:nth-of-type(12)::before, .fish .koiCoil:nth-of-type(12)::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 20%;
            top: -10%;
            left: -100%;
            border-radius: var(--coilSize);
            background-color: white;
            transform-origin: center right;
            animation: sideFlip 500ms ease-in-out alternate infinite;
        }

        .fish .koiCoil:nth-of-type(12)::after {
            --scaleFlip: -1;
            --posFlip: calc(var(--coilSize) * -1);
        }

        @keyframes fishAnim {
            0% {
                offset-distance: 0%;
            }
            100% {
                offset-distance: 100%;
            }
        }

        @keyframes backFlip {
            0% {
                transform: rotate(45deg);
            }
            100% {
                transform: rotate(-45deg);
            }
        }

        @keyframes sideFlip {
            0% {
                transform: scale(1, var(--scaleFlip)) translateY(var(--posFlip)) rotate(80deg);
            }
            100% {
                transform: scale(1, var(--scaleFlip)) translateY(var(--posFlip)) rotate(20deg);
            }
        }
        /* latin */
        @font-face {
            font-family: 'Atkinson Hyperlegible';
            font-style: normal;
            font-weight: 400;
            font-display: swap;
            src: url(./font.woff2) format('woff2');
            unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
        }
    </style>
</head>

<body>
<div class="container">
<div class="top">
    <div class="textContainer">
        <h1 id="header-h1">TimHartmann.de</h1>
        <hr>
        <p>
            <strong>Diese Domain wird haupts&auml;chlich zur privaten elektronischen Kommunikation (E-Mail)
                verwendet.</strong>
            <br/>
            Die Domain steht nicht zum Verkauf.
        </p>
        <p>
            This domain is mainly used for private electronic communication (email).
            <br/>
            This domain is not for sale.
        </p>
    </div>
</div>
<div id="koiPond" class="seaLevel">
    <div class="fish">
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
    </div>
    <div class="fish">
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
        <div class="koiCoil"></div>
    </div>
</div>
<div class="bottom">
    <div class="flexContainer">
        <div class="impressum">
            <strong>Impressum:</strong>
            <br/>
            <p>
                Tim Hartmann
                <br/>
                Grosse Diesdorfer Str. 16a
                <br/>
                39108 Magdeburg
                <br/>
                E-Mail: <a href="mailto:mail@timhartmann.de">mail@timhartmann.de</a>
                |
                <a href="./mail@timhartmann.de.asc">PGP-Key</a>
                <br/>
                <a href="https://linkedin.com/in/tim-hartmann-89801722a" target="_blank">
                    <svg version="1.1" width="1.5em" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
                         xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 455 455" xml:space="preserve">
									<g>
										<path style="fill-rule:evenodd;clip-rule:evenodd;"
                                              d="M246.4,204.35v-0.665c-0.136,0.223-0.324,0.446-0.442,0.665H246.4z"/>
                                        <path style="fill-rule:evenodd;clip-rule:evenodd;"
                                              d="M0,0v455h455V0H0z M141.522,378.002H74.016V174.906h67.506V378.002zM107.769,147.186h-0.446C84.678,147.186,70,131.585,70,112.085c0-19.928,15.107-35.087,38.211-35.087c23.109,0,37.31,15.159,37.752,35.087C145.963,131.585,131.32,147.186,107.769,147.186z M385,378.002h-67.524V269.345c0-27.291-9.756-45.92-34.195-45.92c-18.664,0-29.755,12.543-34.641,24.693c-1.776,4.34-2.24,10.373-2.24,16.459v113.426h-67.537c0,0,0.905-184.043,0-203.096H246.4v28.779c8.973-13.807,24.986-33.547,60.856-33.547c44.437,0,77.744,29.02,77.744,91.398V378.002z"/>
									</g>
								</svg>
                </a>
                <a href="https://github.com/globus243" target="_blank">
                    <svg width="1.5em" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path fill-rule="evenodd" clip-rule="evenodd"
                              d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z"
                              transform="scale(64)" fill="#000"/>
                    </svg>
                </a>
                <a href="https://blog.timhartmann.de" target="_blank">
                    <svg width="1.5em" version="1.1" xmlns="http://www.w3.org/2000/svg"
                         xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000"
                         enable-background="new 0 0 1000 1000" xml:space="preserve">
									<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>
                        <g><path d="M983.9,420.4c6.1-12.2,6.1-30.6,0-42.9L941,334.6c-6.1-6.1-12.2-6.1-24.5-6.1c-6.1,0-18.4,0-24.5,6.1L561.3,659.2v24.5V745h98L983.9,420.4z M193.8,193.7h612.5V255H193.8V193.7L193.8,193.7z M193.8,377.5h569.6l42.9-42.9v-18.4H193.8V377.5z M193.8,683.7H500V745H193.8V683.7L193.8,683.7z M193.8,500h447.1l61.2-61.3H193.8V500z M928.7,561.2v245c0,67.4-55.1,122.5-122.5,122.5H193.8c-67.4,0-122.5-55.1-122.5-122.5V193.7c0-67.4,55.1-122.5,122.5-122.5h612.5c67.4,0,122.5,55.1,122.5,122.5v73.5c18.4,0,36.8,12.2,55.1,24.5l6.1,6.1V193.8C990,89.6,910.4,10,806.3,10H193.8C89.6,10,10,89.6,10,193.8v612.5C10,910.4,89.6,990,193.8,990h612.5C910.4,990,990,910.4,990,806.3V500L928.7,561.2z M193.8,622.5h324.6l6.1-6.1l55.1-55.1H193.8V622.5z"/></g>
								</svg>
                </a>
            </p>
        </div>
        <div class="dsgvo">
            <strong>Bemerkung bzgl. Datenschutzgrundverordnung:</strong>
            <br/>
            <p>
                Die Domain timhartmann.de wird zur Zeit ausschlie&szlig;lich zur Aus&uuml;bung pers&ouml;nlicher T&auml;tigkeiten
                verwendet.
            </p>
        </div>
    </div>
</div>
</div>
</body>
<script type="application/javascript">
    let gameInstance = null;
    const container = document.getElementById('koiPond');

    function createGameContainer() {
        const topHeight = document.querySelector('.top').offsetHeight || 0;
        const bottomHeight = document.querySelector('.bottom').offsetHeight || 0;

        const gameDiv = document.createElement('div');
        gameDiv.id = 'gameContainer';
        gameDiv.style.position = 'absolute';
        gameDiv.style.top = topHeight + 'px';
        gameDiv.style.left = '0';
        gameDiv.style.width = '100%';
        gameDiv.style.height = `calc(100vh - ${topHeight + bottomHeight}px)`;

        container.replaceWith(gameDiv);
        return gameDiv;
    }
    
    document.getElementById('header-h1').addEventListener('click', function() {
        if (!gameInstance) {
            const gameContainer = createGameContainer();
            if (typeof AsteroidsGame === 'undefined') {
                const script = document.createElement('script');
                script.src = 'asteroids.js';
                script.onload = function() {
                    gameInstance = new AsteroidsGame(gameContainer);
                    gameInstance.start();
                };
                document.head.appendChild(script);
            } else {
                gameInstance = new AsteroidsGame(gameContainer);
                gameInstance.start();
            }
        } else {
            gameInstance.stop();
            gameInstance = null;
            const gameContainer = document.getElementById('gameContainer');
            gameContainer.replaceWith(container);
        }
    });
</script>
</html>